Hi Ravi,

Although it isn't documented well yet in the v2009 API Reference, you
cannot change the URL of an Ad.  This was true in the v13 API (see
http://code.google.com/apis/adwords/docs/developer/AdService.html#updateAds
), and remains true in the v2009 version.  Because the URL affects
quality score, to change the URL you must delete the existing ad and
create a new ad with the new URL.

Best,
- Eric Koleda, AdWords API Team

On Sep 1, 1:54 am, "Ravindra Saklecha" <[email protected]> wrote:
> Hi,
>
>      I recreated my data after the DB was refreshed but now I am not
> able to update the TextAd URLs and Display URLs. Can somebody point out
> if I am missing anything or this is an issue with the sandbox API
> itself?
>
> This is the code I tried using. (It's from the samples)
>
> AdGroupAd adGroupAd = new AdGroupAd();
> adGroupAd.statusSpecified = true;
> adGroupAd.status = AdGroupAdStatus.ENABLED;
> adGroupAd.adGroupId = long.Parse("5000001125");
> adGroupAd.adGroupIdSpecified = true;
> adGroupAd.ad = new Ad();
> adGroupAd.ad.id = long.Parse("1154");
> adGroupAd.ad.idSpecified = true;
> adGroupAd.ad.displayUrl =www.MySite.com;
> AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation();
> adGroupAdOperation.operatorSpecified = true;
> adgroupadoperati...@operator = Operator.SET;
> adGroupAdOperation.operand = adGroupAd;
>
> AdGroupAdReturnValue result = service.mutate(new AdGroupAdOperation[]
> {adGroupAdOperation});
>
> I was able to create data using this code.
>
> Regards,
> Ravi.
>
> "Legal Disclaimer: This electronic message and all contents contain 
> information from Cybage Software Private Limited which may be privileged, 
> confidential, or otherwise protected from disclosure. The information is 
> intended to be for the addressee(s) only. If you are not an addressee, any 
> disclosure, copy, distribution, or use of the contents of this message is 
> strictly prohibited. If you have received this electronic message in error 
> please notify the sender by reply e-mail to and destroy the original message 
> and all copies. Cybage has taken every reasonable precaution to minimize the 
> risk of malicious content in the mail, but is not liable for any damage you 
> may sustain as a result of any malicious content in this e-mail. You should 
> carry out your own malicious content checks before opening the e-mail or 
> attachment."www.cybage.com
--~--~---------~--~----~------------~-------~--~----~
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