AuthenticationError.NOT_ADS_USER with service account

445 views
Skip to first unread message

Ismary Cruz

unread,
Oct 24, 2014, 8:01:18 AM10/24/14
to adwor...@googlegroups.com
I have a services account , I been trying to get adwords data without success. I have a MCC account.

I followed, step by step, the user guide.

I created the project, then I created new credentials. I selected 'services account' and generated public/secret key.

I followed the guide to delegating domain-wide authority to the service account (I used https://www.googleapis.com/auth/adwords as scope).

I got the authorization token without any problem. But when I try to call any service of Adwords, I got the same error:


AdwordsApi::V201409::CampaignService::ApiException at ...
[AuthenticationError.NOT_ADS_USER @ ; trigger:'<null>']

This is my adwords_api.yml configuration:

:authentication:
  :method: OAuth2_JWT
  :oauth2_client_id: <service_account_client_id>
  :oauth2_issuer: <service_account_email>
  :oauth2_keyfile: <service_account_keyfile>
  :oauth2_secret: <password_to_keyfile>
  :developer_token: <developer_token>
  :client_customer_id: <adwords_account_client_customer_id>

:service:
  :environment: 'PRODUCTION'
:connection:
  :enable_gzip: false
:library:
  :log_level: DEBUG


Other informations:
gem google-adwords-api (0.13.2)
gem oauth2 (1.0.0)
API versio v:201409

For some reason my service account doesn't have permission for Adwords, although I had defined them as indicated it in the user guide.

If you have any ideas, I will be very grateful you.

Thanks in advanced,


Anash P. Oommen (AdWords API Team)

unread,
Oct 27, 2014, 12:34:25 PM10/27/14
to adwor...@googlegroups.com
Hi,

You should also set oauth2_prn to identify the OAuth2 user. This should be the login email of your AdWords account, or your AdWords MCC account. If you are setting the email address of your AdWords account, then client_customer_id should contain your AdWords account's CID. If you are setting the email address of your AdWords MCC account, then client_customer_id should be beneath the MCC.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

k...@ecpimedia.com

unread,
Jan 19, 2017, 1:03:14 PM1/19/17
to AdWords API Forum
That property I need to set in case of Java? I filled up api.adwords.jsonKeyFilePath, api.adwords.clientCustomerId, api.adwords.developerToken but no person or anything close to this in config. 


понедельник, 27 октября 2014 г., 19:34:25 UTC+3 пользователь Anash P. Oommen (AdWords API Team) написал:

Shwetha Vastrad (AdWords API Team)

unread,
Jan 19, 2017, 2:19:34 PM1/19/17
to AdWords API Forum
Hi,

This is an old forum thread. Could you kindly start a new thread for your question?

Thanks,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages