Changes the bid of entities in ad groups in bulk. The same bid_adjustment is applied to every entity and ad group pair in the request. This route has no member group or advertiser in the path. Requires the advertiser_ad_group_management write permission.
Batch size: the code enforces no maximum number of entities, ad groups or pairs, and no request body size limit.
Adjustment types: override sets the bid to value (action must be empty). percent_change and incremental need an action: the new bid is the current bid times (1 plus or minus value / 100), or the current bid plus or minus value, with increase_by adding and decrease_by subtracting. The current bid is the ad group's base bid when the bidder uses the base bid or has no amount, otherwise the bidder's amount. A value of 0 is only accepted when every ad group uses auto bid.
Limits: for each pair, the minimum and maximum bid come from the experience's bidding configuration for the ad group's currency. A result below the minimum is raised to the minimum and the pair is listed in adjusted_to_min_bid in the response. A result above the maximum fails the request.
All or nothing: the validations and all bid updates run in one database transaction. If any pair fails (invalid adjustment, no bidder for the entity and ad group (404), a bid above the maximum, or any other error) the transaction is rolled back and none of the bids change. A request for ad groups the caller has no write access to is rejected (400); callers with the Koddi admin global role only need the ad groups to exist. The response is 200 and echoes the request with adjusted_to_min_bid.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Changes the bid of entities in ad groups in bulk by applying one bid_adjustment to every pair. The route has no member group or advertiser in the path. Requires the advertiser_ad_group_management write permission. The code enforces no maximum number of entities or ad groups.
The call is all or nothing: all updates run in one transaction and any failing pair rolls everything back. A result below the experience's minimum bid is raised to the minimum and reported in adjusted_to_min_bid; a result above the maximum fails the request.
Inputs
| Field | Type | Description | Required |
| bid_adjustment | object | The adjustment applied to every pair | Yes |
| bid_adjustment.type | string | override, percent_change or incremental | Yes |
| bid_adjustment.action | string | increase_by or decrease_by. Required for percent_change and incremental, must be empty for override | No |
| bid_adjustment.value | number | The new bid (override), the percentage (percent_change) or the amount (incremental). 0 is only accepted when every ad group uses auto bid | No |
| entities | array of objects | Entity and ad group pairs | Yes |
| entities[].entity_id | integer | The entity ID | No |
| entities[].ad_group_ids | array of integers | Ad group IDs | No |
Response
The 200 response echoes the request and adds adjusted_to_min_bid when bids were raised to the minimum.
| Field | Type | Description |
| bid_adjustment | object | Echo of the request |
| entities | array of objects | Echo of the request |
| adjusted_to_min_bid | array of objects | Entity and ad group pairs raised to the minimum bid. Omitted when none |

