Is there an option to Duplicate campaigns using the api

45 views
Skip to first unread message

Barak Haviv

unread,
Oct 2, 2014, 8:51:29 AM10/2/14
to adwor...@googlegroups.com
Is there option to duplicate campaigns via the AdWords api.
My colleague that work with AdWords admin panel and use to duplicate campaigns by using C-c C-v
She said that she has this option also via the AdWords desktop editor.
Is there any way that I can implement this functionality using the api
And that it will also copy all the campaigns settings.

Thanks
Barak

Alan Coleman

unread,
Oct 3, 2014, 6:22:16 AM10/3/14
to adwor...@googlegroups.com
Hi Barak,

This is possible. 

Read the campaign you want to duplicate:

function GetCampaignsExample() {
 
// Get the service, which loads the required classes.
  $campaignService
= $user->GetService('CampaignService', ADWORDS_VERSION);


Then create a new campaign with the same details:

function AddCampaignsExample() {
 
// Get the BudgetService, which loads the required classes.
  $budgetService
= $user->GetService('BudgetService', ADWORDS_VERSION);

This will only duplicate your campaign, it wont furnish it with AdGroups ect. To do that you'll need to repeat the above process in a similar manner for anything you need.

Can anyone suggest a better method?

Thanks

Michael Cloonan (AdWords API Team)

unread,
Oct 3, 2014, 10:31:48 AM10/3/14
to adwor...@googlegroups.com
Hello Barak,

I believe Alan's suggestion is the best. With API access, you can easily grab a campaign and then create a new one with the same settings, and then repeat for everything within the campaign that you want to keep. There is no "automatic" way to do this with a single call.

Regards,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages