Update Ad Group
Update an ad group.
All fields are optional on update. description can be set to null to clear
it. To switch strategies, send the billing event and the fields required for the new strategy. To update a fixed bid amount, send the current billing_event_type and max_bid_micros in bidding_config and omit strategy. To update a target bid amount, send the current billing_event_type, explicitly set strategy to the existing target_cpa or target_cpc, and send target_micros; omit max_bid_micros. status accepts
active, paused, or archived. For a product-feed campaign, include the full
product_set object to change the feed or its filters. Retrieve the ad group
after the update if you need the resulting product_set; the immediate update
response can omit it.
Update Ad Group
curl https://api.ads.openai.com/v1/ad_groups/$AD_GROUP_ID \
-X POST \
-H "Authorization: Bearer $OPENAI_ADS_API_KEY"{
"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"
}
]
}Body ParametersJSON
Returns
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"
}
]
}