Heres the debug dump of the call. I am using SOAPpy on ubuntu. Please
provide a sample working xml incase the below xml is faulty.
*** Outgoing HTTP headers
**********************************************
POST /api/adwords/o/v200909/TargetingIdeaService HTTP/1.0
Host: adwords-sandbox.google.com
User-agent: SOAPpy 0.12.0 (http://pywebsvcs.sf.net)
Content-type: text/xml; charset="UTF-8"
Content-length: 1481
SOAPAction: "get"
************************************************************************
*** Outgoing SOAP
******************************************************
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>
<SOAP-ENV:Header xmlns="https://adwords.google.com/api/adwords/cm/
v200909">
<RequestHeader>
<authToken>AUTHTOK</authToken>
<developerToken>DEVTOK</developerToken>
<applicationToken>APPTOK</applicationToken>
<clientEmail>EMAIL</clientEmail>
<userAgent>UA</userAgent>
<validateOnly>1</validateOnly>
</RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:get xmlns:ns1="https://adwords.google.com/api/adwords/o/v200909">
<selector xmlns:tns="https://adwords.google.com/api/adwords/o/
v200909">
<tns:searchParameters>
<tns:type>RelatedToKeywordSearchParameter</tns:type>
<tns:keywords>
<tns:text>Space cruise</tns:text>
<tns:matchType>BROAD</tns:matchType>
</tns:searchParameters>
<tns:ideaType>KEYWORD</tns:ideaType>
<tns:requestType>IDEAS</tns:requestType>
<tns:paging>
<startIndex>0</startIndex>
<numberResults>100</numberResults>
</tns:paging>
</selector>
</ns1:get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
************************************************************************
*** Incoming HTTP headers
**********************************************
HTTP/1.? 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Sat, 20 Mar 2010 18:37:18 GMT
Expires: Sat, 20 Mar 2010 18:37:18 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Server: GSE
X-XSS-Protection: 0
************************************************************************
*** Incoming SOAP
******************************************************
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>Fault occurred while processing.</faultstring></
soap:Fault></soap:Body></soap:Envelope>
************************************************************************
There are a few problems with your request, mostly centered around
namespaces, etc. Here is an example of a successful request:
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:o="https://adwords.google.com/api/adwords/o/v200909"
xmlns:cm="https://adwords.google.com/api/adwords/cm/v200909"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<o:RequestHeader>
<cm:applicationToken>...</cm:applicationToken>
<cm:authToken>...</cm:authToken>
<cm:clientEmail>...</cm:clientEmail>
<cm:developerToken>...</cm:developerToken>
<cm:userAgent>...</cm:userAgent>
<cm:validateOnly>...</cm:validateOnly>
</o:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<o:get xmlns:o="https://adwords.google.com/api/adwords/o/
v200909" xmlns:cm="https://adwords.google.com/api/adwords/cm/v200909">
<o:selector>
<o:searchParameters
xsi:type="o:RelatedToKeywordSearchParameter">
<o:keywords>
<cm:text>cat</cm:text>
<cm:matchType>BROAD</cm:matchType>
</o:keywords>
</o:searchParameters>
<o:ideaType>KEYWORD</o:ideaType>
<o:requestType>IDEAS</o:requestType>
<o:paging>
<cm:startIndex>0</cm:startIndex>
<cm:numberResults>100</cm:numberResults>
</o:paging>
</o:selector>
</o:get>
</soapenv:Body>
</soapenv:Envelope>
Best,
- Eric Koleda, AdWords API Team