TargetingIdeaService - IdeaTextMatchesSearchParameter filters all results out with "included" on Sandbox

120 views
Skip to first unread message

Robert Paveza

unread,
May 26, 2011, 6:33:12 PM5/26/11
to adwor...@googlegroups.com
Hello,

I've been working on some testing with the sandbox API for Adwords.  I'd been getting promising results from TargetingIdeaService (of course, it's garbage for now, but it seems to work).  I based my initial code on a Google blog entry about using the TargetingIdeaService to get keyword suggestions based on a seed word or phrase.  To test, I used the same seed as the demo in the blog - "cheap airline tickets" - and plugged this into the Keyword Tool.  This gives me results such as "very cheap airline tickets," "cheap airline ticket," "super cheap airline tickets," "cheap airline tickets to hawaii," etc.  

However, my task is to get other results.  My colleagues suggested that, within the Keyword Tool, if I added in "who," "what," "where," "when," "why," and "how" into the "Include Terms" field, I would get the desired results.  And in fact, I do - "where to find cheap airline tickets," "how to buy cheap airline tickets," "how to get cheap airline tickets," etc.  These are the desired results.

Now, I don't expect to get these particular results back when using the sandbox API.  However, I would expect some results.  Essentially, what I do is:
  • Request "cheap airline tickets" as the Keyword (RelatedToKeywordSearchParameter), matching Broad.
  • Language Target is "en"
  • Country Target is "US"
This gives me back 300 results.  Then I add in IdeaTextMatchesSearchParameter as a parameter.  I specify:
  • included is a string array of "who" "what" "where" "when" "why" and "how".  I've also put in a single item array "herring" since a bunch of the sandbox API results say "red herring" or some such
  • excluded, I have switched between being null or an empty array, and also tried garbage "afkjdjfl;kasdjfsa" or something like that.
  • priorityAction set to Include.
Here is my SOAP request:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  <soap:Header>

      (removed)</authToken>
      <developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201008">
      ENTER_YOUR_DEVELOPER_TOKEN_HERE</developerToken>
      (removed)</clientEmail>
      AwApi-DotNet-12.2.0|(removed)</userAgent>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
      <selector>
        <searchParameters xsi:type="RelatedToKeywordSearchParameter">

          <keywords>
            <text xmlns="https://adwords.google.com/api/adwords/cm/v201008">
            cheap airline tickets</text>
            <matchType xmlns="https://adwords.google.com/api/adwords/cm/v201008">
            BROAD</matchType>
          </keywords>
        </searchParameters>
        <searchParameters xsi:type="LanguageTargetSearchParameter">
          <languageTargets>
            <languageCode xmlns="https://adwords.google.com/api/adwords/cm/v201008">
            en</languageCode>
          </languageTargets>
        </searchParameters>
        <searchParameters xsi:type="CountryTargetSearchParameter">
          <countryTargets>
            <countryCode xmlns="https://adwords.google.com/api/adwords/cm/v201008">
            US</countryCode>
          </countryTargets>
        </searchParameters>
        <searchParameters xsi:type="IdeaTextMatchesSearchParameter">

          <included>who</included>
          <included>what</included>
          <included>where</included>
          <included>when</included>
          <included>why</included>
          <included>how</included>
          <priorityAction>INCLUDE</priorityAction>
        </searchParameters>
        <ideaType>KEYWORD</ideaType>
        <requestType>IDEAS</requestType>
        <requestedAttributeTypes>KEYWORD</requestedAttributeTypes>
        <requestedAttributeTypes>
        AVERAGE_TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
        <requestedAttributeTypes>
        IDEA_TYPE</requestedAttributeTypes>
        <requestedAttributeTypes>
        COMPETITION</requestedAttributeTypes>
        <requestedAttributeTypes>
        GLOBAL_MONTHLY_SEARCHES</requestedAttributeTypes>
        <requestedAttributeTypes>
        KEYWORD_CATEGORY</requestedAttributeTypes>
        <requestedAttributeTypes>
        TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
        <requestedAttributeTypes>
        SEARCH_SHARE</requestedAttributeTypes>
        <paging>
          <startIndex xmlns="https://adwords.google.com/api/adwords/cm/v201008">
          0</startIndex>
          <numberResults xmlns="https://adwords.google.com/api/adwords/cm/v201008">
          50</numberResults>
        </paging>
      </selector>
    </get>
  </soap:Body>
</soap:Envelope>

The response is, as I described, empty.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Header>
    <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201008"
      <ns2:requestId>
      395cacb6d804c56cda37321f123a541c</ns2:requestId>
      <ns2:operations>1</ns2:operations>
      <ns2:responseTime>1425</ns2:responseTime>
      <ns2:units>1</ns2:units>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
      <rval>
        <totalNumEntries>0</totalNumEntries>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>


I'd appreciate any insights.  Thanks!

-Rob Paveza

GemBox Software

unread,
May 27, 2011, 4:26:18 AM5/27/11
to robp...@gmail.com, adwor...@googlegroups.com
Hi,

are you sure that you are using sandbox environment?

Because in Sandbox Behavior document it writes that returned ideas will be of the form {"sample keyword 0", "sample keyword 1", ...}. Returned attributes will contain random values.

--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en



--
AdWords API in C# / VB.NET adCenter API in C# / VB.NET - GemBox.Ppc component

Robert Paveza

unread,
May 27, 2011, 12:33:15 PM5/27/11
to AdWords API Forum
Yes. I'm in the sandbox environment. My Fiddler capture says it went
to https://adwords-sandbox.google.com/api/adwords/o/v201008/TargetingIdeaService.

I have tested random sandbox results like I said. I saw frequent
results of "red herring" in the results, so I tried using "herring" as
an option in the Includes list.
Reply all
Reply to author
Forward
0 new messages