Adwords API authentication issue

43 views
Skip to first unread message

Dan

unread,
Mar 11, 2014, 6:52:09 AM3/11/14
to adwor...@googlegroups.com

I am trying to authenticate against adwords API using OAuth 2.0 for native application.

I've created MCC production account and MCC Test account. I've accepted Terms and Conditions and successfully submited my billing information in MCC production and test account.

I am following official tutorial and successfully generating refresh token. (https://developers.google.com/adwords/api/docs/guides/authentication)

I am trying access my MCC TEST account, not trying connect to production one. But unfortunately I am getting error when trying connect to AdWords from my Java code. First of all I was using my MCC TEST developer token and in this case I am getting:

 faultActor: 
 faultNode: 
 faultDetail: 
    {https://adwords.google.com/api/adwords/cm/v201306}ApiExceptionFault:<message>[QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath/><trigger>&lt;null&gt;</trigger><errorString>QuotaCheckError.ACCOUNT_INACTIVE</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>ACCOUNT_INACTIVE</reason></errors>

Next I was trying to switch to my production token but still pointing to MCC TEST account. Getting new error:

faultString: [QuotaCheckError.INCOMPLETE_SIGNUP @ ; trigger:'&lt;null&gt;']
 faultActor: 
 faultNode: 
 faultDetail: 
    {https://adwords.google.com/api/adwords/cm/v201306}ApiExceptionFault:<message>[QuotaCheckError.INCOMPLETE_SIGNUP @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath/><trigger>&lt;null&gt;</trigger><errorString>QuotaCheckError.INCOMPLETE_SIGNUP</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>INCOMPLETE_SIGNUP</reason></errors>


Any ideas what I am doing wrong?

Thanks a lot!

Josh Radcliff (AdWords API Team)

unread,
Mar 11, 2014, 6:43:17 PM3/11/14
to adwor...@googlegroups.com
Hi,

The requests with your test dev token all are attempting to access your production AdWords account (see the clientCustomerId in the header).  You don't actually need to request a dev token for your test account--you can simply use the prod account's pending dev token.

The grid below shows the permitted usages of pending or approved tokens.

dev tokencustomer typeallowed
PendingTestTRUE
PendingNon-testFALSE
ApprovedTestTRUE
ApprovedNon-testTRUE

Please try your request again after changing the clientCustomerId to a test AdWords account (child of your test MCC) and the dev token to your pending prod dev token.  If you still encounter issues, you can email your account IDs and developer tokens only to me by clicking "Reply to Author".

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages