Hi,

as I've just explained to dklimkin via the Google Hangout Office Hour, I am 
having trouble with the target idea service, or more particular with the 
getBulkKeywordRequest of it. It works fine unless I try to use the Exclude 
fiter: then I receive an Error 500. Attached the ruby code I am using 
(altered to exclude the login data) and the debug soap request (also 
altered in that regard). Could you please give me a hint how to solve this 
problem?

Thanks
Ben

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
                                                                     
                                                                     
                                                                     
                                             
SOAP request: 
https://adwords.google.com/api/adwords/o/v201109_1/TargetingIdeaService
SOAPAction: "getBulkKeywordIdeas", User-Agent: similar-keywords-tool 
(AwApi-Ruby/0.7.0, Common-Ruby/0.8.0, Savon/1.0.0, ruby/1.9.3, HTTPI/1.0.0, 
net_http), Content-Type: text/xml;charset=UTF-8, Content-Length: 1845

<?xml version="1.0" encoding="UTF-8"?><env:Envelope 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:wsdl="https://adwords.google.com/api/adwords/o/v201109_1"; 
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201109_1";><env:Header><wsdl:RequestHeader
 
xmlns="https://adwords.google.com/api/adwords/cm/v201109_1";><userAgent>similar-keywords-tool
 (AwApi-Ruby/0.7.0, Common-Ruby/0.8.0, Savon/1.0.0, ruby/1.9.3, HTTPI/1.0.0, 
net_http)</userAgent><developerToken>XXXXX</developerToken><authToken>XXXXXXXXXXX</authToken></wsdl:RequestHeader></env:Header><env:Body><getBulkKeywordIdeas
 
xmlns="https://adwords.google.com/api/adwords/o/v201109_1";><selector><searchParameters
 
xsi:type="RelatedToKeywordSearchParameter"><keywords><ns0:text>bildschirm</ns0:text><ns0:matchType>BROAD</ns0:matchType></keywords><keywords><ns0:text>monitor</ns0:text><ns0:matchType>BROAD</ns0:matchType></keywords><keywords><ns0:text>screen</ns0:text><ns0:matchType>BROAD</ns0:matchType></keywords></searchParameters><searchParameters
 
xsi:type="RelatedToUrlSearchParameter"><urls>http://google.com</urls></searchParameters><searchParameters
 
xsi:type="ExcludedKeywordSearchParameter"><keywords><ns0:text>tft</ns0:text><ns0:matchType>BROAD</ns0:matchType></keywords></searchParameters><ideaType>KEYWORD</ideaType><requestType>IDEAS</requestType><requestedAttributeTypes>CRITERION</requestedAttributeTypes><paging><ns0:startIndex>0</ns0:startIndex><ns0:numberResults>500</ns0:numberResults></paging></selector></getBulkKeywordIdeas></env:Body></env:Envelope>

HTTPI executes HTTP POST using the net_http adapter
SOAP response (status 500):

<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
 xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109_1"; 
xmlns="https://adwords.google.com/api/adwords/o/v201109_1";><ns2:requestId>0004c95638c1efd80ae585d40000516c</ns2:requestId><ns2:operations>1</ns2:operations><ns2:responseTime>557</ns2:responseTime><ns2:units>6</ns2:units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[TargetingIdeaError.INVALID_SEARCH_PARAMETERS
 @ selector.selector.searchParameters[2]; 
trigger:'ExcludedKeywordSearchParameter']</faultstring><detail><ApiExceptionFault
 xmlns="https://adwords.google.com/api/adwords/o/v201109_1"; 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109_1";><ns2:message>[TargetingIdeaError.INVALID_SEARCH_PARAMETERS
 @ selector.selector.searchParameters[2]; 
trigger:'ExcludedKeywordSearchParameter']</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="TargetingIdeaError"><ns2:fieldPath>selector.selector.searchParameters[2]</ns2:fieldPath><ns2:trigger>ExcludedKeywordSearchParameter</ns2:trigger><ns2:errorString>TargetingIdeaError.INVALID_SEARCH_PARAMETERS</ns2:errorString><ns2:ApiError.Type>TargetingIdeaError</ns2:ApiError.Type><reason>INVALID_SEARCH_PARAMETERS</reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
content-type: text/xml; charset=UTF-8, date: Mon, 10 Sep 2012 10:14:24 GMT, 
expires: Mon, 10 Sep 2012 10:14:24 GMT, cache-control: private, max-age=0, 
x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-xss-protection: 
1; mode=block, server: GSE, transfer-encoding: chunked

Attachment: example_code.rb
Description: Binary data

Reply via email to