createBlock
Create a YAN ad unit and link it to a placement.
Request format
https://adfox.yandex.com/api/v1
? object=place
& action=createBlock
& objectID=<integer>
& newBlockPageId=<integer>
& newBlockName=<string>
& newBlockType=<string>
|
|
ID of the placement a YAN ad unit should be created on and linked to. |
|
|
ID of the Yandex Advertising Network platform where you want to create an ad unit. |
|
|
Ad unit name. |
|
|
Ad unit type. Depending on the type of ad inventory you're using to create an ad unit, specify:
|
Response format
<response>
<status>
<code>{integer}</code>
</status>
</response>
Response parameters
|
|
Request processing status. A value of |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=place&action=createBlock&objectID=543&newBlockPageId=1623117&newBlockName=name&newBlockType=BANNERResponse:
<response> <status> <code>0</code> </status> </response>
Other actions with the object
Read about other actions with the place object:
- Add a placement.
- Add the default banner.
- Delete a placement.
- Get a list of active banners on the placement.
- Edit placement parameters.
- Get an ad tag from the placement level.
- Link an existing YAN ad unit to a placement.
- Manage the ad unit status on a placement.
- Remove an ad unit from its placement and archive it in YAN.
- Get a list of placements along with their details and data on YAN ad units.
ID of the placement a YAN ad unit should be created on and linked to.
ID of the Yandex Advertising Network platform where you want to create an ad unit.
Ad unit name.
Ad unit type. Depending on the type of ad inventory you're using to create an ad unit, specify:
-
For ads placed on sites:
BANNERFULLSCREEN_DESKTOPFULLSCREEN_MOBILEFLOORAD_DESKTOPFLOORAD_MOBILETOPAD
-
For mobile apps:
BANNERINTERSTITIALNATIVEREWARDEDAPP_OPENFEED
-
For video platforms:
PREMIDPOSTPAUSEINROLLPOSTPAUSE
Required parameter.