Hi Sreelakshmi Thank you for your quick reply
I have a question about this point And the process will have to be repeated for all the nested objects within > the campaign and the adgroup. Those nested objects are only adgroups and criterion? If no, can you give me a list of all the nested objects that are contained in a campaign and need to be copied when cloning a campaign? Thank in advance, Emanuele PS I think there are some trouble with google groups: this is the second time I create this reply On Monday, April 24, 2017 at 8:04:19 PM UTC+2, Sreelakshmi Sasidharan (AdWords API Team) wrote: > > Hi Emanuele, > > The AdWords API does not have a clone functionality. If you want to create > a copy of any object (campaign, adgroup, keyword..), you can first use the > get service of that specific object and then pass the retrieved object to > the mutate call of the corresponding service with the operator set as ADD. > Eg., If you want to clone campaign A to create campaign B, you will first > use the CampaignService.get() > <https://developers.google.com/adwords/api/docs/reference/v201702/CampaignService#get> > and > retrieve all the fields of campaign A and this result will need to be > passed to CampaignService.mutate() > <https://developers.google.com/adwords/api/docs/reference/v201702/CampaignService#mutate>. > > This will only create a copy of campaign A and not the nested adgroups or > criterion. To create the complete copy of campaign including the adgroups > and criterion, you will need to be repeat the process in sequence using the > 'get' of the respective service followed by mutate and so on. And the > process will have to be repeated for all the nested objects within the > campaign and the adgroup. > > To find out the adgroups under a given campaign, you could use the > AdGroupService.get() > <https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201702-AdGroupService> > with > the specific CampaignId > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupService.AdGroup#campaignId> > set > as predicate. > > Unlike AdWords web interface, there isn't a single service that copies the > entire Campaign. Please let me know if have any additional questions. > > Thanks, > Sreelakshmi, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3a16f2c4-b7f6-43b3-b140-59503a89a87c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.