curl --request GET \
--url https://api.whop.com/api/v1/ads \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "xad_xxxxxxxxxxxxxx",
"status": "active",
"created_at": "2023-12-01T05:00:00.401Z",
"updated_at": "2023-12-01T05:00:00.401Z",
"platform_config": {
"typename": "<string>",
"platform": "meta",
"name": "<string>",
"link_url": "<string>",
"url_tags": "<string>",
"primary_text": "<string>",
"headline": "<string>",
"call_to_action_type": "LEARN_MORE",
"page_id": "<string>",
"instagram_actor_id": "<string>"
}
}
],
"page_info": {
"end_cursor": "<string>",
"start_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true
}
}List ads scoped by ad group, campaign, or company.
Required permissions:
ad_campaign:readcurl --request GET \
--url https://api.whop.com/api/v1/ads \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "xad_xxxxxxxxxxxxxx",
"status": "active",
"created_at": "2023-12-01T05:00:00.401Z",
"updated_at": "2023-12-01T05:00:00.401Z",
"platform_config": {
"typename": "<string>",
"platform": "meta",
"name": "<string>",
"link_url": "<string>",
"url_tags": "<string>",
"primary_text": "<string>",
"headline": "<string>",
"call_to_action_type": "LEARN_MORE",
"page_id": "<string>",
"instagram_actor_id": "<string>"
}
}
],
"page_info": {
"end_cursor": "<string>",
"start_cursor": "<string>",
"has_next_page": true,
"has_previous_page": true
}
}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 ***************************
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
42
Returns the last n elements from the list.
42
Filter by ad group. Provide exactly one of ad_group_id, campaign_id, or company_id.
Filter by campaign. Provide exactly one of ad_group_id, campaign_id, or company_id.
Filter by company. Provide exactly one of ad_group_id, campaign_id, or company_id.
"biz_xxxxxxxxxxxxxx"
Only return ads created after this timestamp.
"2023-12-01T05:00:00.401Z"
Only return ads created before this timestamp.
"2023-12-01T05:00:00.401Z"
Filter by status.
active, paused, inactive Was this page helpful?