Create Ad Group
Create an ad group for a campaign.
Field notes
For target bidding, set strategy to target_cpc for clicks or target_cpa for conversions and provide target_micros. Even an explicit fixed_bid request can select a target for eligible standard ad groups. Check the returned bidding_config before activation. Targets return target_strategy and target_micros. Fixed bids return strategy and max_bid_micros.
To adjust bids for matched customers without changing campaign eligibility, see Custom Audiences.
Small audiences can be eligible for campaign exclusion without meeting the
minimum size for bid adjustments. Don't infer bid eligibility from ready
status or a matched-count range. The server validates eligibility when you
save the ad group.
Product-set filters support title, body, item_id, offer_id, price,
target_url, image_url, product_category, brand, seller_name,
external_seller_id, star_rating, condition, and age_group. Use gt,
gte, lt, and lte only with price or star_rating.
Context hints provide extra information on when you think your ads might be useful, and help guide when they appear. Provide a list of descriptions or keywords for when the product or service might be useful to show.
Micros are millionths of the main currency unit, for example, dollars. The
max_bid_micros field is per event, so a $60 CPM ($0.06 per impression) is
passed as 60000 to the API. Currency fields respect your ad account's default
currency.
Match the campaign billing event. Impression-billed conversion campaigns require an oCPM-enabled account; qualified-lead and Conversations campaigns require impression billing and eligibility for those campaign modes. For a click-billed conversion campaign (oCPC), set
bidding_config.billing_event_type to click. In a USD account, a legacy
max_bid_micros of 100000000 can select a $100 Target CPA for
eligible standard ad groups. Product-feed requests keep the fixed CPA bid
unless you explicitly select an eligible target. For a product-feed oCPC campaign in open
beta, use the same POST /ad_groups endpoint. The ad group automatically
inherits the campaign's product feed. Include product_set only when you want
to specify product filters; its product_feed_id must match the campaign's
feed. For the full setup and reporting workflow, see
Conversion-Optimized Campaigns and
Product Feeds.
Create Ad Group
curl https://api.ads.openai.com/v1/ad_groups \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
-d '{
"bidding_config": {
"billing_event_type": "impression"
},
"campaign_id": "campaign_id",
"name": "xxx",
"status": "active"
}'{
"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"
}
]
}Returns Examples
{
"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"
}
]
}