Hi, I just got my google Ads Api application approved, i followed all the steps to complete adsapi_php.ini. I added the following in adseapi_php.ini
- developerToken = "aaa" - clientCustomerId = "bbb" - clientId = "ccc" - clientSecret = "ddd" - refreshToken = "eee" I'm using *https://github.com/googleads/googleads-php-lib* and the associated examples *https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWord* s. Because I'm beginning, I will use the example file *Google\AdsApi\Examples\AdWords\v201809\Remarketing\UploadOfflineConversions.php *to test if it works. I updated the 4 constant at the top of the file with somes values then run the file through the command line. I got the message *"[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.']"* I did check https://developers.google.com/adwords/api/docs/common-errors#QuotaCheckError.INVALID_TOKEN_HEADER but - Ensure that a developer token has been set and matches the value in the AdWords API Center. --> verified 3 times - Ensure that the headers of the request are in the namespace https://adwords.google.com/api/adwords/cm/{version}, where {version} is replaced with the version of the API being used. --> the soap envelop contains: https://adwords.google.com/api/adwords/cm/v201809 Bottom line, this message is very confusing, because I'm using the Google Ads Api, and I have the impression I'm following the required implementation. Any thoughts on what I'm doing wrong? Or where should I look? Thank you by advance. The full output of my OfflineConversion request is [2021-05-21T10:33:48.820766+00:00] AW_SOAP.WARNING: clientCustomerId=bbb operations=1 service=OfflineConversionFeedService method=mutate responseTime=125 requestId=0005c2d49850eb440aa78ac610010a74 server=adwords.google.com isFault=1 faultMessage=[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.'] [2021-05-21T10:33:48.820933+00:00] AW_SOAP.NOTICE: POST /api/adwords/cm/v201809/OfflineConversionFeedService?wsdl HTTP/1.1 Host: adwords.google.com Connection: close User-Agent: PHP-SOAP/7.3.21 Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 950 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>bbb</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/52.0.0, PHP/7.3.21)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:googleClickId>test_glid_01</ns1:googleClickId><ns1:conversionName>test-conv-shopify-v3</ns1:conversionName><ns1:conversionTime>20210521 000000 America/Los_Angeles</ns1:conversionTime><ns1:conversionValue>1</ns1:conversionValue></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope> HTTP/1.1 500 Internal Server Error Content-Type: text/xml; charset=UTF-8 Date: Fri, 21 May 2021 10:33:47 GMT Expires: Fri, 21 May 2021 10:33:47 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Content-Security-Policy: frame-ancestors 'self' X-XSS-Protection: 1; mode=block Server: GSE Alt-Svc: h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" Accept-Ranges: none Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>0005c2d49850eb440aa78ac610010a74</requestId><serviceName>OfflineConversionFeedService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>125</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath></fieldPath><trigger>New developers must use the Google Ads API.</trigger><errorString>QuotaCheckError.INVALID_TOKEN_HEADER</errorString><ApiError.Type>QuotaCheckError</ApiError.Type><reason>INVALID_TOKEN_HEADER</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException: [QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'New developers must use the Google Ads API.'] in C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:43 Stack trace: #0 C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php(43): ReflectionClass->newInstanceArgs(Array) #1 C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(203): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', Array) #2 C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(165): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault)) #3 C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201809\cm\OfflineConversionFeedService.php(92): Google\AdsApi\Common\AdsSoapClient->__soap in C:\wamp64\www\app-fortrabbit\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php on line 43 -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e7bba885-17b7-4b02-89fa-07275772f6e2n%40googlegroups.com.
