List Ad Groups
GET
/ad_groupsGet ad groups for the ad account, optionally filtered by campaign.
List Ad Groups
curl https://api.ads.openai.com/v1/ad_groups \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY"200 — Example
{
"data": [
{
"id": "id",
"bidding_config": {
"billing_event_type": "billing_event_type",
"custom_audience_bid_multipliers": [
{
"bid_multiplier_micros": 0,
"custom_audience_id": "custom_audience_id"
}
],
"max_bid_micros": 0,
"strategy": "fixed_bid",
"target_micros": 0,
"target_strategy": "target_cpc"
},
"context_hints": [
"string"
],
"created_at": 0,
"description": "description",
"name": "name",
"status": "status",
"updated_at": 0,
"advertiser_phone_verification_required": true,
"enable_dynamic_creative": true,
"geographic_targeting_blocked": true,
"landing_page_configuration": {
"query_string_template": "query_string_template"
},
"product_set": {
"filters": [
{
"field": "field",
"operator": "operator",
"values": [
"string"
]
}
],
"product_feed_id": "product_feed_id"
},
"serving_issues": [
{
"code": "ad_account_suspended"
}
]
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "object"
}Query Parameters
Returns Examples
200 — Example
{
"data": [
{
"id": "id",
"bidding_config": {
"billing_event_type": "billing_event_type",
"custom_audience_bid_multipliers": [
{
"bid_multiplier_micros": 0,
"custom_audience_id": "custom_audience_id"
}
],
"max_bid_micros": 0,
"strategy": "fixed_bid",
"target_micros": 0,
"target_strategy": "target_cpc"
},
"context_hints": [
"string"
],
"created_at": 0,
"description": "description",
"name": "name",
"status": "status",
"updated_at": 0,
"advertiser_phone_verification_required": true,
"enable_dynamic_creative": true,
"geographic_targeting_blocked": true,
"landing_page_configuration": {
"query_string_template": "query_string_template"
},
"product_set": {
"filters": [
{
"field": "field",
"operator": "operator",
"values": [
"string"
]
}
],
"product_feed_id": "product_feed_id"
},
"serving_issues": [
{
"code": "ad_account_suspended"
}
]
}
],
"first_id": "first_id",
"has_more": true,
"last_id": "last_id",
"object": "object"
}