first you have to fetch all campaign sitelinks, and skip those you would like to remove from list and re-add remaining sitelinks to campaign, you cannot remove single sitelink from campaign,
please check url and update ad extensions
https://developers.google.com/adwords/api/docs/guides/extension-settings#migration_steps
On Wednesday, 29 June 2016 14:36:27 UTC+5:30, Imran Tufail wrote:
I want to delete the site links using api but not succeeded yet. Can i delete the x number of site links by passing the feedItemId list. Here is the chunk of code i am using
campaign_extension_setting_service = client.GetService(
'CampaignExtensionSettingServic , version='v201605')e'
campaign_extension_setting = {
'campaignId': campaign_id,
'extensionType': 'SITELINK',
'extensionSetting':{
'extensions':site_link_ids
}
}
operation = {
'operator': 'REMOVE',
'operand': campaign_extension_setting
}
response = campaign_extension_setting_service.mutate([operation])
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/e7b47549-fa6b-4299-951f-49594049d738%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment