For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Get Hotel Insights

GET
/ad_account/hotel_insights

Get Hotel-property Insights for the authenticated ad account. Available only to accounts enrolled in Hotel reporting. Impressions/clicks combine settled and estimated data; spend and cost rates remain settled-only. Inspect coverage before interpreting partial or empty results. Property conversions, geography breakdowns, and metadata sorting are not supported. Current catalog completion is optional and feed-scoped.

Get Hotel Insights

curl "https://api.ads.openai.com/v1/ad_account/hotel_insights?end_date=xxxxxxxxxx&start_date=xxxxxxxxxx" \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "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",
      "impressions": 0,
      "inventory_feed_id": "inventory_feed_id",
      "inventory_item_id": "inventory_item_id",
      "inventory_type": "inventory_type",
      "schema_profile": "schema_profile",
      "spend": 0,
      "ad_group_id": "ad_group_id",
      "ad_id": "ad_id",
      "campaign_id": "campaign_id",
      "date": "date",
      "hotel_base_price": "hotel_base_price",
      "hotel_brand": "hotel_brand",
      "hotel_category": "hotel_category",
      "hotel_city": "hotel_city",
      "hotel_clicks": 0,
      "hotel_country_code": "hotel_country_code",
      "hotel_cpc": 0,
      "hotel_cpm": 0,
      "hotel_ctr": 0,
      "hotel_description": "hotel_description",
      "hotel_impressions": 0,
      "hotel_name": "hotel_name",
      "hotel_primary_image_url": "hotel_primary_image_url",
      "hotel_region": "hotel_region",
      "hotel_spend": 0,
      "hotel_star_rating": 0,
      "hotel_url": "hotel_url",
      "month": "month"
    }
  ],
  "has_more": true,
  "last_id": "last_id",
  "object": "object",
  "timezone": "timezone",
  "total_count": 0
}
Query Parameters
end_date: string

Inclusive YYYY-MM-DD in the ad account timezone, no later than today.

minLength10
maxLength10
start_date: string

Inclusive YYYY-MM-DD in the ad account timezone. Older ranges are accepted; only retained data is returned. Inspect coverage for unavailable history.

minLength10
maxLength10
ad_group_ids: optional array of string
maxItems2000
ad_ids: optional array of string
maxItems2000
after: optional string
maxLength8192
breakdown: optional "campaign" or "ad_group" or "ad"

Expand properties into hierarchy rows. Each row retains its own metrics and repeats hotel_impressions/clicks/spend/ctr/cpc/cpm for the filtered property/time-bucket total. Do not sum these repeated parent metrics across child rows.

One of the following:
"campaign"
"ad_group"
"ad"
campaign_ids: optional array of string
maxItems2000
filters: optional array of string

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.

include_total_count: optional boolean
include_zero_activity: optional boolean

Include current active, unexpired properties from owned Hotel feeds even without activity. Hierarchy filters constrain configured feeds, not exact Hotel Set membership. Daily/monthly results add a zero only in the latest requested bucket. Catalog-only rows retain bucket-mutability data_status; page coverage remains the metric-completeness signal.

inventory_items: optional array of string

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.

maxItems2000
limit: optional integer

Maximum property/time-bucket groups; each may expand into multiple hierarchy rows.

minimum1
maximum2000
sort_direction: optional "asc" or "desc"
One of the following:
"asc"
"desc"
sort_field: optional "impressions" or "clicks" or "spend" or 3 more

Sort property totals before paging or expanding hierarchy rows. Rates use ratios of totals; spend/CPC/CPM use settled data only. Time buckets remain newest first.

One of the following:
"impressions"
"clicks"
"spend"
"ctr"
"cpc"
"cpm"
time_granularity: optional "none" or "daily" or "monthly"
One of the following:
"none"
"daily"
"monthly"
Returns
count: integer
coverage: object { availability, estimated_from_hour_utc, estimated_tail_unconfirmed, 6 more }
availability: string

available, partial, or unavailable. Estimates remain mutable even when available.

estimated_from_hour_utc: string
estimated_tail_unconfirmed: boolean
estimated_through_exclusive_utc: string
has_retention_gap: boolean
includes_pre_v3_interval: boolean
missing_settled_watermark: boolean
retention_start_date: string
settled_through_hour_utc: string or null
data: array of object { clicks, cpc, cpm, 30 more }
clicks: integer
cpc: number

Settled spend divided by settled clicks.

cpm: number

Settled spend per thousand settled impressions.

ctr: number
data_status: string

Bucket mutability: final, estimated, or mixed. See page coverage for source gaps.

impressions: integer
inventory_feed_id: string
inventory_item_id: string
inventory_type: string
schema_profile: string
spend: number

Settled spend in ad-account currency.

ad_group_id: optional string
ad_id: optional string
campaign_id: optional string
date: optional string
hotel_base_price: optional string
hotel_brand: optional string
hotel_category: optional string
hotel_city: optional string
hotel_clicks: optional integer
hotel_country_code: optional string
hotel_cpc: optional number

Property settled spend divided by settled clicks.

hotel_cpm: optional number

Property settled spend per thousand settled impressions.

hotel_ctr: optional number

Property clicks divided by property impressions.

hotel_description: optional string
hotel_impressions: optional integer

Property total across the filtered hierarchy rows in this bucket.

hotel_name: optional string
hotel_primary_image_url: optional string
hotel_region: optional string
hotel_spend: optional number

Property total settled spend in this bucket.

hotel_star_rating: optional number
hotel_url: optional string
month: optional string
has_more: boolean
last_id: string or null
object: string
timezone: string
total_count: optional integer

Number of property/time-bucket groups, before pagination.

Returns Examples
200 — Example
{
  "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",
      "impressions": 0,
      "inventory_feed_id": "inventory_feed_id",
      "inventory_item_id": "inventory_item_id",
      "inventory_type": "inventory_type",
      "schema_profile": "schema_profile",
      "spend": 0,
      "ad_group_id": "ad_group_id",
      "ad_id": "ad_id",
      "campaign_id": "campaign_id",
      "date": "date",
      "hotel_base_price": "hotel_base_price",
      "hotel_brand": "hotel_brand",
      "hotel_category": "hotel_category",
      "hotel_city": "hotel_city",
      "hotel_clicks": 0,
      "hotel_country_code": "hotel_country_code",
      "hotel_cpc": 0,
      "hotel_cpm": 0,
      "hotel_ctr": 0,
      "hotel_description": "hotel_description",
      "hotel_impressions": 0,
      "hotel_name": "hotel_name",
      "hotel_primary_image_url": "hotel_primary_image_url",
      "hotel_region": "hotel_region",
      "hotel_spend": 0,
      "hotel_star_rating": 0,
      "hotel_url": "hotel_url",
      "month": "month"
    }
  ],
  "has_more": true,
  "last_id": "last_id",
  "object": "object",
  "timezone": "timezone",
  "total_count": 0
}