Browse the help center

List advertisers with campaigns and banners tree

Returns all non-deleted advertisers with their nested campaigns and banners as a JSON array, forming a complete inventory tree.

Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/advertisers-tree.do

Returns all non-deleted advertisers with their nested campaigns and banners as a JSON array, forming a complete inventory tree. Each advertiser object includes standard advertiser fields (id, name, active, category, description) plus a 'campaigns' array, where each campaign contains its own fields and a nested 'banners' array. Deleted campaigns and banners are excluded from the tree. Requires VIEW permission on CAMPAIGNS at ALL level (returns all advertisers) or SHARED level (returns only shared advertisers). Results can be filtered by advertising category IDs. This endpoint is useful for building a full advertiser-campaign-banner hierarchy view in a single request; on a large network read it in pages with start and limit (advertisers ordered by id).

Query Params

advertisingCategories array<integer>

Optional array of advertising category IDs to filter the results. Only advertisers belonging to at least one of the specified categories will be returned. Pass multiple values as repeated query parameters, e.g. advertisingCategories=1&advertisingCategories=5.

5

start integer

Paging: skip this many advertisers (ordered by id). Default 0

0

limit integer

Paging: at most this many advertisers, each with all its campaigns and banners. Omitted — every advertiser. A page shorter than limit is the last one

20

Responses

200

Array of advertiser objects with nested campaigns and banners

400

Bad request — invalid or missing parameters

401

Unauthorized — authentication failed or missing credentials

403

Insufficient permissions

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.