Hi Jeff, Thanks for the reply. I tried all the options mentioned and still not able to get through. I created a new gmail account and used that email address and it did not work. I tried using the gmail account which I used to login to the MCC panel and it did not work. I read through the link that you had send and was not able to find the correct information. The following is the XML that I am sending.
<?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></applicationToken><password>B $n...@....</password><email>[email protected]</ email><clientEmail>[email protected]</ clientEmail><useragent>Online Store</ useragent><developerToken>[email protected]++usd</ developerToken></env:Header><env:Body><getClientAccounts></ getClientAccounts><getKeywordVariations><seedKeywords><negative>false</ negative><text>graphic</text><type>Broad</type></ seedKeywords><useSynonyms>true</useSynonyms><languages>en</ languages><countries>US</countries></getKeywordVariations></env:Body></ env:Envelope> The response that I get is given below. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>Login with this username/password failed.</faultstring> <detail> <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/ v13"> <ns1:code>9</ns1:code> <ns1:message>Login with this username/ password failed.</ns1:message> <ns1:trigger>[email protected]</ ns1:trigger> </ns1:fault> </detail> </soapenv:Fault> </soapenv:Body> </ soapenv:Envelope> I am posting the request against the sandbox environment. I am not able to figure out what I am missing or doing wrong here. Can you please look into this and advise. Thanks for your time and I appreciate your help. Regards, Raja On Dec 11, 9:28 pm, AdWords API Advisor <[email protected]> wrote: > Hello Raja, > > As I mentioned in my last post, the account information that you use > for the Sandbox is complete separate from the Production information. > The fact that you signed up for Production tokens and registered your > billing information has no bearing on whether or not you can connect > to the Sandbox. > > Create a separate GMail address for use with the Sandbox, and make > note of its password. Provide that new address as the email header, > the password as the password header, and fill out the other headers as > described in > > http://code.google.com/intl/ja/apis/adwords/docs/developer/adwords_ap... > > The first time you make a request to the Sandbox you're going to want > to leave out the clientEmail header and make a call to > getClientAccounts() in order to set up your five client accounts. This > is all described in the document linked to above, so please read > through that. > > Cheers, > -Jeff Posnick, AdWords API Team > > On Dec 10, 7:34 pm, Raja <[email protected]> wrote: > > > > > Hi Jeff, > > > As advised, I have created a separate account for API. But when I try > > to access the API through sandbox, it is failing again and I am > > getting the following XML back. > > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ > > envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> > > <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> > > <faultstring>Login with this username/password failed.</faultstring> > > <detail> <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/ > > v13"> <ns1:code>9</ns1:code> <ns1:message>Login with this username/ > > password failed.</ns1:message> <ns1:trigger>[email protected]</ > > ns1:trigger> </ns1:fault> </detail> </soapenv:Fault> </soapenv:Body> </ > > soapenv:Envelope> > > > I verified the email address and password and they are correct. I have > > already signed for the API and regisered my billing information. > > Please advise. > > > Thanks for looking into this. > > > Regards, > > Raja > > On Dec 11, 4:06 am, AdWords API Advisor <[email protected]> > > wrote: > > > > You need to log in with a specific set of headers when accessing the > > > Sandbox: > > > > http://code.google.com/intl/ja/apis/adwords/docs/developer/adwords_ap... > > > > The account information you use for the Sandbox is completely separate > > > from your AdWords account information. > > > > Cheers, > > > -Jeff Posnick, AdWords API Team > > > > On Dec 10, 5:58 pm, Raja <[email protected]> wrote: > > > > > Hi Jeff, > > > > > Thanks for your immediate response and I was able togetthe response > > > > back now. But I am getting the error as "Login failed for the user > > > > name/password". I have setup an adwords account using this email and > > > > able to login to the panel and see the links for creating ad > > > > campaigns. Do I need to setup separate account for API access?. If so, > > > > I tried using this same email address ([email protected]) and it > > > > is saying that this is already setup for the MCC account. > > > > > Please advise. > > > > > Thanks for your help and time. > > > > > Regards, > > > > Raja > > > > > On Dec 11, 3:19 am, AdWords API Advisor <[email protected]> > > > > wrote: > > > > > > 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 aGET, when an HTTP POST is required. > > > > > > Also, as a generate note, you're not going togetreal results back > > > > > from the Sandbox's getKeywordVariations() call: > > > > > > http://code.google.com/intl/ja/apis/adwords/docs/developer/adwords_ap... > > > > > > So that's fine for testing your code, but you'll need to go against > > > > > the Production service togetmeaningful 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 togetthekeyword > > > > > > variations for a specific seedkeyword. 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.- Hide > > > > > > quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
