Retriving data from deligated accounts.

21 views
Skip to first unread message

Crazy Maksi

unread,
May 7, 2019, 2:35:07 AM5/7/19
to AdWords API and Google Ads API Forum
Hello, 
We are using php library for retriving statistics data from AdWords. 
And we have encountered a case where we have our clientId and clientSecret and refreshToken for MMC account, but we need to retrive data from account deligated to this MMC account. When we are trying to use deligated account as client-customer-id we recive an error:
"AuthorizationError.USER_PERMISSION_DENIED". What is the best way to retrive data from deligated accounts?

googleadsapi...@google.com

unread,
May 7, 2019, 4:14:40 AM5/7/19
to adwor...@googlegroups.com, AdWords API and Google Ads API Forum
Hi,

Thanks for reaching out.

The error that you are encountering indicates that the OAuth2 credentials you are using does not have access to the account you are making your call against. In order for you to retrieve the data from the client account, what you can do is to recreate your OAuth2 credentials while in session or logged in as the email address which has access to that Google Ads account to resolve this issue.

If the issue persists, could you provide the email address which you used to generate the OAuth2 credentials so I can further investigate? Also, you can provide the customer ID of deligated account where you encountered the error.

Regards,
Ejay
Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_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/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@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/385f0936-1093-43bf-bef5-1ed743a3ce46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages