Hello Albin,

 As per the documentation

  http://code.google.com/apis/adwords/docs/developer/AdService.html#updateAds

only the 'status' field of an ad is updatable. You can't make changes
to any of the other fields.

Cheers,
-Jeff Posnick, AdWords API Team


On Jun 9, 7:06 am, Albin <albinwo...@gmail.com> wrote:
> Hello,
>
> I an wondering why the following code does nothing. I don´t get any
> error but I don´t see any change. I tried to change the values of the
> advert and I tried also to create a new one to do the swap. The
> attempt to create a new one with the previouse ID crashes, so the
> system detects when it is really the same TextAd object
>
>         Dim advsrv As AWAdvertService.AdService
>         Dim adv As AWAdvertService.TextAd
>
>         advsrv = AdwCommon.AdService
>
>         adv = advsrv.getAd(idGroup, IDRecord)
>         'adv = New AWAdvertService.TextAd
>         'adv.id = IDRecord
>         adv.adGroupId = idGroup
>         adv.headline = txtHeadline.Text
>         adv.description1 = txtDescription1.Text
>         adv.description2 = txtDescription2.Text
>         adv.destinationUrl = txtDestinationUrl.Text
>         adv.displayUrl = txtDisplayUrl.Text
>         adv.status = AWAdvertService.AdStatus.Enabled
>
>         Dim ads As AWAdvertService.TextAd() = {adv}
>         advsrv.updateAds(ads)
>
> Some idee? Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to