Hi Samir,

Yes, you can get and remove extensions in the AdWords API. You can use the 
get() 
<https://developers.google.com/adwords/api/docs/reference/v201708/CampaignExtensionSettingService#get>
 and mutate() 
<https://developers.google.com/adwords/api/docs/reference/v201708/CampaignExtensionSettingService#mutate>
 (with 
REMOVE operator) methods of the CampaignExtensionSettingService 
<https://developers.google.com/adwords/api/docs/reference/v201708/CampaignExtensionSettingService>
 (or AdGroupExtensionSettingService 
<https://developers.google.com/adwords/api/docs/reference/v201708/AdGroupExtensionSettingService>
 or CustomerExtensionSettingService 
<https://developers.google.com/adwords/api/docs/reference/v201708/CustomerExtensionSettingService>)
 
to do this. However, apologies as we do not have specific examples on this 
in our client libraries.

For the get extensions, you may refer to the SOAP request snippet so you 
can emulate the structure in your .NET code:

<soapenv:Body>
        <get xmlns="https://adwords.google.com/api/adwords/cm/v201708";>
            <selector>
                <fields>CampaignId</fields>
                <fields>Extensions</fields>
                <fields>ExtensionType</fields>
            </selector>
        </get>
</soapenv:Body>

For removing extensions, you may refer to this complete guide 
<https://developers.google.com/adwords/api/docs/guides/extension-settings#removing_ad_extensions>
 for 
more information on how to do this. Kindly refer to the SOAP response 
snippet below so you can emulate this on your end:

<soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201708";>
            <operations>
                <operator>REMOVE</operator>
                <operand>
                    <campaignId>XXXXXXXXX</campaignId>
                    <extensionType>SITELINK</extensionType>
                </operand>
            </operations>
        </mutate>
</soapenv:Body>

Let me know if this helps.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscr...@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+unsubscr...@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/74f145c5-e285-446d-b319-cafa7f230e53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Can I get and Re... samir . hassan
    • Re: Can I g... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to