Hello Dominic,
No, this is not possible with AdWords. -Danial, AdWords APi Team. On Monday, February 9, 2015 at 2:14:46 PM UTC+3, Dominic Asche wrote: > > @Anash - does this mean, there is no way to update for example the target > url of an text ad? > > > > > Am Dienstag, 19. März 2013 09:13:20 UTC+1 schrieb Anash P. Oommen (AdWords > API Team): >> >> Hi, >> >> AdWords doesn't allow you to update text ad fields once you have created >> it. You need to create a copy of the text ad with modified field values and >> delete the existing ad instead. >> >> Cheers, >> Anash P. Oommen, >> AdWords API Advisor. >> >> On Friday, March 15, 2013 11:32:26 PM UTC+5:30, Ivan Panteleev wrote: >>> >>> Hi >>> For example, I wanna update some of TextAd parameters. >>> I'm trying to do this with this code: >>> >>> function UpdateAd(AdWordsUser $user, $adGroupId, $adId) { >>> $adGroupAdService = $user->GetService('AdGroupAdService', >>> ADWORDS_VERSION); >>> >>> $ad = new TextAd(); >>> $ad->id = $adId; >>> $ad->headline = 'Test Headline Text'; >>> $ad->description1 = 'Updates description1 text'; >>> >>> // Create ad group ad. >>> $adGroupAd = new AdGroupAd(); >>> $adGroupAd->adGroupId = $adGroupId; >>> $adGroupAd->ad = $ad; >>> >>> // Update the status. >>> $adGroupAd->status = 'ENABLED'; >>> >>> // Create operation. >>> $operation = new AdGroupAdOperation(); >>> $operation->operand = $adGroupAd; >>> $operation->operator = 'SET'; >>> >>> $operations = array($operation); >>> >>> // Make the mutate request. >>> return $adGroupAdService->mutate($operations); >>> } >>> >>> But after executing this function I see that *headline *& *description1* >>> params >>> didn't changed. Only status affected. >>> Why so? Where I'm wrong? >>> >>> P.S. Should I always update status field? For example what if I wanna >>> update only some TextAd params? >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a2ec3767-7204-4605-939d-a910a655ee5e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.