Hi, That's true -- if there are features in the template campaign that are not settable by the API, then my approach won't work.
I'm curious: which targeting options or campaign settings that you need are not settable via the API? Thanks, Josh, AdWords API Team On Wednesday, November 5, 2014 7:29:51 AM UTC-5, Berry wrote: > > again my incomplete question: > > By copying an existing campaign I wanted to *working around* the > inability to set by API certain targeting options and certain campaign > settings. > > Thus the suggested method wouldn't work for my objective, if I get it > correctly. > > > On Tuesday, November 4, 2014 11:52:14 PM UTC+2, Josh Radcliff (AdWords API > Team) wrote: >> >> Hi, >> >> The API does not have specific clone functionality. However, you could >> approximate this functionality by issuing a CampaignService.get >> <https://developers.google.com/adwords/api/docs/reference/v201409/CampaignService#get> >> >> with all relevant fields in the *Selector*, changing the name of the >> returned object, and then passing it back into a CampaignService.mutate >> <https://developers.google.com/adwords/api/docs/reference/v201409/CampaignService#mutate> >> call >> with *operator = ADD*. This would only make a "shallow" copy of the >> campaign, however. You would have to repeat this process using other >> services if you also wanted to clone objects related to the template >> campaign, such as ad groups or negative keyword criteria. >> >> Cheers, >> Josh, AdWords API Team >> >> On Tuesday, November 4, 2014 12:37:53 PM UTC-5, Berry wrote: >>> >>> (BTW: this functionallity exists in the UI as "copy-paste") >>> >>> >>> On Monday, November 3, 2014 7:18:46 PM UTC+2, Berry wrote: >>>> >>>> Is there a way to duplicate / clone a whole campaign via API? >>>> >>>> I'd like to create certain campaigns manually, and then clone each >>>> campaign without the need to update the creation code every time the >>>> "template" campaign changes. >>>> >>>> is that possible? and how? >>>> >>>> >>>> thank you. >>>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 --- 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 [email protected]. 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/38633d3b-1418-418e-9b5c-1fead896a9ec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
