Select google ads account when using Oauth

14 views
Skip to first unread message

fe...@dashbo.io

unread,
Apr 24, 2019, 10:16:10 AM4/24/19
to AdWords API and Google Ads API Forum
Hi,

I'm working on an App where I need to ask other accounts to let me manage their campaigns using OAuth. There's something I don't understand.

I have an gmail address that has access to a Google ads account and also has access to an MCC. The Google ads acocunt and the MCC are not related.

When I try to get the account credentials with my app using Oauth, I can't select if I want to give access to the Google ads account or to the MCC. My app is automatically given access to the MCC and not to the Google ads account. 

Is there some way to select which google ads account I want to get credentials from? And, if there's not, what is the criteria used to choose the account?

Thank you.

googleadsapi...@google.com

unread,
Apr 24, 2019, 5:14:40 PM4/24/19
to fe...@dashbo.io, AdWords API and Google Ads API Forum
Hello Fede, 

If the Google Ads client account and MCC account are linked, you should be able to access all the accounts under the MCC if you're generating the OAuth credentials with an email address who has access to the MCC. It is not possible through the API to select which account to select and give access. If the client account and MCC account are two separate accounts, you will need to make sure that you're using the correct set of OAuth credentials and the CID to make the API call. If you specify the client customer Id in the request header, you should be able to make the API call against that account. If you're having an issue, could you please share the error logs to troubleshoot this? You can reply back via Reply privately to author option.

Thanks,
Bharani, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages