how can I copy campaign ad extensions to another

30 views
Skip to first unread message

orzorc

unread,
Nov 30, 2017, 9:59:44 PM11/30/17
to AdWords API Forum
Hi,
I want to copy all extensions attached to A_campaign in A_account to B_campaign in B_account and B_account has no extensions.
I have read the examples about extension but have no clue how can I make use of them.
I have no idea about how feeds, feedItems, feedMatching and extensions work together.

What I am thinking is that I should
1. find out all relating feeds of A_campaign and copy them to B_account (no idea how to do this)
2. transfer those feeds to extensions (using feedMatching? Is there any way to directly copy extensions?)
3. attach extensions to B_campaign (no idea)

Could any one give a hand or examples?
Thank you.

orzorc

unread,
Nov 30, 2017, 10:25:21 PM11/30/17
to AdWords API Forum
what's more, C_campaign in B_account is requiring the same set of extensions, how can I copy to both C_campaign and B_campaign?
So I need to know how to operate with feed id and feed mapping id and attach them to campaign?


在 2017年12月1日星期五 UTC+8上午10:59:44,orzorc写道:

Peter Oliquino

unread,
Dec 1, 2017, 2:54:46 AM12/1/17
to AdWords API Forum
Hi,

There is currently no direct way to achieve this. Depending on the AdWords API service that you used (if it is feed based, or via the extension setting services), you will first need to use the service's get() method in order to retrieve all the information from its objects. For example, if you used CampaignExtensionSettingService, will first need to retrieve all your ExtensionSetting information using the CampaignExtensionSettingService.get() method.

Once you have done so, you may store the information in a temporary database or variables, then programmatically change the clientCustomerId (and the OAuth2 credentials, if current access is not shared across your accounts). You can then use the ADD operator to create your extensions into your other account/campaign.

Feel free to write back to me if you have any further clarifications.

Thanks and regards,
Peter
AdWords API Team

orzorc

unread,
Dec 3, 2017, 10:14:59 PM12/3/17
to AdWords API Forum
I can get some object via CampaignExtensionSettingService. And dump the result objects.
I notice that every ExtensionSetting object includes some FeedItems, like CalloutFeedItem, AppFeedItem. Does this mean it is feed based?

orzorc

unread,
Dec 3, 2017, 10:24:24 PM12/3/17
to AdWords API Forum
And I find that different feedItems share same feedId.
How can I create that feedId and assign it to the right feedItems?


On Friday, December 1, 2017 at 3:54:46 PM UTC+8, Peter Oliquino wrote:
Reply all
Reply to author
Forward
0 new messages