Missing TARGETED_MONTHLY_SEARCHES from response

216 views
Skip to first unread message

PPC London

unread,
Nov 27, 2013, 6:50:42 AM11/27/13
to adwor...@googlegroups.com
Hi
 
Earlier if I request TARGETED_MONTHLY_SEARCHES it was always returned in response with 12 values
 
But recently in last few days for some of the keywords it is not returned in responce.
 
Is there and change in the api.
 
Thanks
 
Request:
 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <soap:Header>
  <RequestHeader xmlns="https://adwords.google.com/api/adwords/o/v201309">
   <authToken > </authToken>
   <developerToken > </developerToken>
   <userAgent > </userAgent>
  </RequestHeader>
 </soap:Header>
 <soap:Body>
  <get xmlns="https://adwords.google.com/api/adwords/o/v201309">
   <selector>
    <searchParameters xsi:type="RelatedToQuerySearchParameter">
     <queries>holiday kephalona greece</queries>
    </searchParameters>
    <searchParameters xsi:type="LocationSearchParameter">
     <locations>
      <id xmlns="https://adwords.google.com/api/adwords/cm/v201309">2826</id>
     </locations>
    </searchParameters>
    <searchParameters xsi:type="NetworkSearchParameter">
     <networkSetting>
      <targetGoogleSearch xmlns="https://adwords.google.com/api/adwords/cm/v201309">true</targetGoogleSearch>
      <targetSearchNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201309">false</targetSearchNetwork>
      <targetContentNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201309">false</targetContentNetwork>
      <targetPartnerSearchNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201309">false</targetPartnerSearchNetwork>
     </networkSetting>
    </searchParameters>
    <ideaType>KEYWORD</ideaType>
    <requestType>STATS</requestType>
    <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
    <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
    <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
    <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
    <requestedAttributeTypes>EXTRACTED_FROM_WEBPAGE</requestedAttributeTypes>
    <paging>
     <startIndex xmlns="https://adwords.google.com/api/adwords/cm/v201309">0</startIndex>
     <numberResults xmlns="https://adwords.google.com/api/adwords/cm/v201309">500</numberResults>
    </paging>
   </selector>
  </get>
 </soap:Body>
</soap:Envelope>
 
 
Response:
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Header>
  <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309" xmlns="https://adwords.google.com/api/adwords/o/v201309">
   <ns2:requestId>0004ec26de5c35a00adeb9070000620a</ns2:requestId>
   <ns2:serviceName>TargetingIdeaService</ns2:serviceName>
   <ns2:methodName>get</ns2:methodName>
   <ns2:operations>0</ns2:operations>
   <ns2:responseTime>259</ns2:responseTime>
  </ResponseHeader>
 </soap:Header>
 <soap:Body>
  <getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309" xmlns="https://adwords.google.com/api/adwords/o/v201309">
   <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>holiday kephalona greece</value>
      </value>
     </data>
    </entries>
   </rval>
  </getResponse>
 </soap:Body>
</soap:Envelope>
 
 

PPC London

unread,
Nov 27, 2013, 7:07:16 AM11/27/13
to adwor...@googlegroups.com
Even SEARCH_VOLUME and COMPETITION are missing from response

PPC London

unread,
Nov 28, 2013, 5:01:25 AM11/28/13
to adwor...@googlegroups.com
Is it just us, or anyone else also seen this behavior?
Its urgent please...

Marius-Eugen Gerdan

unread,
Nov 28, 2013, 6:46:24 AM11/28/13
to adwor...@googlegroups.com
you are not alone. we also have this issue. it seems to have to do with some keywords in the call. if you split the calls into multiple calls with only one keyword, this works, only the keywords included, that have no search volume will be affected. this is clearly a bug. please fix this urgent.

PPC London

unread,
Nov 28, 2013, 7:24:18 AM11/28/13
to adwor...@googlegroups.com

Thanks Marius
Good to know that it is not just us.

Takeshi Hagikura (AdWords API Team)

unread,
Nov 29, 2013, 1:45:43 AM11/29/13
to adwor...@googlegroups.com
Hi everyone, 

Thanks for the report. 
Just to make sure, is it still reproducible?

I tried the following request and I got the monthly values (12 values) for each keyword. 

<?xml version="1.0" encoding="UTF-8"?>
  <soapenv:Header>
    <ns1:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/adwords/o/v201309">
      <ns2:authToken xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309">******</ns2:authToken>
      <ns3:clientCustomerId xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201309">****** </ns3:clientCustomerId>
      <ns4:developerToken xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201309">*******</ns4:developerToken>
      <ns5:userAgent xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201309">user agent</ns5:userAgent>
      <ns6:validateOnly xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201309">false</ns6:validateOnly>
      <ns7:partialFailure xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201309">false</ns7:partialFailure>
    </ns1:RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
      <selector>
        <searchParameters xsi:type="ns8:RelatedToQuerySearchParameter" xmlns:ns8="https://adwords.google.com/api/adwords/o/v201309">
          <queries>holiday kephalona greece</queries>
        </searchParameters>
        <searchParameters xsi:type="ns9:LocationSearchParameter" xmlns:ns9="https://adwords.google.com/api/adwords/o/v201309">
          <locations>
            <ns10:id xmlns:ns10="https://adwords.google.com/api/adwords/cm/v201309">2826</ns10:id>
          </locations>
        </searchParameters>
        <searchParameters xsi:type="ns11:NetworkSearchParameter" xmlns:ns11="https://adwords.google.com/api/adwords/o/v201309">
          <networkSetting>
            <ns12:targetGoogleSearch xmlns:ns12="https://adwords.google.com/api/adwords/cm/v201309">true</ns12:targetGoogleSearch>
            <ns13:targetSearchNetwork xmlns:ns13="https://adwords.google.com/api/adwords/cm/v201309">false</ns13:targetSearchNetwork>
            <ns14:targetContentNetwork xmlns:ns14="https://adwords.google.com/api/adwords/cm/v201309">false</ns14:targetContentNetwork>
            <ns15:targetPartnerSearchNetwork xmlns:ns15="https://adwords.google.com/api/adwords/cm/v201309">false</ns15:targetPartnerSearchNetwork>
          </networkSetting>
        </searchParameters>
        <ideaType>KEYWORD</ideaType>
        <requestType>IDEAS</requestType>
        <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
        <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
        <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
        <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
        <requestedAttributeTypes>EXTRACTED_FROM_WEBPAGE</requestedAttributeTypes>
        <paging>
          <ns16:startIndex xmlns:ns16="https://adwords.google.com/api/adwords/cm/v201309">0</ns16:startIndex>
          <ns17:numberResults xmlns:ns17="https://adwords.google.com/api/adwords/cm/v201309">10</ns17:numberResults>
        </paging>
      </selector>
    </get>
  </soapenv:Body>
  </soapenv:Envelope>

Best,
- Takeshi, AdWords API Team

PPC London

unread,
Nov 29, 2013, 5:13:10 AM11/29/13
to adwor...@googlegroups.com
Hi Takeshi

Yes, it is still happening,
But it is now happening with lesser number of keywords now, may you have not updated your volumes database for all of the keywords yet.

Below is the new request and response as well, for the same keyword I posted earlier

Can you have a quick look on my request if it is correct


Thanks

Request

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <RequestHeader xmlns="https://adwords.google.com/api/adwords/o/v201309">
            <authToken ></authToken>
            <developerToken></developerToken>
            <userAgent></userAgent>
        </RequestHeader>
    </soap:Header>
    <soap:Body>

        <get xmlns="https://adwords.google.com/api/adwords/o/v201309">
            <selector>
                <searchParameters xsi:type="RelatedToQuerySearchParameter">

                    <queries>holiday kephalona greece</queries>
                </searchParameters>
                <searchParameters xsi:type="LocationSearchParameter">
                    <locations>
                        <id xmlns="https://adwords.google.com/api/adwords/cm/v201309">2826</id>
                    </locations>
                </searchParameters>

                <searchParameters xsi:type="NetworkSearchParameter">
                    <networkSetting>
                        <targetGoogleSearch xmlns="https://adwords.google.com/api/adwords/cm/v201309">true</targetGoogleSearch>
                        <targetSearchNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201309">false</targetSearchNetwork>
                        <targetContentNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201309">false</targetContentNetwork>
                        <targetPartnerSearchNetwork xmlns="https://adwords.google.com/api/adwords/cm/v201309">false</targetPartnerSearchNetwork>
                    </networkSetting>
                </searchParameters>
                <ideaType>KEYWORD</ideaType>
                <requestType>STATS</requestType>

                <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
                <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
                <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
                <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
                <requestedAttributeTypes>EXTRACTED_FROM_WEBPAGE</requestedAttributeTypes>
                <paging>
                    <startIndex xmlns="https://adwords.google.com/api/adwords/cm/v201309">0</startIndex>
                    <numberResults xmlns="https://adwords.google.com/api/adwords/cm/v201309">500</numberResults>
                </paging>
            </selector>
        </get>
    </soap:Body>
</soap:Envelope>


Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309" xmlns="https://adwords.google.com/api/adwords/o/v201309">
            <ns2:requestId>0004ec4ddfb9a0a00aded68700000e78</ns2:requestId>

            <ns2:serviceName>TargetingIdeaService</ns2:serviceName>
            <ns2:methodName>get</ns2:methodName>
            <ns2:operations>0</ns2:operations>
            <ns2:responseTime>410</ns2:responseTime>

        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309" xmlns="https://adwords.google.com/api/adwords/o/v201309">
            <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>holiday kephalona greece</value>
                        </value>
                    </data>
                </entries>
            </rval>
        </getResponse>
    </soap:Body>
</soap:Envelope>


PPC London

unread,
Nov 29, 2013, 6:01:12 AM11/29/13
to adwor...@googlegroups.com
Hi Takeshi

Just had a closer look at your request
you are doing
<requestType>IDEAS</requestType>
but I am doing
<requestType>STATS</requestType>

I am doing STATS because I want stats for given keyword

IDEAS will return other related similar keywords with their stats

so the 12 months volumes you see are for some related keyword but not the actual one in request

Thanks



On Friday, November 29, 2013 6:45:43 AM UTC, Takeshi Hagikura (AdWords API Team) wrote:

Marius-Eugen Gerdan

unread,
Nov 29, 2013, 6:57:56 AM11/29/13
to adwor...@googlegroups.com
Hi Takeshi, 

It is also for me still not working correctly.

Takeshi Hagikura (AdWords API Team)

unread,
Dec 2, 2013, 2:12:35 AM12/2/13
to adwor...@googlegroups.com
Hi, 

Thanks, I'm able to reproduce it as well. 

I think it's an unexpected behavior. 
I'm escalating it to the relevant engineer. 

Best,
- Takeshi, AdWords API Team

PPC London

unread,
Dec 2, 2013, 6:02:20 AM12/2/13
to adwor...@googlegroups.com
Thanks Takeshi
Please update us once it is solved
Thanks

Marius-Eugen Gerdan

unread,
Dec 2, 2013, 5:29:01 PM12/2/13
to adwor...@googlegroups.com
Tanks Takeshi! 

Takeshi Hagikura (AdWords API Team)

unread,
Dec 3, 2013, 1:48:45 AM12/3/13
to adwor...@googlegroups.com
Hi, 

Checked with the relevant engineer. It's expected. 

When you query STATS, the backend doesn't have the stat for the exact same keyword (holiday kephalona greece in this case) so nothing is returned.
(if you query the keyword that has the stats, you should get the results)

If you query IDEAS, you get ideas for related keywords, so you should get results. 

Best,
- Takeshi, AdWords API Team

PPC London

unread,
Dec 3, 2013, 10:23:19 AM12/3/13
to adwor...@googlegroups.com
Hi Takeshi
Thanks for reply
We are changing our code to handle this,
But up to 2 weeks back we were getting back SEARCH_VOLUME , COMPETITION and TARGETED_MONTHLY_SEARCHES back for all the keywords(with values 0 for those keywords without STATS)
And suddenly our users reported that our applications are not working, and on investigating we found that the above items are no more returned for keywords without STATS

Our concern is that we would like to know about such breaking changes in advance.
Cheers

Takeshi Hagikura (AdWords API Team)

unread,
Dec 8, 2013, 7:51:20 AM12/8/13
to adwor...@googlegroups.com
Hi,

Basically we announce the code breaking change in advance. 
Sorry if it was the breaking change, that was not what we expected.

I checked with the relevant engineer again.
Recently we applied the performance change and it's likely behavior was changed unexpectedly. 

We're applying the change to fix it this week. 
Please let us know if you find any inconsistency.

Best,
- Takeshi, 

ganpt...@gmail.com

unread,
Oct 6, 2016, 11:14:55 AM10/6/16
to AdWords API Forum

when i use TARGETED_MONTHLY_SEARCHES selector, It shows last 12 months result but i want to give diffrent time period. How can i give new time period with it.
In the file GetKeywordIdeas.php is use selector as follows

 $selector = new TargetingIdeaSelector();
$selector->requestType = 'IDEAS';
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME',
'CATEGORY_PRODUCTS_AND_SERVICES','TARGETED_MONTHLY_SEARCHES','AVERAGE_CPC','COMPETITION','IDEA_TYPE','EXTRACTED_FROM_WEBPAGE');
please help me with the write code. Thanks

Peter Oliquino

unread,
Oct 13, 2016, 2:09:15 AM10/13/16
to AdWords API Forum
Hi, 

As this is already a very old thread, I would recommend that you create a new one regarding your issue. This will help us track the cases better.

Cheers,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages