Adwords API: DEVELOPER_TOKEN_NOT_APPROVED

397 views
Skip to first unread message

NW Int

unread,
Oct 5, 2017, 3:10:03 PM10/5/17
to AdWords API Forum
Hello, 

yesterday I wanted to create a test account for testing your adwords API for PHP, but not successful.

I asked for help, and someone in your team sent me a link, in which is written, that I should first create a production management account 
and a test management account. So, I've done it, and tried the PHP samples. But this time it did NOT work again.

Can someone tell me what's wrong with that, and how would it work?

- PHP example:
adwords-examples-30.0.0\examples\AdWords\v201708\Optimization\getKeywordIdeas.php

- Message:
Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201708\cm\ApiException' with message '[QuotaCheckError.DEVELOPER
_TOKEN_NOT_APPROVED @ ; trigger:'<null>']' in D:\testPHP\adwords-examples-30.0.0\vendor\googleads\googleads-php-lib\src\
Google\AdsApi\Common\Util\Reflection.php:39

>>My account information: 

- production management account: 163-653-2493
developer token: RJ5S********JhJg

- test management account: 630-401-3688
developer token: YEia********eToA

- link from 630-401-3688 to 163-653-2493 created

>> PHP settings:
- adsapi_php.ini

; from account 163-653-2493
developerToken = "RJ5S********JhJg"
clientCustomerId = "163-653-2493"

; from account 630-401-3688
clientId = "38571684858*********************.apps.googleusercontent.com"
clientSecret = "miZB********JQQk"
refreshToken = "1/dWV**********************006r"

Kind regards, 
Nico

Bharani Cherukuri (AdWords API Team)

unread,
Oct 5, 2017, 4:37:13 PM10/5/17
to AdWords API Forum
Hello Nico,

The DEVELOPER_TOKEN_NOT_APPROVED error is noticed when you're using an unapproved developer token to make API calls against Production account. Currently, both the accounts are Production manager accounts and both the developer tokens has test account access. The developer token from these accounts cannot be used to make calls to a Production Manager account. You need to apply for Basic access to get your developer token approved. Once you submit the Basic access application, the AdWords API compliance team will respond within a couple of business days. You can contact the API compliance team for assistance in getting your token approved. Please refer to this guide and test account guide for additional reference.

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages