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:Header>
(removed)</authToken>
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>
cheap airline tickets</text>
BROAD</matchType>
</keywords>
</searchParameters>
<searchParameters xsi:type="LanguageTargetSearchParameter">
<languageTargets>
en</languageCode>
</languageTargets>
</searchParameters>
<searchParameters xsi:type="CountryTargetSearchParameter">
<countryTargets>
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>
0</startIndex>
50</numberResults>
</paging>
</selector>
</get>
</soap:Body>
</soap:Envelope>
The response is, as I described, empty.
<soap:Header>
<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