QuotaCheckError.ACCOUNT_INACTIVE Error

95 views
Skip to first unread message

Gal Amitai

unread,
May 1, 2017, 10:05:43 AM5/1/17
to AdWords API Forum
Hi, i tried to pull data from my web application but unfortunately i got an error

I fill out the required properties in adsapi_php.ini file and set up the OAuth2 correctly

But when i tried to run GetCampaigns.php I got SOAP error

 

Soap Request & Response:

[2017-04-30 09:17:06] AW_SOAP.WARNING: clientCustomerId=847-178-9432 operations=1 service=CampaignService method=get responseTime=67 requestId=00054e5ec54568d10a37175f9e023d8d server=adwords.google.com isFault=1 faultMessage=[QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'<null>']  

[2017-04-30 09:17:06] AW_SOAP.NOTICE: POST /api/adwords/cm/v201609/CampaignService?wsdl HTTP/1.1

Host: adwords.google.com

Connection: Keep-Alive

User-Agent: PHP-SOAP/5.6.30

Content-Type: text/xml; charset=utf-8

SOAPAction: ""

Content-Length: 916

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/v201609"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>847-178-9432</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/26.0.0, PHP/5.6.30)</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: Sun, 30 Apr 2017 09:17:07 GMT

Expires: Sun, 30 Apr 2017 09:17:07 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="37,36,35"

Accept-Ranges: none

Vary: Accept-Encoding

Transfer-Encoding: chunked

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201609"><requestId>00054e5ec54568d10a37175f9e023d8d</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>67</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'&lt;null&gt;']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201609"><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></fieldPath><trigger>&lt;null&gt;</trigger><errorString>QuotaCheckError.ACCOUNT_INACTIVE</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>ACCOUNT_INACTIVE</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

  

PHP Fatal error:  Uncaught exception 'Google\AdsApi\AdWords\v201609\cm\ApiException' with message '[QuotaCheckError.ACCOUNT_INACTIVE @ ; trigger:'<null>']' in /Users/galamitai/Desktop/googleads-php-lib-master/src/Google/AdsApi/Common/Util/Reflection.php:39

Stack trace:

#0 /Users/***/Desktop/googleads-php-lib-master/src/Google/AdsApi/Common/Util/Reflection.php(39): ReflectionClass->newInstanceArgs(Array)

#1 /Users//***//Desktop/googleads-php-lib-master/src/Google/AdsApi/Common/AdsSoapClient.php(162): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', '[QuotaCheckErro...')

#2 /Users//***//Desktop/googleads-php-lib-master/src/Google/AdsApi/Common/AdsSoapClient.php(126): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))

#3 /Users//***//Desktop/googleads-php-lib-master/src/Google/AdsApi/AdWords/v201609/cm/CampaignService.php(155): Google\AdsApi\Common\AdsSoapClient->__soapCall('get', Array)

#4 /Users//***//Desktop/googleads-php-lib-master/GetCampaig in /Users/galamitai/Desktop/googleads-php-lib-master/src/Google/AdsApi/Common/Util/Reflection.php on line 39



Can someone please advise?

 

Shwetha Vastrad (AdWords API Team)

unread,
May 1, 2017, 4:16:16 PM5/1/17
to AdWords API Forum
Hi Gal, 

The QuotaCheckError.ACCOUNT_INACTIVE error occurs when the AdWords account referred by the clientCustomerId is inactive. Could you check if the account in question is active by logging into the UI? I see that the account 847-178-9432 is an AdWords manager account. You will not be able to fetch campaigns from a manager account. Campaigns are associated with AdWords client accounts. Could you retry the request by setting the clientCustomerId to the Id of the client accounts under your manager account? 

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