With your Hotel Center account linked to your Google Ads account, Google Ads now automatically enriches existing Search campaigns with prices and images drawn from the Hotel Center feeds. This feature is known as Travel Feeds for Search Ads.
Opt-out from Travel Feeds for Search Ads
If you prefer not to use this feature, you can use the Google Ads API to opt out from this feature at the customer and campaign levels.
Opt out at the customer level
To opt out from Travel Feeds for Search Ads at the customer level, do the following:
Retrieve all resource names of
CustomerAssetSet
whose type isTRAVEL_FEED
using thecustomer_asset_set
report:SELECT asset_set.resource_name, asset_set.name FROM customer_asset_set WHERE asset_set.type = 'TRAVEL_FEED'
For each resource name, create a
CustomerAssetSetOperation
and setremove
to the resource name retrieved from the previous step.Submit a request to
CustomerAssetSetService.MutateCustomerAssetSets
using the createdCustomerAssetSetOperation
objects.
If you want to opt in to this feature at the customer level again:
- For each resource name of the
CustomerAssetSet
retrieved from the earlier steps, create a newCustomerAssetSet
withasset_set
set to the resource name andcustomer
to the resource name of your customer. - For each
CustomerAssetSet
created in the previous step, create aCustomerAssetSetOperation
withcreate
set to theCustomerAssetSet
. - Submit a request to
CustomerAssetSetService.MutateCustomerAssetSets
using the createdCustomerAssetSetOperation
objects.
Opt out at the campaign level
To opt out from Travel Feeds for Search Ads at the campaign level, you must first exclude the overridden opt-in status from the customer level:
Retrieve
excluded_parent_asset_set_types
using thecampaign
report.SELECT campaign.excluded_parent_asset_set_types FROM campaign WHERE campaign.id = 'INSERT_YOUR_CAMPAIGN_ID'
Create a new
Campaign
object withexcluded_parent_asset_set_types
set to the previous values plusTRAVEL_FEED
andresource_name
set to your campaign's resource name.Create a
CampaignOperation
and setupdate
to the previously createdCampaign
andupdate_mask
accordingly.Submit a request to the
CampaignService.MutateCampaigns
using aCampaignOperation
created in the previous step.
Then, do the following:
For a campaign you want to opt out, retrieve all resource names of
CampaignAssetSet
whose type isTRAVEL_FEED
using thecampaign_asset_set
report.SELECT asset_set.resource_name, asset_set.name FROM campaign_asset_set WHERE campaign_asset_set.campaign = 'INSERT_YOUR_CAMPAIGN_RESOURCE_NAME' AND asset_set.type = 'TRAVEL_FEED'
For each resource name, create a
CampaignAssetSetOperation
and setremove
to the resource name retrieved from the previous step.Submit a request to
CampaignAssetSetService.MutateCampaignAssetSets
using the createdCampaignAssetSetOperation
objects.
If you want to opt in to this feature at the campaign level again:
- For each resource name of the
CampaignAssetSet
retrieved from the earlier steps, create a newCampaignAssetSet
withasset_set
withasset_set
set to the resource name of the asset set you want to opt in andcampaign
to the resource name of your campaign. - For each
CampaignAssetSet
created in the previous step, create aCampaignAssetSetOperation
withcreate
set to theCampaignAssetSet
. - Submit a request to
CampaignAssetSetService.MutateCampaignAssetSets
using the createdCampaignAssetSetOperation
objects.
Return the opt-in status of the campaign
If you want to make the opt-in status of a campaign dependent on the setting at the customer level again, follow these steps:
- Create a new
Campaign
object withexcluded_parent_asset_set_types
withoutTRAVEL_FEED
in the list andresource_name
set to your campaign's resource name. - Create a
CampaignOperation
and setupdate
to the previously createdCampaign
andupdate_mask
accordingly. - Submit a request to the
CampaignService.MutateCampaigns
using aCampaignOperation
created in the previous step.
Reporting
You can use
ClickType.TRAVEL_ASSETS
to identify performance data of the ads served as Travel Feeds for Search
Ads, such as fetching the
performance data for the ads in all your campaigns:
SELECT campaign.name, segments.click_type, metrics.impressions, metrics.clicks FROM campaign WHERE segments.click_type = 'TRAVEL_ASSETS'