Updates an ad group using the entities selected in an ad group draft. Compared with the v2 PATCH ad group operation (ad-group-copy-1), this version behaves as a full update, not a merge: the handler passes the body values straight to the update, so a property that is left out is not kept from the stored ad group but is applied as its zero value (for example always_on false, targeting_automation_enabled false, no end_date). name, start_date, base_bid.amount, budget.amount, status, campaign_id and uuid are marked required in the request type.
Bidders are not sent as a list to replace; they come from the entities cached under the draft uuid. If the draft has no selected entities the request is rejected (no entities were selected). The optional bidders array can only override the amount of entities that are in that selection; any other id is rejected. v2 properties priority, metadata, extension, entities_filter, additional_entities_filter, keyword_bid_overrides, frequency_capping, budget_extension_enabled, aggregate_targeting, all_selected and filters do not exist in v3. Targeting settings have no option_parameter_values or or_group.
The campaign_id in the body is used to reject reservation-only experiences. The ad group must belong to that campaign and advertiser, otherwise the response is 404. The targeting list is always applied as a replacement (omitting it clears the ad group's targeting), and a non-empty list is rejected when the body sets targeting_automation_enabled to true. The response echoes the request values for name, dates, status, always_on, budget, targeting and attribute_key_values; base_bid, is_auto_bid, effective_status_id, targeting_automation_enabled, content_bindings and asset_spend_gate come from the saved ad group. This version requires the custom_campaign_wizard_management write permission, whereas v2 and v4 require advertiser_ad_group_management write.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Updates an ad group from the entities selected in an ad group draft. Unlike the v2 PATCH ad group operation, this version is a full update: properties left out of the body are applied as their zero values and are not kept from the stored ad group.
The ad group's bidders come from the draft identified by uuid; the request fails when the draft has no selected entities. The optional bidders array can only override amounts for entities in that selection. Requires the custom_campaign_wizard_management write permission.
Inputs
| Field | Type | Description | Required |
| memberGroupId | integer | The member group id (provided by Koddi) | Yes |
| advertiserId | integer | The advertiser ID | Yes |
| adGroupId | integer | The ad group ID | Yes |
| campaign_id | integer | The campaign ID of the ad group. Also used to check that the experience is not reservation-only. | Yes |
| name | string | The name of the ad group | Yes |
| start_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS, interpreted in the advertiser's timezone. | Yes |
| end_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS, interpreted in the advertiser's timezone. Omit or send null for no end date. | No |
| always_on | boolean | Defaults to false when omitted. | No |
| base_bid | object | Yes | |
| base_bid.amount | number | The base bid amount | Yes |
| budget | object | Yes | |
| budget.amount | number | The budget amount | Yes |
| status | string | The ad group status name, matched case-insensitively. | Yes |
| targeting | array | Targeting for the ad group. The ad group's targeting is replaced by this list, so omitting it or sending an empty array leaves the ad group without targeting. Must be empty or omitted when targeting_automation_enabled is true. | No |
| targeting[].type | string | The targeting type, for example Exact, Multiplier or Boost. | Yes |
| targeting[].value | number | The value for Boost or Multiplier targeting. | No |
| targeting[].settings | array | No | |
| targeting[].settings[].targeting_dimension_id | integer | The dimension ID for the targeting setting | Yes |
| targeting[].settings[].hidden | boolean | No | |
| targeting[].settings[].operator | string | The operator for the targeting configuration | Yes |
| targeting[].settings[].value | object | The value selected in the targeting configuration (date, numeric or text operations). Either value or options is used. | No |
| targeting[].settings[].options | array | Targeting option IDs (text match dimensions). | No |
| bidders | array | Bid overrides for entities that are selected in the draft identified by uuid. An entity that is not in that draft is rejected. | No |
| bidders[].id | integer | The entity ID | Yes |
| bidders[].amount | number | The bid amount | Yes |
| asset_associations | array | Asset associations (V1 asset model only). | No |
| asset_associations[].asset_id | integer | Yes | |
| asset_associations[].content | string | Yes | |
| attribute_key_values | array | Attribute key values used for advertiser attribute halo attribution. Must be values the member group has. | No |
| targeting_automation_enabled | boolean | Defaults to false when omitted. | No |
| uuid | string | The ID of the ad group draft whose selected entities become the ad group's bidders. | Yes |
| delete_unspecified_bidders | boolean | If true, bidders that are not in the draft's selection are removed. | No |
| content_bindings | object | Content bindings of the ad group (asset model V2 experiences). When the property is omitted or null the bindings are unchanged; a present block is merged into the existing bindings, and the empty object {} clears all bindings. | No |
Response
The 200 response returns the ad group. The name, dates, status, always_on, budget, targeting and attribute_key_values are echoed from the request; the other fields come from the saved ad group.
| Field | Type | Description |
| id | integer | |
| campaign_id | integer | |
| name | string | Echo of the request value. |
| start_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS in the advertiser's timezone. Echo of the request value. |
| end_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS in the advertiser's timezone. Echo of the request value. |
| status | string | Echo of the request value. |
| always_on | boolean | Echo of the request value. |
| is_auto_bid | boolean | The bid automation flag of the campaign. |
| effective_status_id | integer | Effective status ID of the ad group after the update. |
| base_bid | object | |
| base_bid.type | string | The base bid type |
| base_bid.amount | number | |
| budget | object | Echo of the request value. |
| budget.amount | number | |
| targeting | array | Echo of the request targeting. |
| targeting[].type | string | The targeting type, for example Exact, Multiplier or Boost. |
| targeting[].value | number | The value for Boost or Multiplier targeting. |
| targeting[].settings | array | |
| targeting[].settings[].targeting_dimension_id | integer | The dimension ID for the targeting setting |
| targeting[].settings[].hidden | boolean | |
| targeting[].settings[].operator | string | The operator for the targeting configuration |
| targeting[].settings[].value | object | The value selected in the targeting configuration (date, numeric or text operations). Either value or options is used. |
| targeting[].settings[].options | array | Targeting option IDs (text match dimensions). |
| attribute_key_values | array | Echo of the request value. |
| targeting_automation_enabled | boolean | The stored value after the update. |
| delete_unspecified_bidders | boolean | Echo of the request value. |
| content_bindings | object | Content bindings of the ad group. Set only for ad groups on the V2 asset model; null otherwise. |
| asset_spend_gate | string | The asset spend gate. Set only for ad groups on the V2 asset model. |

