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>
|
Object name. An entry can contain Russian and Latin letters, numbers, and any special characters. |
|
Load type: It determines how the banner code is uploaded to the site. Acceptable values:
|
* Required
Response format
<response>
<status>
<code>{integer}</code>
<ID>{integer}</ID>
</status>
</response>
Response parameters
|
Request processing status. If the value is |
|
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:
- Get a list of banner types.
- Delete a banner type.
- Edit a banner type.
- Add a backup ad for a banner type.
- Get a list of templates.
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