List ad units
Returns the network's ad units - the sizes placements and banners are made in - with the placement types each one applies to.
https://YOUR-NETWORK-DOMAIN/rest-api/ad-units.do Returns the network's ad units - the sizes placements and banners are made in - with the placement types each one applies to. Use an id as adUnitId when creating or updating a placement or a banner. inventorySide marks a unit offered for placements, campaignsSide one offered for banners; custom marks the unit whose width and height are sent alongside it, anySize one that fits every size. Pass placementType to keep only the units of that type. With placementType, width and height the answer is the one unit a placement of that type and size is made in: the unit of exactly that size, or else the type's custom unit - or none when the type has neither.
Query Params
placementType string
Keep only the ad units of this placement type
SITE_PLACEMENT width integer
With height and placementType: the width of the size to find the unit of, in pixels
300 height integer
With width and placementType: the height of the size to find the unit of, in pixels
250 Responses
200
[{id, name, width, height, custom, anySize, inventorySide, campaignsSide, placementTypes}]
400
Unknown placementType, or width and height without placementType
401
Authentication error
403
Forbidden — insufficient permissions