Retrieve ad report
Performance report for a company, ad campaign, ad group, or ad. Always returns aggregate summary totals. Set granularity (daily/hourly) to additionally get a time series, or set breakdown (campaign/ad_group/ad) to additionally get per-entity rows inside the requested scope. Exactly one of companyId, adCampaignId, adGroupId, or adId must be provided.
Required permissions:
ad_campaign:stats:read
Documentation Index
Fetch the complete documentation index at: https://docs.whop.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Query Parameters
The unique identifier of an ad campaign. Mutually exclusive with companyId, adGroupId, and adId.
The unique identifier of an ad group. Mutually exclusive with companyId, adCampaignId, and adId.
The unique identifier of an ad. Mutually exclusive with companyId, adCampaignId, and adGroupId.
Entity level to break down the report by. When set, breakdown on the response contains one row per entity at the requested level inside the requested scope. ad returns one row per ad, ad_group per ad group, campaign per ad campaign. The breakdown level must be at or below the scope (e.g. adId cannot be broken down by campaign). The summary totals are unaffected.
campaign, ad_group, ad The unique identifier of a company. Mutually exclusive with adCampaignId, adGroupId, and adId. Use with breakdown to fan out across every campaign, ad group, or ad in the company without paging.
"biz_xxxxxxxxxxxxxx"
ISO 4217 currency code to report spend in. Defaults to the company's ads reporting currency.
Inclusive start of the reporting window.
"2023-12-01T05:00:00.401Z"
Bucket grain for the per-bucket time series returned in granularity on the response. Omit (null) for summary-only. daily returns one row per day; hourly returns up to 24 rows per day (zero-activity hours are omitted). The summary totals are unaffected. Combined with breakdown, each breakdown row also gets its own per-bucket time series at the same grain.
daily, hourly Inclusive end of the reporting window.
"2023-12-01T05:00:00.401Z"
Response
A successful response
An ads performance report. Always returns a summary. The granularity field contains a per-bucket time series when the granularity arg is set; the breakdown field contains per-entity rows when the breakdown arg is set.
Aggregate totals and rates over the date range.
Per-bucket time series over the date range, ordered ascending by bucketStart. null when the granularity arg on adReport is omitted; otherwise contains rows at the requested grain (daily or hourly).
Per-entity rows over the date range. null when the breakdown arg on adReport is omitted; otherwise contains one row per ad campaign, ad group, or ad inside the requested scope at the requested level.

