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,