Get Hotel Insights Timeseries
Get daily Hotel Insights totals across the selected properties for the authenticated ad account, independently of property pagination. Dates use the account timezone. Impressions/clicks combine settled and estimated data; spend and cost rates are settled-only. Missing dates are not filled with zeros: inspect coverage before interpreting partial or empty results. Requires enrollment in Hotel reporting.
Get Hotel Insights Timeseries
curl "https://api.ads.openai.com/v1/ad_account/hotel_insights/timeseries?end_date=xxxxxxxxxx&start_date=xxxxxxxxxx" \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY"{
"count": 0,
"coverage": {
"availability": "availability",
"estimated_from_hour_utc": "estimated_from_hour_utc",
"estimated_tail_unconfirmed": true,
"estimated_through_exclusive_utc": "estimated_through_exclusive_utc",
"has_retention_gap": true,
"includes_pre_v3_interval": true,
"missing_settled_watermark": true,
"retention_start_date": "retention_start_date",
"settled_through_hour_utc": "settled_through_hour_utc"
},
"data": [
{
"clicks": 0,
"cpc": 0,
"cpm": 0,
"ctr": 0,
"data_status": "data_status",
"date": "date",
"impressions": 0,
"spend": 0
}
],
"object": "object",
"timezone": "timezone"
}Query Parameters
Inclusive YYYY-MM-DD in the ad account timezone, no later than today.
Inclusive YYYY-MM-DD in the ad account timezone. Older ranges are accepted; only retained data is returned. Inspect coverage for unavailable history.
JSON object strings with "field", "operator", "value"; all filters are ANDed. At most 2000 text values are allowed across all filters. hotel_name, hotel_brand, hotel_category, hotel_city, hotel_region and hotel_country_code support IN with string arrays (exact, case-sensitive current metadata). impressions, clicks, spend, ctr, cpc and cpm support GREATER_THAN/LESS_THAN with finite numbers. Metrics filter property/time-bucket totals before pagination and hierarchy expansion; trends use daily property totals. CTR is a ratio; CPC/CPM use settled denominators. Missing metadata does not match a text filter.
Optional exact feed/property pairs. Each entry is a JSON object string with "inventory_feed_id" and "inventory_item_id". A property ID is scoped to its feed; entries are ORed as pairs and combined with the other filters. Omitted or empty selects all properties within the other filters.
Returns Examples
{
"count": 0,
"coverage": {
"availability": "availability",
"estimated_from_hour_utc": "estimated_from_hour_utc",
"estimated_tail_unconfirmed": true,
"estimated_through_exclusive_utc": "estimated_through_exclusive_utc",
"has_retention_gap": true,
"includes_pre_v3_interval": true,
"missing_settled_watermark": true,
"retention_start_date": "retention_start_date",
"settled_through_hour_utc": "settled_through_hour_utc"
},
"data": [
{
"clicks": 0,
"cpc": 0,
"cpm": 0,
"ctr": 0,
"data_status": "data_status",
"date": "date",
"impressions": 0,
"spend": 0
}
],
"object": "object",
"timezone": "timezone"
}