As with other ad types, you can use three ways
SearchStream) to query for resources, metrics, or
metadata for Hotel Ads.
This page provides example queries to do the following:
- Get ad group metrics
- Get enabled ads
Example: Get Ad Group Metrics
Below is an example query that retrieves impressions and clicks for your Hotel ad groups over the last 30 days, segmented by date.
SELECT campaign.name, campaign.status, ad_group.name, segments.date, metrics.impressions, metrics.clicks FROM ad_group WHERE ad_group.type = HOTEL_ADS AND segments.date DURING LAST_30_DAYS
Example: Get Enabled Ads
Below is an example query that gets your Hotel ads that are enabled at each level required for an ad to serve.
SELECT ad_group.id, ad_group.name, ad_group.status, campaign.name, campaign.status, ad_group_ad.status FROM ad_group_ad WHERE ad_group_ad.status = ENABLED AND campaign.status = ENABLED AND ad_group.status = ENABLED