Noob getting set up.

58 views
Skip to first unread message

Mike Diehl

unread,
Dec 19, 2017, 12:12:47 AM12/19/17
to AdWords API Forum
Hi all.

I'm trying to get setup with the AdWords API so that I can run queries against it in Perl.

I'm following the instructions at:

https://github.com/googleads/googleads-perl-lib/wiki

After I downloaded and run the generate_offline_credentials.pl script, I added the credentials to my ~/adwords.properties file.

However, when I run one of the example scripts (get_campaigns.pl) I get:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201710"><requestId>000560a2e74ad5b80ae9de077e05cccf</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>189</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'&lt;null&gt;']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201710"><message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath></fieldPath><trigger>&lt;null&gt;</trigger><errorString>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>DEVELOPER_TOKEN_NOT_APPROVED</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

I understand that this means that my credentials aren't approved... but i don't know how to proceed from here.

The company I work for manages the marketing efforts for a number of clients.  I've been tasked with automating the collection of various statistics.

Any help would be appreciated.

Mike.

Peter Oliquino

unread,
Dec 19, 2017, 1:18:18 AM12/19/17
to AdWords API Forum
Hi Mike,

The DEVELOPER_TOKEN_NOT_APPROVED error you are encountering indicates that you are making calls against a production account using an unapproved developer token. To resolve this, you will need to apply for basic access via this form. While waiting for approval, you may continue experimenting with the AdWords API using test accounts with the current access level of your developer token.

I hope this helps and feel free to write back if you have any further clarifications.

Best regards,
Peter
AdWords API Team
Message has been deleted

Peter Oliquino

unread,
Dec 21, 2017, 10:17:46 PM12/21/17
to AdWords API Forum
Hi Mike,

I had to repost your previous response and removed some of the details as it contained parts of your credentials and private information. I would recommend that you respond privately using the Reply privately to author option should there be any sensitive information you wish to share with the team.

Well, I guess I just needed to wait a bit.  This morning, when I ran my script, I got a different error message.  

This error message indicated that I hadn't setup oAuth and referred me to instructions at:

https://github.com/googleads/googleads-perl-lib/wiki/Using-OAuth-2.0

I followed those instructions and generated a oAuth2AccessToken:


oAuth2AccessToken=XXXXX

Now, I'm back to getting the same error message as I started out with.  I'm just going around in circles on this.

Right now, my ~/adwords.properties file has entries that resemble:

developerToken=XXXXX
clientId=www-xxx-yyyy
oAuth2ClientId=XXXXX
oAuth2ClientSecret=XXXXX
oAuth2AccessToken=XXXXX

Any suggestions on how to move forward?

Mike.

Peter Oliquino

unread,
Dec 21, 2017, 10:18:14 PM12/21/17
to AdWords API Forum
Hi Mike,

Moving forward to your issue, could you confirm if you are back to encountering the DEVELOPER_TOKEN_NOT_APPROVED error? If yes, could you send to me privately (via the Reply privately to author option) your clientCustomerId and the generated SOAP request and response so I can further investigate?
Reply all
Reply to author
Forward
0 new messages