Permission denied

64 views
Skip to first unread message

Niels van der Molen

unread,
Jan 31, 2019, 10:03:22 AM1/31/19
to AdWords API and Google Ads API Forum
Today, I suddenly got a permission denied error on all calls of the Google Ads API to my test accounts.

I tried with a new OAuth refresh token. I do not get the error when using the manager's customer id but you have to get to the client id directly to manage campaigns. Also tried to create a new test client but the same permission denied error. I do have access to the client from the Google Adwords UI.

Test manager id: 8136493746
Test client id: 3211402788

Is there anything that has changed on your side, it was working two days ago?

root@be730853d71a:/var/www/project# php examples/BasicOperations/GetCampaigns.php --customerId 8136493746   #no results
root@be730853d71a:/var/www/project# php examples/BasicOperations/GetCampaigns.php --customerId 3211402788 
Request with ID 'MK7EvGmZpXVu-j_6BEmFyA' has failed.
Google Ads failure details:
authorization_error: User doesn't have permission to access customer.

"code": 7,
"status": "PERMISSION_DENIED",
User doesn't have permission to access customer.

Thanks,

Niels

googleadsapi...@google.com

unread,
Jan 31, 2019, 3:35:17 PM1/31/19
to AdWords API and Google Ads API Forum
Hello Niels,

Yesterday the Google Ads API team starting enforcing a a new header that was originally announced in the v0_6 release. If this header is not set you can get USER_PERMISSION_DENIED errors. The change is in the process of being rolled back since many users were not ready, yet. Please monitor the Google Ads API blog for details on when this change will be released and how to prepare.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages