Hello Raja,

 Your relevant connection code is

  objXML.Open "GET", "https://sandbox.google.com/api/adwords/v13/
KeywordToolService?wsdl", false

The "?wsdl" at the end of the URL corresponds to the location of the
WSDL, not to the actual SOAP service. The correct URL for the SOAP
service would be "https://sandbox.google.com/api/adwords/v13/
KeywordToolService".

 Additionally, you're doing a GET, when an HTTP POST is required.

 Also, as a generate note, you're not going to get real results back
from the Sandbox's getKeywordVariations() call:

  
http://code.google.com/intl/ja/apis/adwords/docs/developer/adwords_api_sandbox.html#keywordtoolservice

So that's fine for testing your code, but you'll need to go against
the Production service to get meaningful results.

Cheers,
-Jeff Posnick, AdWords API Team


On Dec 10, 4:57 pm, Raja <[EMAIL PROTECTED]> wrote:
> I am implemeting Adwords API in classic ASP. I need to get the keyword
> variations for a specific seed keyword. I am using the web service
> KeywordToolService and rignt now using the sandbox to test it.I am
> creating the XML and posting it to sandbox - WSDL url using XML HTTP.
> But I am not getting the expected result. Instead, I am getting the
> XML schema. Can you please advise what I am missing. Here is some
> sample code that I am using. I am passing the header values for the
> variables defined.
>
> strRequestXML = "<?xml version=""1.0"" encoding=""UTF-8""?>" & _
> "<env:Envelope xmlns:xsd=""http://www.w3.org/2001/XMLSchema"";
> xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"";
> xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"";>" & _
> "<env:Header>" & _
> "<applicationToken>"& ADW_APPLICATION_TOKEN &"</applicationToken>" & _
> "<password>"& ADW_PASSWORD &"</password>" & _
> "<email>"& ADW_EMAIL &"</email>" & _
> "<clientEmail>"& ADW_CLIENT_EMAIL &"</clientEmail>" & _
> "<useragent>"& ADW_USERAGENT &"</useragent>" & _
> "<developerToken>"& ADW_DEVELOPER_TOKEN &"</developerToken>" & _
> "</env:Header>" & _
> "<env:Body>" & _
> "<getKeywordVariations>" & _
> "<seedKeywords>" & _
> "<negative>false</negative>" & _
> "<text>optical image</text>" & _
> "<type>Broad</type>" & _
> "</seedKeywords>" & _
> "<useSynonyms>true</useSynonyms>" & _
> "<languages>en</languages>" & _
> "<countries>US</countries>" & _
> "</getKeywordVariations>" & _
> "</env:Body>" & _
> "</env:Envelope>"
>
> Set objXML = Server.CreateObject("MSXML2.XMLHTTP")
> objXML.Open "GET", "https://sandbox.google.com/api/adwords/v13/
> KeywordToolService?wsdl", false
> objXML.SetRequestHeader "Content-Type", "text/xml"
> objXML.Send strRequestXML
>
> strResponseXML = objXML.responsetext
> Set objXML = Nothing
>
> Thanks for looking into this and I appreciate any help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to