Hi,

when we executing php 
examples/AdWords/v201809/BasicOperations/GetCampaigns.php on the terminal, 
Then getting an error

[2019-05-17 11:55:54] AW_SOAP.WARNING: clientCustomerId=123-108-6105 
operations=1 service=CampaignService method=get responseTime=148 
requestId=0005890f7465be7e0a62014cf401f9ca server=adwords.google.com 
isFault=1 faultMessage=[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:'<null>']  
[2019-05-17 11:55:54] AW_SOAP.NOTICE: POST 
/api/adwords/cm/v201809/CampaignService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.3.5-1+ubuntu18.04.1+deb.sury.org+1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 946
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809";><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>123-108-6105</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown
 
(AwApi-PHP, googleads-php-lib/41.0.0, 
PHP/7.3.5-1+ubuntu18.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:get><ns1:serviceSelector><ns1:fields>Id</ns1:fields><ns1:fields>Name</ns1:fields><ns1:ordering><ns1:field>Name</ns1:field><ns1:sortOrder>ASCENDING</ns1:sortOrder></ns1:ordering><ns1:paging><ns1:startIndex>0</ns1:startIndex><ns1:numberResults>500</ns1:numberResults></ns1:paging></ns1:serviceSelector></ns1:get></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Fri, 17 May 2019 06:25:54 GMT
Expires: Fri, 17 May 2019 06:25:54 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";><requestId>0005890f7465be7e0a62014cf401f9ca</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>148</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/v201809";><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>
  
PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: 
[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>'] in 
/home/buzzyears/Downloads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43
Stack trace:
#0 
/home/buzzyears/Downloads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43):
 
ReflectionClass->newInstanceArgs(Array)
#1 
/home/buzzyears/Downloads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202):
 
Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', 
Array)
#2 
/home/buzzyears/Downloads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164):
 
Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 
/home/buzzyears/Downloads/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/cm/CampaignService.php(164):
 
Google\AdsApi\Common\AdsSoapClient->__soapCall('get', Array)
#4 
/home/buzzyears/Downloads/googleads-php-lib/examples/AdWords/v201809/BasicOperations/GetCampaigns.php(55):
 
Google\AdsAp in 
/home/buzzyears/Downloads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php
 
on line 43

Please suggest the solution and how can we approved developer access token.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/52c2f3dc-1f5f-4ba3-b087-31d0f4d131b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • QuotaCh... Ashish Dixit
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to