bannerType

Add a banner type. The banner type determines which placements the banner can be placed on. You can place a banner on a placement only if this placement and the banner use the same banner type (and if the campaign is placed on this placement).

Request format

https://adfox.yandex.com/api/v1
  ? object=account
  & action=add
  & actionObject=bannerType
  & name=<string>
  & presentationTypeID=<integer>

name*

Object name. An entry can contain Russian and Latin letters, numbers, and any special characters.

presentationTypeID*

Load type: It determines how the banner code is uploaded to the site.

Acceptable values:

  • 4: Nondimensional. The banner code will be uploaded as JavaScript code.
  • 5: XML. The banner code will be uploaded as XML code.

* Required

Response format

<response>
<status>
  <code>{integer}</code>
  <ID>{integer}</ID>
</status>
</response>

Response parameters

code

Request processing status. If the value is 0, the request was completed successfully. For the key, see Error handling.

ID

Object ID.

Sample request and response

Request:

https://adfox.yandex.com/api/v1?object=account&action=add&actionObject=bannerType&name=topline&presentationTypeID=4

Response:

<response>
<status>
  <code>0</code>
  <ID>456789</ID>
</status>
</response>

Other actions with the object

See more actions with the bannerType object:

Load type: It determines how the banner code is uploaded to the site.

Acceptable values:

  • 4: Nondimensional. The banner code will be uploaded as JavaScript code.

  • 5: XML. The banner code will be uploaded as XML code.

Object name. An entry can contain Russian and Latin letters, numbers, and any special characters.

Required

Previous