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/74b6cb46-7df5-4d11-b66d-401f0814812b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Clone a ... Emanuele Bragagnolo
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... Emanuele Bragagnolo
      • ... Emanuele Bragagnolo
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... Emanuele Bragagnolo
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
    • Re:... Zweitze
      • ... Emanuele Bragagnolo

Reply via email to