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