Good morning,
we are working on the migration to the new Google Ads API and authentication fails.
We are using a Google Cloud service account and its JSON file:
GoogleCredentials Gcredentials = GoogleCredentials.
fromStream('JSONStream').
createScoped("https://www.googleapis.com/auth/adwords").
createDelegated("x...@xxx.com");
GoogleAdsClient googleAdsClient = GoogleAdsClient.
newBuilder().
setCredentials(Gcredentials).
setDeveloperToken("xxxxxxx").
setLoginCustomerId(customerId).
build();
And this is the error:
java.io.IOException: Error getting access token for service account: 400 Bad Request
{
"error": "invalid_grant",
"error_description": "Invalid email or User ID"
}, iss:
Could you please help us with this error?
Thanks!!