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/";
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/v201008";>

      <authToken xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
      (removed)</authToken>
      <developerToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
      ENTER_YOUR_DEVELOPER_TOKEN_HERE</developerToken>
      <clientEmail 
xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
      (removed)</clientEmail>
      <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
      AwApi-DotNet-12.2.0|(removed)</userAgent>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
    <get xmlns="https://adwords.google.com/api/adwords/o/v201008";>
      <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";
    xmlns="https://adwords.google.com/api/adwords/o/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>
    <getResponse xmlns="https://adwords.google.com/api/adwords/o/v201008";
    xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201008";>
      <rval>
        <totalNumEntries>0</totalNumEntries>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>


I'd appreciate any insights.  Thanks!

-Rob Paveza

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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

Reply via email to