Pliki danych o podróżach w reklamach w wyszukiwarce
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Gdy połączysz pliki danych o hotelach, domach wakacyjnych lub atrakcjach z kontem Google Ads, Google Ads automatycznie wzbogaci dotychczasowe kampanie w sieci wyszukiwania o ceny i zdjęcia pobrane z tych plików danych. Ta funkcja jest znana jako pliki danych o miejscach noclegowych w reklamach w wyszukiwarce.
Rezygnacja z plików danych o miejscach noclegowych w reklamach w wyszukiwarce
Jeśli nie chcesz korzystać z tej funkcji, możesz zrezygnować z niej na poziomie klienta i kampanii za pomocą interfejsu Google Ads API.
Rezygnowanie na poziomie klienta
Aby zrezygnować z plików danych o miejscach noclegowych w reklamach w wyszukiwarce na poziomie klienta:
Pobierz wszystkie nazwy zasobów CustomerAssetSet
, których typ to TRAVEL_FEED
, za pomocą raportu customer_asset_set
:
SELECT asset_set.resource_name, asset_set.name FROM customer_asset_set WHERE asset_set.type = 'TRAVEL_FEED'
Dla każdej nazwy zasobu utwórz CustomerAssetSetOperation
i ustaw remove
na nazwę zasobu pobraną w poprzednim kroku.
Prześlij żądanie do CustomerAssetSetService.MutateCustomerAssetSets
, korzystając z utworzonych obiektów CustomerAssetSetOperation
.
Jeśli chcesz ponownie włączyć tę funkcję na poziomie klienta:
- Dla każdej nazwy zasobu
CustomerAssetSet
pobranej we wcześniejszych krokach utwórz nowy obiekt CustomerAssetSet
, w którym asset_set
jest ustawione na nazwę zasobu, a customer
na nazwę zasobu klienta.
- Dla każdego elementu
CustomerAssetSet
utworzonego w poprzednim kroku utwórz element CustomerAssetSetOperation
z elementem create
ustawionym na CustomerAssetSet
.
- Prześlij żądanie do
CustomerAssetSetService.MutateCustomerAssetSets
, korzystając z utworzonych obiektów CustomerAssetSetOperation
.
Rezygnowanie na poziomie kampanii
Aby zrezygnować z plików danych o podróżach w reklamach w sieci wyszukiwania na poziomie kampanii, musisz najpierw wykluczyć zastąpiony stan zgody na poziomie klienta:
Pobierz excluded_parent_asset_set_types
, korzystając z raportu campaign
.
SELECT campaign.excluded_parent_asset_set_types FROM campaign WHERE campaign.id = 'INSERT_YOUR_CAMPAIGN_ID'
Utwórz nowy obiekt Campaign
z wartością
excluded_parent_asset_set_types
ustawioną na poprzednie wartości plus
TRAVEL_FEED
i wartością
resource_name
ustawioną na nazwę zasobu kampanii.
Utwórz CampaignOperation
i ustaw update
na wcześniej utworzone Campaign
i update_mask
.
Prześlij prośbę do CampaignService.MutateCampaigns
, korzystając z CampaignOperation
utworzonego w poprzednim kroku.
Następnie wykonaj te czynności:
W przypadku kampanii, z której chcesz zrezygnować, pobierz wszystkie nazwy zasobów CampaignAssetSet
, których typ to TRAVEL_FEED
, korzystając z raportu campaign_asset_set
.
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'
Dla każdej nazwy zasobu utwórz CampaignAssetSetOperation
i ustaw remove
na nazwę zasobu pobraną w poprzednim kroku.
Prześlij żądanie do CampaignAssetSetService.MutateCampaignAssetSets
, korzystając z utworzonych obiektów CampaignAssetSetOperation
.
Jeśli chcesz ponownie włączyć tę funkcję na poziomie kampanii:
- W przypadku każdej nazwy zasobu
CampaignAssetSet
pobranej we wcześniejszych krokach utwórz nowy obiekt CampaignAssetSet
z parametrem asset_set
, w którym parametr asset_set
jest ustawiony na nazwę zasobu zestawu komponentów, z którego chcesz zrezygnować, a parametr campaign
– na nazwę zasobu kampanii.
- Dla każdego elementu
CampaignAssetSet
utworzonego w poprzednim kroku utwórz element CampaignAssetSetOperation
z elementem create
ustawionym na CampaignAssetSet
.
- Prześlij żądanie do
CampaignAssetSetService.MutateCampaignAssetSets
, korzystając z utworzonych obiektów CampaignAssetSetOperation
.
Zwraca stan zgody na udział w kampanii.
Jeśli chcesz ponownie uzależnić stan zgody w kampanii od ustawienia na poziomie klienta, wykonaj te czynności:
- Utwórz nowy obiekt
Campaign
z excluded_parent_asset_set_types
bez
TRAVEL_FEED
na liście i resource_name
ustawionym na nazwę zasobu kampanii.
- Utwórz
CampaignOperation
i ustaw update
na wcześniej utworzone Campaign
i update_mask
.
- Prześlij prośbę do
CampaignService.MutateCampaigns
, korzystając z CampaignOperation
utworzonego w poprzednim kroku.
Raportowanie
Możesz użyć
ClickType.TRAVEL_ASSETS
do identyfikowania danych o skuteczności reklam wyświetlanych jako pliki danych o miejscach noclegowych w reklamach w wyszukiwarce, np. do pobierania danych o skuteczności reklam we wszystkich kampaniach:
SELECT campaign.name, segments.click_type, metrics.impressions, metrics.clicks FROM campaign WHERE segments.click_type = 'TRAVEL_ASSETS'
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-27 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-27 UTC."],[[["\u003cp\u003eGoogle Ads automatically enhances Search campaigns with hotel prices and images from Hotel Center feeds through a feature called Travel Feeds in Search Ads.\u003c/p\u003e\n"],["\u003cp\u003eYou can opt out of this feature at the customer or campaign level using the Google Ads API, following the provided steps.\u003c/p\u003e\n"],["\u003cp\u003eTo opt back in, reverse the opt-out process by creating and linking the relevant asset sets at the desired level.\u003c/p\u003e\n"],["\u003cp\u003eTrack the performance of Travel Feeds in Search Ads using the \u003ccode\u003eClickType.TRAVEL_ASSETS\u003c/code\u003e in your reporting queries.\u003c/p\u003e\n"]]],[],null,["# Travel Feeds in Search Ads\n\nWith your Hotels, Vacation Rental, or Things To Do product feeds linked to your\nGoogle Ads account, Google Ads now automatically enriches existing Search campaigns with\nprices and images drawn from your feeds. This feature is known as\n[Travel Feeds in Search Ads](//support.google.com/google-ads/answer/15265488).\n\nOpt-out from Travel Feeds in Search Ads\n---------------------------------------\n\nIf you prefer not to use this feature, you can use the Google Ads API to opt out from\nthis feature at the customer and campaign levels.\n\n### Opt out at the customer level\n\nTo opt out from Travel Feeds in Search Ads at the customer level, do the\nfollowing:\n\n1. Retrieve all resource names of\n [`CustomerAssetSet`](/google-ads/api/reference/rpc/v21/CustomerAssetSet) whose type is\n [`TRAVEL_FEED`](/google-ads/api/reference/rpc/v21/AssetSetTypeEnum.AssetSetType#travel_feed)\n using the [`customer_asset_set`](/google-ads/api/fields/v21/customer_asset_set) report:\n\n SELECT asset_set.resource_name, asset_set.name FROM customer_asset_set WHERE asset_set.type = 'TRAVEL_FEED'\n\n2. For each resource name, create a [`CustomerAssetSetOperation`](/google-ads/api/reference/rpc/v21/CustomerAssetSetOperation) and set\n [`remove`](/google-ads/api/reference/rpc/v21/CustomerAssetSetOperation#remove) to the resource\n name retrieved from the previous step.\n\n3. Submit a request to [`CustomerAssetSetService.MutateCustomerAssetSets`](/google-ads/api/reference/rpc/v21/CustomerAssetSetService/MutateCustomerAssetSets) using the\n created `CustomerAssetSetOperation` objects.\n\nIf you want to opt in to this feature at the customer level again:\n\n1. For each resource name of the `CustomerAssetSet` retrieved from the earlier steps, create a new [`CustomerAssetSet`](/google-ads/api/reference/rpc/v21/CustomerAssetSet) with `asset_set` set to the resource name and `customer` to the resource name of your customer.\n2. For each `CustomerAssetSet` created in the previous step, create a [`CustomerAssetSetOperation`](/google-ads/api/reference/rpc/v21/CustomerAssetSetOperation) with [`create`](/google-ads/api/reference/rpc/v21/CustomerAssetSetOperation#create) set to the `CustomerAssetSet`.\n3. Submit a request to [`CustomerAssetSetService.MutateCustomerAssetSets`](/google-ads/api/reference/rpc/v21/CustomerAssetSetServiceMutateCustomerAssetSets) using the created `CustomerAssetSetOperation` objects.\n\n### Opt out at the campaign level\n\nTo opt out from Travel Feeds in Search Ads at the campaign level, you must\nfirst exclude the overridden opt-in status from the customer level:\n\n1. Retrieve [`excluded_parent_asset_set_types`](/google-ads/api/reference/rpc/v21/Campaign#excluded_parent_asset_set_types%5B%5D)\n using the [`campaign`](/google-ads/api/fields/v21/campaign) report.\n\n SELECT campaign.excluded_parent_asset_set_types FROM campaign WHERE campaign.id = '\u003cvar translate=\"no\"\u003eINSERT_YOUR_CAMPAIGN_ID\u003c/var\u003e'\n\n2. Create a new [`Campaign`](/google-ads/api/reference/rpc/v21/Campaign) object with\n [`excluded_parent_asset_set_types`](/google-ads/api/reference/rpc/v21/Campaign#excluded_parent_asset_set_types%5B%5D)\n set to the previous values *plus*\n [`TRAVEL_FEED`](/google-ads/api/reference/rpc/v21/AssetSetTypeEnum.AssetSetType#travel_feed) and\n `resource_name` set to your campaign's resource name.\n\n3. Create a [`CampaignOperation`](/google-ads/api/reference/rpc/v21/CampaignOperation) and set\n [`update`](/google-ads/api/reference/rpc/v21/CampaignOperation#update) to the previously created\n `Campaign` and [`update_mask`](/google-ads/api/reference/rpc/v21/CampaignOperation#update_mask)\n accordingly.\n\n4. Submit a request to the [`CampaignService.MutateCampaigns`](/google-ads/api/reference/rpc/v21/CampaignService/MutateCampaigns)\n using a `CampaignOperation` created in the previous step.\n\nThen, do the following:\n\n1. For a campaign you want to opt out, retrieve all resource names of\n [`CampaignAssetSet`](/google-ads/api/reference/rpc/v21/CampaignAssetSet) whose type is\n [`TRAVEL_FEED`](/google-ads/api/reference/rpc/v21/AssetSetTypeEnum.AssetSetType#travel_feed)\n using the [`campaign_asset_set`](/google-ads/api/fields/v21/campaign_asset_set) report.\n\n SELECT asset_set.resource_name, asset_set.name FROM campaign_asset_set\n WHERE campaign_asset_set.campaign = '\u003cvar translate=\"no\"\u003eINSERT_YOUR_CAMPAIGN_RESOURCE_NAME\u003c/var\u003e' AND asset_set.type = 'TRAVEL_FEED'\n\n2. For each resource name, create a [`CampaignAssetSetOperation`](/google-ads/api/reference/rpc/v21/CampaignAssetSetOperation) and set\n [`remove`](/google-ads/api/reference/rpc/v21/CampaignAssetSetOperation#remove) to the resource\n name retrieved from the previous step.\n\n3. Submit a request to [`CampaignAssetSetService.MutateCampaignAssetSets`](/google-ads/api/reference/rpc/v21/CampaignAssetSetService/MutateCampaignAssetSets) using the\n created `CampaignAssetSetOperation` objects.\n\nIf you want to opt in to this feature at the campaign level again:\n\n1. For each resource name of the `CampaignAssetSet` retrieved from the earlier steps, create a new [`CampaignAssetSet`](/google-ads/api/reference/rpc/v21/CampaignAssetSet) with `asset_set` with `asset_set` set to the resource name of the asset set you want to opt in and `campaign` to the resource name of your campaign.\n2. For each `CampaignAssetSet` created in the previous step, create a [`CampaignAssetSetOperation`](/google-ads/api/reference/rpc/v21/CampaignAssetSetOperation) with [`create`](/google-ads/api/reference/rpc/v21/CampaignAssetSetOperation#create) set to the `CampaignAssetSet`.\n3. Submit a request to [`CampaignAssetSetService.MutateCampaignAssetSets`](/google-ads/api/reference/rpc/v21/CampaignAssetSetService/MutateCampaignAssetSets) using the created `CampaignAssetSetOperation` objects.\n\n### Return the opt-in status of the campaign\n\nIf you want to make the opt-in status of a campaign dependent on the setting at\nthe customer level again, follow these steps:\n\n1. Create a new [`Campaign`](/google-ads/api/reference/rpc/v21/Campaign) object with [`excluded_parent_asset_set_types`](/google-ads/api/reference/rpc/v21/Campaign#excluded_parent_asset_set_types%5B%5D) **without** [`TRAVEL_FEED`](/google-ads/api/reference/rpc/v21/AssetSetTypeEnum.AssetSetType#travel_feed) in the list and `resource_name` set to your campaign's resource name.\n2. Create a [`CampaignOperation`](/google-ads/api/reference/rpc/v21/CampaignOperation) and set [`update`](/google-ads/api/reference/rpc/v21/CampaignOperation#update) to the previously created `Campaign` and [`update_mask`](/google-ads/api/reference/rpc/v21/CampaignOperation#update_mask) accordingly.\n3. Submit a request to the [`CampaignService.MutateCampaigns`](/google-ads/api/reference/rpc/v21/CampaignService/MutateCampaigns) using a `CampaignOperation` created in the previous step.\n\nReporting\n---------\n\nYou can use\n[`ClickType.TRAVEL_ASSETS`](/google-ads/api/reference/rpc/v21/ClickTypeEnum.ClickType#travel_assets)\nto identify performance data of the ads served as [Travel Feeds in Search\nAds](//support.google.com/google-ads/answer/15265488), such as fetching the\nperformance data for the ads in all your campaigns: \n\n SELECT campaign.name, segments.click_type, metrics.impressions, metrics.clicks FROM campaign WHERE segments.click_type = 'TRAVEL_ASSETS'"]]