Re: How to access AdWords API from another account not in account MCC

190 views
Skip to first unread message
Message has been deleted

Vincent Racaza (AdWords API Team)

unread,
Apr 6, 2018, 2:47:59 AM4/6/18
to AdWords API Forum
Hi,

I deleted your original post as it contains your confidential information such as your OAuth2 information and your clientCustomerId. In the future, please do not include any private information in a public post. You can refer to this guide before posting. Re-posting this with masked information:

I want  manage multiple unrelated accounts, I build OAuth2 sign-in flow into my application as part of adding OAuth2 support for my application.


webconfg:
 <add key="AuthorizationMethod" value="OAuth2" />
 <add key="OAuth2ClientId" value="XXXXXXXXXXXXXXXXXXXXXXx"/>
 <add key="OAuth2ClientSecret" value="XXXXXXXXXXXXXXXXXXXxx"/>
 <add key="OAuth2RedirectUri" value="XXXXXXXXX" />
 <add key="OAuth2Mode" value="APPLICATION"/>
 <add key="ClientCustomerId" value=""/>
 <add key="DeveloperToken" value=""/>

accepp permision, after get campaign from customerId: XXX-XXX-XXXX

result => Developer token is not approved for production access, and the customer is attempting to access a production account.. (Error: QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, FieldPath: , Trigger: <null>)

How to access API Adwords from another account? from my application when i don't have Developer token from another account?
Thanks,
Vincent
AdWords API Team

Vincent Racaza (AdWords API Team)

unread,
Apr 6, 2018, 2:48:23 AM4/6/18
to AdWords API Forum
Hi,

Based on the error message itself and also in your property file snippet, you have not set the value of your developer token. A basic/standard access of developer token is needed in every AdWords API request against production AdWords accounts.

You may use an approved developer token from another hierarchy of a manager account (e.g. your other manager account). Or, if you are restricted to use the developer token from your other manager account, then you must apply for a basic access of a developer token for your current manager account. The AdWords Compliance Team will provide you updates within two business days after the form submission.

Trường Nguyễn Xuân

unread,
Apr 7, 2018, 9:49:50 PM4/7/18
to AdWords API Forum
Hi Vincent,

Thank you for support. 

Also, when I have developer token(basic token) from my adwrods account, it can be used to make calls against any account for which you have a valid refresh token after user access permission OAuth2.0 ?

Vincent Racaza (AdWords API Team)

unread,
Apr 9, 2018, 1:12:32 AM4/9/18
to AdWords API Forum
Hi,

Yes, you are correct. You can use your approved developer token (basic access) to make calls against your AdWords production accounts from which you have generated your OAuth2 credentials (preferably, from a user on the parent MCC so it can access all the child accounts directly).
Reply all
Reply to author
Forward
0 new messages