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_api_sandbox.html#requestheaders

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 to get the 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 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_ap...
>
> > > > 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.- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to