Checking to see how many daily operations you have left?

78 views
Skip to first unread message

kad...@fofx.com

unread,
Jan 27, 2015, 11:18:41 PM1/27/15
to adwor...@googlegroups.com
I have Basic Access which has a limit of 10,000 operations per day.

Is there an operation to see how many operations you have left? And is there anywhere in your MCC dashboard or somewhere else you can view your API usage?

Danial Klimkin

unread,
Jan 28, 2015, 8:17:35 AM1/28/15
to adwor...@googlegroups.com
Hello,


No, there is no place to see today's stats. We recommend collecting server responses and checking the "operations" field of the SOAP header to keep track of the day's usage.


-Danial, AdWords API Team.

kad...@fofx.com

unread,
Feb 2, 2015, 9:59:13 PM2/2/15
to adwor...@googlegroups.com
Thanks, but after using the TargetingIdeaService a number of times, the "<ns2:operations>...</ns2:operations>" parameters still always returns 0? For instance below I used the TargetingIdeaService for "men's watches" and "glasses" but it returned "0" both times.

Does the TargetingIdeaService not use up operations...? Or is there some other reason it is returning 0 for this parameter? Thanks.

=====SOAP API RESPONSES BELOW=====

[Feb 02 2015 21:53:30.000000 - INFO] POST /api/adwords/o/v201409/TargetingIdeaService HTTP/1.0
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/5.3.29, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 676
Authorization: Bearer ya29.DwFzWpjKi89QBHw0vWL_dhsqGJkbA2w-jRzkFxycRm2BjbZUKcaDjbpbDBhIeBeXA-vZZJz4j7tzow

<?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/o/v201409" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns2:clientCustomerId>348-841-4824</ns2:clientCustomerId>
<ns2:developerToken>HZ7ypKhwemkgNqXugERZaw</ns2:developerToken>
<ns2:userAgent>Kadence Inc (AwApi-PHP/5.7.1, Common-PHP/5.7.1, PHP/5.3.29)</ns2:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get>
<ns1:selector>
<ns1:searchParameters xsi:type="ns1:RelatedToQuerySearchParameter">
<ns1:queries>men\'s watches</ns1:queries>
</ns1:searchParameters>
<ns1:searchParameters xsi:type="ns1:LanguageSearchParameter">
<ns1:languages>
<ns2:id>1000</ns2:id>
</ns1:languages>
</ns1:searchParameters>
<ns1:ideaType>KEYWORD</ns1:ideaType>
<ns1:requestType>STATS</ns1:requestType>
<ns1:requestedAttributeTypes>AVERAGE_CPC</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>COMPETITION</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>IDEA_TYPE</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>KEYWORD_TEXT</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>SEARCH_VOLUME</ns1:requestedAttributeTypes>
<ns1:paging>
<ns2:startIndex>0</ns2:startIndex>
<ns2:numberResults>500</ns2:numberResults>
</ns1:paging>
</ns1:selector>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.0 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 03 Feb 2015 02:53:29 GMT
Expires: Tue, 03 Feb 2015 02:53:29 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 776
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409" xmlns="https://adwords.google.com/api/adwords/o/v201409">
<ns2:requestId>00050e262cefafc80abfaf1279000b75</ns2:requestId>
<ns2:serviceName>AccountService</ns2:serviceName>
<ns2:methodName>get</ns2:methodName>
<ns2:operations>0</ns2:operations>
<ns2:responseTime>321</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409" xmlns="https://adwords.google.com/api/adwords/o/v201409">
<rval>
<totalNumEntries>1</totalNumEntries>
<entries>
<data>
<key>KEYWORD_TEXT</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringAttribute">
<Attribute.Type>StringAttribute</Attribute.Type>
<value>men\'s watches</value>
</value>
</data>
<data>
<key>TARGETED_MONTHLY_SEARCHES</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MonthlySearchVolumeAttribute">
<Attribute.Type>MonthlySearchVolumeAttribute</Attribute.Type>
<value>
<year>2014</year>
<month>12</month>
<count>22200</count>
</value>
<value>
<year>2014</year>
<month>11</month>
<count>40500</count>
</value>
<value>
<year>2014</year>
<month>10</month>
<count>49500</count>
</value>
<value>
<year>2014</year>
<month>9</month>
<count>27100</count>
</value>
<value>
<year>2014</year>
<month>8</month>
<count>12100</count>
</value>
<value>
<year>2014</year>
<month>7</month>
<count>27100</count>
</value>
<value>
<year>2014</year>
<month>6</month>
<count>2400</count>
</value>
<value>
<year>2014</year>
<month>5</month>
<count>2900</count>
</value>
<value>
<year>2014</year>
<month>4</month>
<count>2400</count>
</value>
<value>
<year>2014</year>
<month>3</month>
<count>1600</count>
</value>
<value>
<year>2014</year>
<month>2</month>
<count>6600</count>
</value>
<value>
<year>2014</year>
<month>1</month>
<count>5400</count>
</value>
</value>
</data>
<data>
<key>AVERAGE_CPC</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MoneyAttribute">
<Attribute.Type>MoneyAttribute</Attribute.Type>
<value>
<ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
<ns2:microAmount>1706213</ns2:microAmount>
</value>
</value>
</data>
<data>
<key>CATEGORY_PRODUCTS_AND_SERVICES</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="IntegerSetAttribute">
<Attribute.Type>IntegerSetAttribute</Attribute.Type>
<value>10171</value>
<value>10899</value>
<value>10021</value>
</value>
</data>
<data>
<key>IDEA_TYPE</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="IdeaTypeAttribute">
<Attribute.Type>IdeaTypeAttribute</Attribute.Type>
<value>KEYWORD</value>
</value>
</data>
<data>
<key>SEARCH_VOLUME</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LongAttribute">
<Attribute.Type>LongAttribute</Attribute.Type>
<value>14800</value>
</value>
</data>
<data>
<key>COMPETITION</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="DoubleAttribute">
<Attribute.Type>DoubleAttribute</Attribute.Type>
<value>1.0</value>
</value>
</data>
</entries>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>

[Feb 02 2015 21:53:30.000000 - INFO] POST /api/adwords/o/v201409/TargetingIdeaService HTTP/1.0
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/5.3.29, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 668
Authorization: Bearer ya29.DwFXiGSpcRn31qujq8u9MbcrJh1K7sL-QXQcF7D6pr_6iL4aNI5Gc_RCLCJyn2yeMMx_V5DTcEuAVg

<?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/o/v201409" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns2:clientCustomerId>348-841-4824</ns2:clientCustomerId>
<ns2:developerToken>HZ7ypKhwemkgNqXugERZaw</ns2:developerToken>
<ns2:userAgent>Kadence Inc (AwApi-PHP/5.7.1, Common-PHP/5.7.1, PHP/5.3.29)</ns2:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get>
<ns1:selector>
<ns1:searchParameters xsi:type="ns1:RelatedToQuerySearchParameter">
<ns1:queries>glasses</ns1:queries>
</ns1:searchParameters>
<ns1:searchParameters xsi:type="ns1:LanguageSearchParameter">
<ns1:languages>
<ns2:id>1000</ns2:id>
</ns1:languages>
</ns1:searchParameters>
<ns1:ideaType>KEYWORD</ns1:ideaType>
<ns1:requestType>STATS</ns1:requestType>
<ns1:requestedAttributeTypes>AVERAGE_CPC</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>COMPETITION</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>IDEA_TYPE</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>KEYWORD_TEXT</ns1:requestedAttributeTypes>
<ns1:requestedAttributeTypes>SEARCH_VOLUME</ns1:requestedAttributeTypes>
<ns1:paging>
<ns2:startIndex>0</ns2:startIndex>
<ns2:numberResults>500</ns2:numberResults>
</ns1:paging>
</ns1:selector>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.0 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 03 Feb 2015 02:53:29 GMT
Expires: Tue, 03 Feb 2015 02:53:29 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 762
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409" xmlns="https://adwords.google.com/api/adwords/o/v201409">
<ns2:requestId>00050e262cf5e1b80abfab1119003b00</ns2:requestId>
<ns2:serviceName>AccountService</ns2:serviceName>
<ns2:methodName>get</ns2:methodName>
<ns2:operations>0</ns2:operations>
<ns2:responseTime>354</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409" xmlns="https://adwords.google.com/api/adwords/o/v201409">
<rval>
<totalNumEntries>1</totalNumEntries>
<entries>
<data>
<key>KEYWORD_TEXT</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringAttribute">
<Attribute.Type>StringAttribute</Attribute.Type>
<value>glasses</value>
</value>
</data>
<data>
<key>TARGETED_MONTHLY_SEARCHES</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MonthlySearchVolumeAttribute">
<Attribute.Type>MonthlySearchVolumeAttribute</Attribute.Type>
<value>
<year>2014</year>
<month>12</month>
<count>673000</count>
</value>
<value>
<year>2014</year>
<month>11</month>
<count>823000</count>
</value>
<value>
<year>2014</year>
<month>10</month>
<count>673000</count>
</value>
<value>
<year>2014</year>
<month>9</month>
<count>550000</count>
</value>
<value>
<year>2014</year>
<month>8</month>
<count>550000</count>
</value>
<value>
<year>2014</year>
<month>7</month>
<count>550000</count>
</value>
<value>
<year>2014</year>
<month>6</month>
<count>550000</count>
</value>
<value>
<year>2014</year>
<month>5</month>
<count>550000</count>
</value>
<value>
<year>2014</year>
<month>4</month>
<count>673000</count>
</value>
<value>
<year>2014</year>
<month>3</month>
<count>673000</count>
</value>
<value>
<year>2014</year>
<month>2</month>
<count>673000</count>
</value>
<value>
<year>2014</year>
<month>1</month>
<count>673000</count>
</value>
</value>
</data>
<data>
<key>AVERAGE_CPC</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MoneyAttribute">
<Attribute.Type>MoneyAttribute</Attribute.Type>
<value>
<ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
<ns2:microAmount>3459597</ns2:microAmount>
</value>
</value>
</data>
<data>
<key>CATEGORY_PRODUCTS_AND_SERVICES</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="IntegerSetAttribute">
<Attribute.Type>IntegerSetAttribute</Attribute.Type>
<value>10936</value>
<value>10021</value>
<value>10178</value>
</value>
</data>
<data>
<key>IDEA_TYPE</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="IdeaTypeAttribute">
<Attribute.Type>IdeaTypeAttribute</Attribute.Type>
<value>KEYWORD</value>
</value>
</data>
<data>
<key>SEARCH_VOLUME</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LongAttribute">
<Attribute.Type>LongAttribute</Attribute.Type>
<value>673000</value>
</value>
</data>
<data>
<key>COMPETITION</key>
<value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="DoubleAttribute">
<Attribute.Type>DoubleAttribute</Attribute.Type>
<value>0.6449503580760934</value>
</value>
</data>
</entries>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>

Danial Klimkin

unread,
Feb 3, 2015, 10:12:19 AM2/3/15
to adwor...@googlegroups.com
Hello,


Thank you for letting us know about the issue. Looks like it's a problem on our side where we don't return the number of operations for these calls properly. We'll look into this.

In the meanwhile, please make sure to re-set your developer token. This is a publish forum and you just have shared the token with everyone on the group. You can re-set the token in the AdWords API center in the user interface, this will not affect it's approval status.

Please make sure to re-set the token and update your services promptly, otherwise the token may be revoked.


-Danial, AdWords API Team.

kad...@fofx.com

unread,
Feb 4, 2015, 1:20:58 AM2/4/15
to adwor...@googlegroups.com
Oh, very sorry about posting my token by accident - I have reset it.

In the meanwhile, do you know when this issue may be addressed? Also are those calls 1 operation each? Thank you.

Danial Klimkin

unread,
Feb 4, 2015, 8:20:48 AM2/4/15
to adwor...@googlegroups.com
We are looking into this issue now. These calls should be 1 op each.


-Danial.

kad...@fofx.com

unread,
Feb 5, 2015, 12:31:19 AM2/5/15
to adwor...@googlegroups.com
Thank you. And is the Keyword Stats call below 1 operation as well?

=====SOAP API RESPONSES BELOW===== 

[Feb 04 2015 01:26:00.000000 - INFO] POST /api/adwords/o/v201409/TargetingIdeaService HTTP/1.0
Connection: close
User-Agent: PHP-SOAP/5.3.29, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 673
Authorization: Bearer ...

<?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Header>
    <ns1:RequestHeader>
      <ns2:clientCustomerId>...</ns2:clientCustomerId>
      <ns2:developerToken>...</ns2:developerToken>
      <ns2:userAgent>... (AwApi-PHP/5.7.1, Common-PHP/5.7.1, PHP/5.3.29)</ns2:userAgent>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:get>
      <ns1:selector>
        <ns1:searchParameters xsi:type="ns1:RelatedToQuerySearchParameter">
          <ns1:queries>white glasses</ns1:queries>
Date: Wed, 04 Feb 2015 06:26:00 GMT
Expires: Wed, 04 Feb 2015 06:26:00 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 784
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <ns2:requestId>...</ns2:requestId>
      <ns2:serviceName>AccountService</ns2:serviceName>
      <ns2:methodName>get</ns2:methodName>
      <ns2:operations>0</ns2:operations>
      <ns2:responseTime>306</ns2:responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
[Truncated]

Danial Klimkin

unread,
Feb 5, 2015, 9:00:19 AM2/5/15
to adwor...@googlegroups.com
It's hard for me to tell for each particular call. We'll work to fix the response header field for the correct value.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages