developerToken usage in Ads API calls

23 views
Skip to first unread message

and...@operam.com

unread,
Nov 13, 2018, 6:39:33 AM11/13/18
to AdWords API and Google Ads API Forum
Hey, I want to use access_token + refresh_token to access ads API on behalf of an user. If I want to use the client library I need to specify developerToken which is linked to some ad account. At the moment I use developerToken that I got from our company ad account but I wonder if it makes sense as I want to access other ad account.

To clarify in a bit more detail:
- User A comes to our app, links his account through Oauth flow
- We get access_token and refresh_token with permissions to Ads API
- We want to check some info about users A ad account (lets call that account AA) but I need to supply developerToken with the request
- developerTokens as far as I know are linked to ad account but I do not have developerToken for ad account AA
- I use developerToken from our company ad account to access AA, this seems to work but I want to check if this is the right way to do that as that developerToken seem in no way linked to the AA ad account or to the Oauth App that was used to get the access_token and refresh_token.

Thanks in advance.

Teja Makani

unread,
Nov 13, 2018, 12:47:06 PM11/13/18
to AdWords API and Google Ads API Forum
Hello Andrej,

The developer token of your company can be used to make API calls to any of your client's accounts even though the Developer token is not related to any of the client's accounts. To access the clients account data you can ask them to link their accounts to your companie's MCC account and using OAuth credentials of companies MCC id you can access the clients data. Most of the clients we see follows similar process. Via API you could use ManagedCustomerService.mutateLink to link the accounts, they can follow this article to link their accounts via UI. More about the ManagedCustomerService usage and samples can be found here. Please let me know if you have any further questions.

Regards,
Sai Teja, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages