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
On Thursday, October 2, 2014 1:51:29 PM UTC+1, Barak Haviv wrote:
>
> 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
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a961b641-a765-4939-b3c2-90db5f8a7855%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.