Partially updates an ad group. This is the current version of the PATCH ad group operation; it uses the same update as v2 (ad-group-copy-1) and requires the same permission (advertiser_ad_group_management, write). What is different from v2, from the code:
- The body must contain at least one property besides campaign_id, otherwise the response is 406.
- Optional properties are tracked as omitted, null or present. Omitted keeps the stored value. end_date null clears the end date. In v4, sending an empty targeting array does not clear targeting (v2 does); only a non-empty array replaces it.
- all_selected and filters add the entities that match the filters to the bidders only when bidders is also sent in the body; v2 adds them regardless.
- attribute_key_values, entities_filter and additional_entities_filter are accepted but the stored values are kept, because the patch input does not carry them. In v2 they are applied.
- keyword_bid_overrides, frequency_capping and aggregate_targeting are not available, and budget_extension_ad_groups is not returned. The response does not include them.
- The experience reservation check uses the campaign_id of the body (v2 resolves it from the ad group). campaign_id is required in effect: a missing or zero value is rejected, and a value different from the stored campaign of the ad group is rejected.
- Dates in the response are in the advertiser's timezone.
The ad group must belong to the member group and advertiser in the path, otherwise 404. A reservation-only experience is rejected. When targeting automation is enabled for the ad group, only Exact targeting is accepted. Response properties attribute_key_values and targeting_automation_enabled are filled only when the matching feature is on for the session.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Partially updates an ad group. Properties that are left out keep the stored value; end_date null clears the end date. The body must contain at least one property besides campaign_id. Requires the advertiser_ad_group_management write permission.
Compared with v2: an empty targeting array does not clear targeting, all_selected only adds filtered entities when bidders is also sent, attribute_key_values, entities_filter and additional_entities_filter are accepted but not applied, and keyword_bid_overrides, frequency_capping and aggregate_targeting are not available.
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 of the ad group. Required; it must match the stored campaign of the ad group, since the campaign cannot be changed. | Yes |
| name | string | The name of the ad group | No |
| start_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS, interpreted in the advertiser's timezone. | No |
| end_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS, interpreted in the advertiser's timezone. Send null to clear the end date. | No |
| always_on | boolean | No | |
| all_selected | boolean | If true, the entities matching filters are added to the bidders. In this version this only takes effect when bidders is also sent. | No |
| base_bid | object | No | |
| base_bid.amount | number | The base bid amount | Yes |
| budget | object | No | |
| budget.amount | number | The budget amount | Yes |
| status | string | The ad group status name, matched case-insensitively. | No |
| targeting | array | Targeting for the ad group. A non-empty array replaces the stored targeting; null, an empty array or omitting the property leaves it unchanged. | 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 |
| targeting[].settings[].option_parameter_values | array | Option parameter values | No |
| targeting[].settings[].or_group | string | Name of the OR group the setting belongs to. Dropped when the complex targeting feature is off. | No |
| bidders | array | Bidders to apply. Whether bidders absent from the list are removed is controlled by delete_unspecified_bidders. | No |
| bidders[].name | string | The bidder name | Yes |
| bidders[].id | integer | The entity ID | Yes |
| bidders[].amount | number | The bid amount, overriding the base bid. | Yes |
| bidders[].use_base_bid | boolean | No | |
| bidders[].deleted | boolean | If true, removes this bidder from the ad group. | No |
| filters | array | Entity filters used when all_selected is true. | No |
| filters[].field | string | The field to filter on. | Yes |
| filters[].operation | string | The filter operation. | Yes |
| filters[].value | object | The value to filter by. | No |
| asset_associations | array | Asset associations (V1 asset model only). Ignored when the asset feature is off for the session. | No |
| asset_associations[].asset_id | integer | Yes | |
| asset_associations[].content | string | Yes | |
| attribute_key_values | array | Accepted by the request type but not applied in this version; the stored values are kept. | No |
| targeting_automation_enabled | boolean | Not applied when the targeting automation feature is off for the session; the ad group is then saved with targeting automation off. | No |
| delete_unspecified_bidders | boolean | If true, removes bidders that are absent from the request. | No |
| metadata | object | The ad group metadata. Applied only when the ad group metadata feature is on. | No |
| entities_filter | array | Accepted by the request type but not applied in this version; the stored value is kept. | No |
| entities_filter[].field | string | Yes | |
| entities_filter[].operation | string | Yes | |
| entities_filter[].value | object | No | |
| entities_filter[].or_group | string | No | |
| additional_entities_filter | array | Accepted by the request type but not applied in this version; the stored value is kept. | No |
| priority | integer | Priority level of the ad group. | No |
| extension | object | Integration extension JSON. Omitted keeps the stored value; null clears it; an object replaces it. | 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 |
| budget_extension_enabled | boolean | Enables or disables budget extension for the ad group. | No |
Response
The 200 response returns the ad group after the update.
| Field | Type | Description |
| id | integer | |
| campaign_id | integer | |
| name | string | |
| start_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS in the advertiser's timezone. |
| end_date | string | Date and time formatted YYYY-MM-DD HH:MM:SS in the advertiser's timezone. Null when the ad group has no end date. |
| status | string | |
| always_on | boolean | |
| is_auto_bid | boolean | The bid automation flag of the campaign. |
| effective_status_id | integer | |
| base_bid | object | |
| base_bid.type | string | The base bid type |
| base_bid.amount | number | |
| budget | object | |
| budget.amount | number | |
| targeting | array | |
| targeting[].type | string | |
| targeting[].value | number | |
| targeting[].settings | array | |
| targeting[].settings[].targeting_dimension_id | integer | |
| targeting[].settings[].operator | string | |
| targeting[].settings[].value | object | |
| targeting[].settings[].or_group | string | |
| attribute_key_values | array | Populated only when the attributable key feature is on for the session. |
| targeting_automation_enabled | boolean | Populated only when the targeting automation feature is on for the session; false otherwise. |
| delete_unspecified_bidders | boolean | Echo of the request value. |
| metadata | object | |
| entities_filter | array | |
| entities_filter[].field | string | |
| entities_filter[].operation | string | |
| entities_filter[].value | object | |
| entities_filter[].or_group | string | |
| additional_entities_filter | array | |
| priority | integer | |
| extension | object | |
| 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 | Set only for ad groups on the V2 asset model. |
| budget_extension_enabled | boolean |

