Remove all ad extensions from Campaign using Campaign Extension Setting Service

52 views
Skip to first unread message

រតនា ជួន

unread,
Jul 9, 2015, 9:46:13 PM7/9/15
to adwor...@googlegroups.com
I have changed to use Campaign Extension Setting service to manage ad extensions for Campaign. 
It works fine for assign ad extension to campaign but I got an error when I want to remove all extensions from a campaign (assign empty array).

{:operator=>"SET",
  
:operand=>
   
{:campaign_id=>"284821869",
    
:extension_type=>"CALLOUT",
    
:extension_setting=>
     
{:platform_restrictions=>"NONE",
      
:extensions=>[]
     }
   }
}

What's problem with my code? Or Campaign Extension Setting Service not be able to do this?

Regrad,
Rothana 

Umesh Dengale

unread,
Jul 10, 2015, 5:34:50 PM7/10/15
to adwor...@googlegroups.com, rothana...@gmail.com
Hi Rothana,

To delete the Ad extensions for a campaign, you can use the CampaignExtensionSettingService with REMOVE operator.
You need to set only campaignId and extensionType and no need to set extensionSetting for delete the Ad Extensions.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages