Returns the budget records of several ad groups in one call. Although it is a POST, it only reads data: the records are fetched from the event collection service and nothing is changed. Requires the advertiser_ad_group_management read permission.
Batch size: the code enforces no maximum number of entries in ids.
All or nothing: the endpoint checks that the number of ad groups of the advertiser that match ad_group_id equals the number of entries in ids; if not, the whole request is rejected with 404 and no budgets are returned. There is no partial result. A failure of the event collection service, or an empty ids result from it, also returns 404. Only ad_group_id is checked against the advertiser; campaign_id is passed through unchecked.
The response is 200 with result.ids, a list of budget records (one per ad group, as returned by the service). Dates are returned as received from the service, without conversion to the advertiser's timezone.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Returns the budget records of several ad groups of one advertiser. This POST only reads data. Requires the advertiser_ad_group_management read permission. The code enforces no maximum number of entries in ids.
The call is all or nothing: if the number of ad groups found for the advertiser differs from the number of entries in ids, or the budget service cannot return the records, the response is 404 and nothing is returned.
Inputs
| Field | Type | Description | Required |
| memberGroupId | integer | The member group id (provided by Koddi) | Yes |
| advertiserId | integer | The advertiser ID | Yes |
| ids | array of objects | The ad groups to retrieve budgets for | Yes |
| ids[].ad_group_id | integer | The ad group ID. Must belong to the advertiser in the path | Yes |
| ids[].campaign_id | integer | The campaign ID. Passed to the budget service, not checked by this endpoint | No |
Response
The 200 response returns result.ids, one budget record per ad group.
| Field | Type | Description |
| budget_key | string | |
| member_group_id | integer | |
| advertiser_id | integer | |
| campaign_id | integer | |
| current_budget | number | |
| current_pacing_budget | number | |
| current_spend | number | |
| overspend_percentage | number | |
| base_bid | number | |
| bid_type_id | integer | |
| is_paused | boolean | |
| is_active | boolean | |
| budget_start_date | string | |
| budget_end_date | string | |
| campaign_start_date | string | |
| campaign_end_date | string | |
| initial_budget | number | |
| budget_type | string | |
| pacing_type | string | |
| timezone | string | |
| currency_id | integer | |
| daily_cap | number | |
| prev_daily_cap | number | |
| daily_cap_day | string | |
| prev_daily_cap_day | string | |
| daily_cap_spend | number | |
| prev_daily_cap_spend | number | |
| experience_id | integer | |
| status_time | string | |
| last_calculation_time | string | |
| is_available_status_time | string | |
| last_is_available_calculation_time | string | |
| is_paused_status_time | string | |
| last_is_paused_calculation_time | string | |
| total_campaign_spend | number | |
| total_campaign_costreduced_spend | number | |
| total_budget_spend | number | |
| total_budget_costreduced_spend | number | |
| is_auto_allocate | boolean | |
| bid_prediction_enabled | boolean | |
| created_at | string | |
| correlation_id | string | |
| ad_group_id | integer | The ad group ID. |

