updateAccountInfo sample

0 views
Skip to first unread message

s

unread,
Mar 5, 2008, 8:46:34 AM3/5/08
to AdWords API Forum
Hi,
Thanks in advance, can you please explaine me to update any of the
account information through C#.
Actually i created on accountinfo object and call the
updateAccountInfo with the previously created accountinfo as parameter
but it successfully updated but if i again read the account details
using getAccountinfo method it won't give the updated value, so can
you help me to get it.

Thnanks,
kumara

AdWords API Advisor

unread,
Mar 5, 2008, 1:58:30 PM3/5/08
to AdWords API Forum
Hello Kumara,

You say that the updateAccountInfo call successfully updated the
account, but are you sure about that? And if so, do you see the
changes reflected in the AdWords web interface but not in subsequent
calls to getAccountInfo?

Based on what you describe it sounds like the updateAccountInfo call
didn't actually do what you intended it to do. It would be helpful if
you could provide a SOAP trace of the underlying request and response
messages for your updateAccountInfo call, with any sensitive account,
password and token information X-ed out. The SOAP trace should
indicate whether the call was made correctly and whether it was
properly acknowledged by the API SOAP service.

Cheers,
-Jeff Posnick, AdWords API Team

s

unread,
Mar 5, 2008, 11:11:24 PM3/5/08
to AdWords API Forum
Thanks,
I have attached the log file content which contains the
request and response as given below. please inform me whether any
samples available on this updateaccountinfo method on the api
developer centere.

-----SoapRequest at 3/5/2008 3:31:18 PM
<?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><applicationToken xmlns="https://
adwords.google.com/api/adwords/v10">INSERT_APPLICATION_TOKEN_HERE</
applicationToken><clientEmail xmlns="https://adwords.google.com/api/
adwords/v10" /><developerToken xmlns="https://adwords.google.com/api/
adwords/v10">mas...@gmail.com++USD</developerToken><email
xmlns="https://adwords.google.com/api/adwords/v10">mas...@gmail.com</
email><password xmlns="https://adwords.google.com/api/adwords/
v10">***********</password><useragent xmlns="https://
adwords.google.com/api/adwords/v10">AdWords API DotNet Client Library
v0.12.0: ilink</useragent></
soap:Header><soap:Body><getKeywordVariations xmlns="https://
adwords.google.com/api/adwords/v10"><seedKeywords><text>flower</
text><type>Broad</type></seedKeywords><useSynonyms>true</
useSynonyms><languages>en</languages><countries>US</countries></
getKeywordVariations></soap:Body></soap:Envelope>
-----SoapResponse at 3/5/2008 3:31:18 PM
<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:Header>
<responseTime soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v10">27</responseTime>
<operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v10">1</operations>
<units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v10">1</units>
<requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v10">bdafe89c27ece06c9f82958a9fc3ce2e</requestId>
</soapenv:Header>
<soapenv:Body>
<getKeywordVariationsResponse xmlns="https://adwords.google.com/api/
adwords/v10">
<getKeywordVariationsReturn>
<moreSpecific>
<text>suggestion flower</text>
<language>en</language>
<advertiserCompetitionScale>0</advertiserCompetitionScale>
<searchVolumeScale>5</searchVolumeScale>
</moreSpecific>
</getKeywordVariationsReturn>
</getKeywordVariationsResponse>
</soapenv:Body>
</soapenv:Envelope>

AdWords API Advisor

unread,
Mar 6, 2008, 12:17:45 PM3/6/08
to AdWords API Forum
Hello,

The SOAP trace that you provided shows that you are making a
getKeywordVariations call in the Sandbox environment. That's obviously
different from your stated goal of updating account info.

First off, be sure that you understand the difference between the
production and Sandbox environment. The Sandbox environment is
documented at

http://www.google.com/apis/adwords/developer/adwords_api_sandbox.html

and it uses a different set of credentials and tokens from the
production environment, which is documented at

http://www.google.com/apis/adwords/developer/index.html

If you are programming in C# then the AdWordsUser.useSandbox() method
call toggles on the Sandbox environment, and it sounds like that's
what you have in the code you're running.

We don't have a specific C# example of the updateAccountInfo()
method, but there is an example of getAccountInfo() that follows the
same usage pattern at

http://google-api-adwords-dotnet.googlecode.com/svn/trunk/src/examples/AccountServiceNoConfigDemo.cs

Just be sure that if you're trying to modify an account in the
production environment that you are supplying production credentials
and tokens and that you don't have a useSandbox() call in your code.

Cheers,
-Jeffrey Posnick, AdWords API Team
Reply all
Reply to author
Forward
0 new messages