Ad Group Entities - Bulk Add

Adds entities as bidders to ad groups in bulk. Every ad group listed under an entity is paired with that entity. 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.

Validation is all or nothing and runs before any write: each entity_id and ad group id must be greater than 0, every entity must exist (404 otherwise), and for callers without the Koddi admin global role every ad group must belong to the advertiser in the path and the caller must have the write permission on every ad group; for Koddi admin callers only the existence of the ad groups is checked. The memberGroupId in the path is not used by the handler itself.

Write: one database statement creates the bidders. A new bidder gets the ad group's base bid amount and the use_base_bid value of the request. A bidder that already exists for the pair, including a removed one, is set back to not deleted with its last edited fields updated; its use_base_bid is not changed. The statement is not wrapped in a transaction with the later check. After it runs, the number of bidders returned is compared with the number of entity and ad group pairs in the request; if they differ (for example the same pair is listed twice, because duplicate pairs collapse into one bidder) the response is 400 even though the bidders were already written. There is no per-item result.

Response: 200 with a null result.

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

Adds entities as bidders to ad groups in bulk. Each ad group listed under an entity is paired with it. Requires the advertiser_ad_group_management write permission. The code enforces no maximum number of entities or ad groups.

Validation of ids and access runs first and is all or nothing. The write is a single statement; afterwards the number of bidders written is compared to the number of pairs in the request, and a mismatch (for example a duplicated pair) returns 400 even though the bidders were already written. New bidders use the ad group's base bid amount; existing or removed bidders are reactivated.

Inputs

Field Type Description Required
memberGroupId integer The member group id (provided by Koddi) Yes
advertiserId integer The advertiser ID Yes
entities array of objects Entity and ad group pairs Yes
entities[].entity_id integer The entity ID. Must be greater than 0 and exist No
entities[].ad_group_ids array of integers Ad group IDs. Each must be greater than 0 No
use_base_bid boolean Whether newly created bidders use the ad group's base bid No

Response

The 200 response has a null result; there is no per-item result.

Path Params
int32
required

The member group id (provided by Koddi)

int32
required

The advertiser ID

Body Params
entities
array of objects
required

Entity and ad group pairs: every ad group listed under an entity is paired with that entity. No maximum number is enforced by the code.

entities*
boolean

Applied to bidders that are newly created: whether they use the ad group's base bid.

Responses

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