Campaigns - Bulk Get Budgets

Returns the budget records of several campaigns 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_reporting_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 campaigns found for the advertiser equals the number of entries in ids; if not, the whole request is rejected with 404 (could not retrieve campaign data) and no budgets are returned. There is no partial result. A failure of the event collection service returns 400.

The response is 200 with result.ids, a list of budget records. Each record's dates (budget start and end, campaign start and end) are converted to the timezone stored in the record. The record type is shared with the ad group budgets operation, so ad_group_id is present in each record.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Returns the budget records of several campaigns of one advertiser. This POST only reads data. Requires the advertiser_reporting_management read permission. The code enforces no maximum number of entries in ids.

The call is all or nothing: if the number of campaigns found for the advertiser differs from the number of entries in ids, the response is 404 and nothing is returned. Dates in each record are converted to the timezone stored in the record.

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 campaigns to retrieve budgets for Yes
ids[].campaign_id integer The campaign ID. Must belong to the advertiser in the path Yes

Response

The 200 response returns result.ids, one budget record per campaign.

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.
Path Params
int32
required

The member group id (provided by Koddi)

int32
required

The advertiser ID

Body Params
ids
array of objects

The campaigns to retrieve budgets for. The code enforces no maximum number of entries.

ids
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json