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("[email protected]");
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!!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f0f2d926-f27e-43f4-9afb-2a9e4842c113n%40googlegroups.com.