Intermittent QuotaCheckError.INVALID_TOKEN_HEADER / C# API / UserListService

43 views
Skip to first unread message

rob...@straightlineprocessing.com

unread,
Apr 10, 2018, 5:37:24 AM4/10/18
to AdWords API Forum
I'm using the C# API, application is in development hitting a test ad account.I'm receiving an INVALID_TOKEN_HEADER error on some requests, but the same request works about 30% of the time. I'm only seeing this with the UserListService, other requests with the same credentials are working consistently. Request log is below if anyone can help. Thanks.

Request
-------

POST /api/adwords/rm/v201802/AdwordsUserListService
Authorization: REDACTED
Accept-Encoding: gzip, deflate
TimeStamp: Tue, 10 Apr 2018 01:19:54 GMT


<?xml version="1.0" encoding="utf-16"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <RequestHeader xmlns="https://adwords.google.com/api/adwords/rm/v201802">
      <clientCustomerId>8764919315</clientCustomerId>
      <developerToken>REDACTED</developerToken>
      <userAgent>unknown (AwApi-DotNet/23.2.0, Common-Dotnet/9.0.0, .NET CLR/4.0.30319.42000, Logging, OAuthApplicationFlow, SelectorBuilder, SelectorField, gzip)</userAgent>
    </RequestHeader>
  </s:Header>
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <get xmlns="https://adwords.google.com/api/adwords/rm/v201802">
      <serviceSelector>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">Id</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">Name</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">Description</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">Status</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">IntegrationCode</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">MembershipLifeSpan</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">Size</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">ListType</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">IsEligibleForDisplay</fields>
        <fields xmlns="https://adwords.google.com/api/adwords/cm/v201802">IsEligibleForSearch</fields>
        <paging xmlns="https://adwords.google.com/api/adwords/cm/v201802">
          <startIndex>0</startIndex>
          <numberResults>500</numberResults>
        </paging>
      </serviceSelector>
    </get>
  </s:Body>
</s:Envelope>

Response
--------

Content-Encoding:
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Alt-Svc: hq=":443"; ma=2592000; quic=51303432; quic=51303431; quic=51303339; quic=51303335,quic=":443"; ma=2592000; v="42,41,39,35"
Transfer-Encoding: chunked
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=UTF-8
Date: Tue, 10 Apr 2018 05:19:54 GMT
Expires: Tue, 10 Apr 2018 05:19:54 GMT
Server: GSE
TimeStamp: Tue, 10 Apr 2018 01:19:54 GMT


<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <ns2:ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201802" xmlns="https://adwords.google.com/api/adwords/cm/v201802">
      <requestId>00056977ac3698080a813e1bdf097343</requestId>
      <serviceName>AdwordsUserListService</serviceName>
      <methodName>get</methodName>
      <operations>1</operations>
      <responseTime>43</responseTime>
    </ns2:ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Client</faultcode>
      <faultstring>[QuotaCheckError.INVALID_TOKEN_HEADER @ ]</faultstring>
      <detail>
        <ns2:ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201802" xmlns:ns2="https://adwords.google.com/api/adwords/rm/v201802">
          <message>[QuotaCheckError.INVALID_TOKEN_HEADER @ ]</message>
          <ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError">
            <fieldPath></fieldPath>
            <trigger></trigger>
            <errorString>QuotaCheckError.INVALID_TOKEN_HEADER</errorString>
            <ApiError.Type>QuotaCheckError</ApiError.Type>
            <reason>INVALID_TOKEN_HEADER</reason>
          </errors>
        </ns2:ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Bharani Cherukuri (AdWords API Team)

unread,
Apr 10, 2018, 3:06:44 PM4/10/18
to AdWords API Forum
Hi Robert, 

Our team is currently investigating the issue. I will keep you posted if I have any new updates to share. 

Thanks,
Bharani, AdWords API Team

Bharani Cherukuri (AdWords API Team)

unread,
Apr 16, 2018, 11:04:37 AM4/16/18
to AdWords API Forum
Hello,

The issue has been resolved. Could you please try again and let us know if this still persists.

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