Duplicate An Ad Group

323 views
Skip to first unread message

Scott Vaillancourt

unread,
Apr 12, 2023, 3:12:47 PM4/12/23
to Google Ads API and AdWords API Forum
I'm attempting to programmatically duplicate ad groups using Python and the Ads APIs. I understand there is no copy/paste functionality similar to what's available via the UI, so I'm thinking I'll have to rely on resource-specific mutate services to generate ad groups and ads. However, with regards to ad group criteria, I'm wondering if there's a way to easily assign existing criteria (e.g, keywords, age range, user interest, user list) to the new ad group. I'd prefer not to have to regenerate every single criterion on a group-by-group basis.

Google Ads API Forum Advisor

unread,
Apr 13, 2023, 3:25:22 AM4/13/23
to sc...@lionhurst.com, adwor...@googlegroups.com

Hi Scott,

Thank you for reaching out to us.

For you to see the existing criteria (e.g, keywords, age range, user interest, user list) in your account. You may use the existing reports where you may see it. For example: keyword_view report for your existing keywords, age_range_view for the age range, user_interest for user interest and user_list for user list.

You may see the links below for the following emphasize words from the above statement:

Best regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kUomQ:ref

Scott Vaillancourt

unread,
Apr 13, 2023, 9:21:34 AM4/13/23
to Google Ads API and AdWords API Forum
Thanks for your response. I do know how to pull the information I'm looking for in terms of existing ad group criteria. My question pertains to how these criteria can be assigned to a new ad group. Specifically, rather than having to recreate all of the existing criteria under the new ad group using 'create' operations within the AdGroupCriterionService, is there a more direct way to link/copy these criteria to new ad group? Thanks.

Google Ads API Forum Advisor

unread,
Apr 13, 2023, 2:44:29 PM4/13/23
to sc...@lionhurst.com, adwor...@googlegroups.com

Hi Scott, 

Thank you for coming back to us. I hope you are doing well today.

With regards to your concern, I’m afraid that the ad_group in AdGroupCriterion can’t be changed or immutable. It can be duplicated or replicated and added to a new ad group. That said, you need to create a new criteria under the new ad group using 'create' operations within the AdGroupCriterionService.

Please note that Google Ads API only mirrors the Google Ads UI. Meaning by using the Google Ads API, you can get and manage the data that you are seeing in the UI. 

Reference links:


Have a great day.

Regards,

Reply all
Reply to author
Forward
0 new messages