HI NS, There is no object called NetworkTargetOperation. The CampaignTargetService only has a CampaignTargetOperation, which sets a TargetList. To update targets the process should be:
- Use CampaignTargetService.get() to retrieve the current targets - Add/update/remove targets from the TargetList - Use CampaignTargetService.mutate() with the SET operation to save the targets. Changes should only be made to the TargetList that you SET, and other TargetLists should remain the same. Best, - Eric Koleda, AdWords API Team On Apr 14, 6:05 pm, NS <[email protected]> wrote: > Anyone, please help. > > Thanks, > NS > > On Apr 14, 11:21 am, NS <[email protected]> wrote: > > > > > Hello Everybody, > > > I was trying to update Language, Geo and network targets on a campaign > > but I don't want to update all of those. I want to update just the one > > which has been modified in the UI. So if the user modified only > > Network Target I just pass one Operation, NetworkTargetOperation in > > the mutate. When I review the changes, it sets the GeoTargets and > > LanguageTargets to empty arrays after the 'SET' operation. > > > i was wondering if I have to pass the existing values every time in > > such cases even if they haven't been modified ? > > > Any help would be highly appreciated. > > > Thanks, > > NS -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 To unsubscribe, reply using "remove me" as the subject.
