How to delete value for DomainName in dynamic search ads

740 views
Skip to first unread message

Enam Mino

unread,
Dec 16, 2019, 10:18:02 AM12/16/19
to AdWords API and Google Ads API Forum
Hi,
you know what is the way to remove the domain in dynamic-search-ads?
setDomainName($mydomain) don't work if $mydomain variable is null or an empty string.
Thanks,
Walter

Google Ads API Forum Advisor Prod

unread,
Dec 16, 2019, 3:56:24 PM12/16/19
to enam...@gmail.com, adwor...@googlegroups.com

Hi Enam,

Thank you for reaching out. It is required to specify the domain while setting up campaigns to create dynamic search ads with the API, said that, you cannot remove the domain in dynamic search ads. Let us know if you need any additional information.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UOEdaB:ref

Enam Mino

unread,
Dec 17, 2019, 8:03:28 AM12/17/19
to AdWords API and Google Ads API Forum
Hi Nikisha,
I've verified that I can set the domainName for the campaign that not is a dynamic search campaign, but It is impossible to remove this value.

Thanks,
Walter

Google Ads API Forum Advisor Prod

unread,
Dec 17, 2019, 11:19:31 AM12/17/19
to enam...@gmail.com, adwor...@googlegroups.com

Hi Walter,

When you are creating a campaign that is going to be used for Dynamic Search Ads, you set up a campaign like normal campaigns using CampaignService, however, you specify the domain name for the campaign using DynamicSearchAdsSetting that tell Google Ads that you're going to use DSAs with your campaign which is a required attribute and cannot be removed later. For any campaigns that are not going to be used for DSAs, this attribute is not required and need no set up. Please refer to this code sample for adding campaigns via API. Also, you might find the campaign object useful for understanding the fields that needs to be populated for creating campaigns without DSAs. Let us know if this clarifies your concerns.



Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UOEdaB:ref
Reply all
Reply to author
Forward
0 new messages