I'm having issues getting a Service Account to access our MCC account. I 
have followed all of the setup steps in the guide, here:
https://developers.google.com/adwords/api/docs/guides/authentication#oauth2_service_accounts

I have the app created in the Dev Console and have placed the JSON in my 
project directory. The scope is authorized in the G Suite console. I am 
using this code to generate the credential:

Credential oAuth2Credential = new OfflineCredentials.Builder()
        .forApi(OfflineCredentials.Api.ADWORDS)
        .fromFile()
        .build()
        .generateCredential();


This works and I am returned an Access Token.

What I believe the issue to be, and I'm racking my brain attempting to find 
anything in the docs or source code for the Java client, is the 
specification of the ServiceAccountUser to impersonate.

Can anybody provide assistance on that specification? I'm assuming this is 
where the breakdown is that is causing the AuthenticationError.NOT_ADS_USER 
to arise.

I see that the Ruby SDK supports a property for "oauth2_prn" in the YAML 
file, but I don't see any specifications in the Java SDK as to how to do 
something similar.

Please help.  :)

Thanks!
John

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1ebe2313-e312-4864-80e6-8a7b8b66362e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to