Hi Briggs,

The endpoint for TIS 
is https://adwords.google.com/api/adwords/o/v201109/TargetingIdeaService, 
(/o/, not /cm/). Using the PHP client library is simpler, there's a code 
example available 
at 
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109/Optimization/GetKeywordIdeas.php.
 
If you don't want to use the client library and just want to post the raw 
xml, then here are the logs for an example request I captured from the .NET 
library.

POST https://adwords.google.com/api/adwords/o/v201109/TargetingIdeaService 
HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
Protocol 2.0.50727.5448)
VsDebuggerCausalityData: 
uIDPo3bahHp5zoNCt7MFLGWjsGUAAAAAhRlC3q6r9U65V5Kp9THVwVcdbssR1KJGo85hC7T+C7gACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Host: adwords.google.com
Content-Length: 1931
Accept-Encoding: gzip

<?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/v201109";><authToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>***</authToken><developerToken
 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>***</developerToken><clientCustomerId
 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>***</clientCustomerId><userAgent
 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>AwApi-DotNet-1.0.0|INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE</userAgent></RequestHeader></soap:Header><soap:Body><get
 
xmlns="https://adwords.google.com/api/adwords/o/v201109";><selector><searchParameters
 
xsi:type="RelatedToKeywordSearchParameter"><keywords><text 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>mars 
cruise</text><matchType 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>BROAD</matchType></keywords></searchParameters><searchParameters
 
xsi:type="KeywordMatchTypeSearchParameter"><keywordMatchTypes>BROAD</keywordMatchTypes></searchParameters><ideaType>KEYWORD</ideaType><requestType>IDEAS</requestType><requestedAttributeTypes>CRITERION</requestedAttributeTypes><requestedAttributeTypes>AVERAGE_TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes><paging><startIndex
 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>0</startIndex><numberResults
 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>500</numberResults></paging></selector></get></soap:Body></soap:Envelope>

Hope this helps. Let me know if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Wednesday, 25 April 2012 01:03:22 UTC+5:30, Briggs Thompson wrote:
>
> Hello All,
>
> I have been trying for the past day to get the TargetingIdeaService to 
> work without using the client library. I have tried both with hardcoding 
> the xml payload and with building up an object in the examples for the 
> campaignService. If anyone has an example that would be very helpful. I 
> also checked out 
> http://stackoverflow.com/questions/7471152/using-php-and-soap-to-access-the-targetingideaservice-in-the-google-adwords-apibut
>  looks like he didn't make progress past the described code.
>
> Also, it seems like 
> https://adwords.google.com/api/adwords/cm/v201109/CampaignService is 
> hittable but 
> https://adwords.google.com/api/adwords/cm/v201109/TargetingIdeaService is 
> not. Any help is appreciated!
>
> Thanks,
> Briggs Thompson
>

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

Reply via email to