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 Timeseries

GET
/ad_account/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"
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",
      "date": "date",
      "impressions": 0,
      "spend": 0
    }
  ],
  "object": "object",
  "timezone": "timezone"
}
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
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.

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
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, 5 more }
clicks: integer
cpc: number

Settled spend divided by settled clicks.

cpm: number

Settled spend per thousand settled impressions.

ctr: number
data_status: string

final, estimated, or mixed. See coverage for source gaps.

date: string

YYYY-MM-DD in the ad account timezone.

impressions: integer
spend: number

Settled spend in ad-account currency.

object: string
timezone: string
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",
      "date": "date",
      "impressions": 0,
      "spend": 0
    }
  ],
  "object": "object",
  "timezone": "timezone"
}