Hi, Your code example is just fine, but you need to send your request to the production server (https://adwords.google.com) instead of sending it to the sandbox (https://adwords-sandbox.google.com). The TargetingIdeaService will only give you test results in the sandbox.
Cheers, Anash P. Oommen, AdWords API Advisor. On Feb 8, 2:06 am, myry2000 <[email protected]> wrote: > file soap_xml.log : > > -----------------BEGIN API CALL--------------------- > > Request > ------- > > POST /api/adwords/o/v201008/TargetingIdeaService > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 2.0.50727.4927) > VsDebuggerCausalityData: uIDPo16wY+899mVHn0m3fnCJ/ > hEAAAAAap46HNEzWkmv7iABZyo1Z9CHmpP2QsFAmwhrXCzSjgAACQAA > Content-Type: text/xml; charset=utf-8 > SOAPAction: "" > Host: adwords-sandbox.google.com > Content-Length: 1637 > Connection: Keep-Alive > TimeStamp: Mon, 07 Feb 2011 22:30:51 GMT > > <?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"><applicationToken > xmlns="https://adwords.google.com/api/adwords/cm/v201008">******</ > applicationToken><authToken xmlns="https://adwords.google.com/api/ > adwords/cm/v201008">******</authToken><clientEmail xmlns="https:// > adwords.google.com/api/adwords/cm/v201008">[email protected]</ > clientEmail><developerToken xmlns="https://adwords.google.com/api/ > adwords/cm/v201008">******</developerToken><userAgent xmlns="https:// > adwords.google.com/api/adwords/cm/v201008">AwApi-DotNet-11.2.0|C# Demo > Application</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">space > cruise</text><matchType xmlns="https://adwords.google.com/api/adwords/ > cm/v201008">EXACT</matchType></keywords></ > searchParameters><ideaType>KEYWORD</ideaType><requestType>IDEAS</ > requestType><paging><startIndex xmlns="https://adwords.google.com/api/ > adwords/cm/v201008">0</startIndex><numberResults xmlns="https:// > adwords.google.com/api/adwords/cm/v201008">10</numberResults></ > paging></selector></get></soap:Body></soap:Envelope> > > Response > -------- > > SOAPAction: "" > X-Content-Type-Options: nosniff > X-Frame-Options: SAMEORIGIN > X-XSS-Protection: 1; mode=block > Transfer-Encoding: chunked > Cache-Control: private, max-age=0 > Content-Type: text/xml; charset=UTF-8 > Date: Mon, 07 Feb 2011 21:30:50 GMT > Expires: Mon, 07 Feb 2011 21:30:50 GMT > Server: GSE > TimeStamp: Mon, 07 Feb 2011 22:30:51 GMT > > <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>3a522604b58943f4958e405efa2d2113</ > ns2:requestId><ns2:operations>10</ > ns2:operations><ns2:responseTime>204</ns2:responseTime><ns2:units>10</ > 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>300</ > totalNumEntries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>sample keyword 1425346868 0</ > ns2:text><ns2:matchType>EXACT</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>sample keyword 1425346868 0</ > ns2:text><ns2:matchType>PHRASE</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>sample keyword 1425346868 0</ > ns2:text><ns2:matchType>BROAD</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>Red Herring 1</ > ns2:text><ns2:matchType>EXACT</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>Red Herring 1</ > ns2:text><ns2:matchType>PHRASE</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>Red Herring 1</ > ns2:text><ns2:matchType>BROAD</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>sample keyword 1425346868 2</ > ns2:text><ns2:matchType>EXACT</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>sample keyword 1425346868 2</ > ns2:text><ns2:matchType>PHRASE</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>sample keyword 1425346868 2</ > ns2:text><ns2:matchType>BROAD</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></ > entries><entries><data><key>KEYWORD</key><value > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="KeywordAttribute"><Attribute.Type>KeywordAttribute</ > Attribute.Type><value><ns2:Criterion.Type>Keyword</ > ns2:Criterion.Type><ns2:text>Red Herring 3</ > ns2:text><ns2:matchType>EXACT</ns2:matchType></value></value></ > data><data><key>IDEA_TYPE</key><value xmlns:xsi="http://www.w3.org/ > 2001/XMLSchema-instance" > xsi:type="IdeaTypeAttribute"><Attribute.Type>IdeaTypeAttribute</ > Attribute.Type><value>KEYWORD</value></value></data></entries></rval></ > getResponse></soap:Body></soap:Envelope> > -----------------END API CALL----------------------- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
