How to update existing adds depend upon Id's

43 views
Skip to first unread message

krish

unread,
Sep 2, 2014, 2:46:10 AM9/2/14
to adwor...@googlegroups.com
 Hi

   I am using adwords api . In my project , I need to update the existing adds which are created by me. while creating the adds i am saving the campaign id , addgroup id, textAdd ids in the data base and i am creating  flag like "hasToUpdate"(true/flase) . now i want to update the those adds depending upon the flag hasToUpdate. Now i want to update the Addtext, description line1,description line2, display url,destination url,campaign Name, addgroupName depending up on ids which i stored already in database.  could you please provide any sample code for this.



Thank you,
JAI

Josh Radcliff (AdWords API Team)

unread,
Sep 2, 2014, 3:21:09 PM9/2/14
to adwor...@googlegroups.com
Hi JAI,

Ads are immutable in the AdWords API, so the only way to simulate an update is to REMOVE the existing ad and ADD a new one with the desired values. The RemoveAd.java and AddTextAds.java examples show how to do this with the API.

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages