bannerFields
Get a list of custom fields defined in the banner template.
Request format
https://adfox.yandex.com/api/v1
? object=banner
& action=info
& actionObject=bannerFields
& objectID=<integer>
& additionalID=<integer>
|
ID of the object that the action is performed on. |
|
Banner template ID. |
* Required
Response format
<response>
<status>
<code>{integer}</code>
</status>
<result>
<data>
<row0>
<dataType>{string}</dataType>
<name>{string}</name>
<length>{string}</length>
<inputType>{string}</inputType>
<isRequired>{integer}</isRequired>
<status>{string}</status>
<defaultValue>{string}</defaultValue>
<allowedTypes>{string}</allowedTypes>
<width>{string}</width>
<height>{string}</height>
</row0>
</data>
</result>
</response>
Response parameters
|
Request processing status. For the key, see Error handling. |
|
Number of items in the response tree. |
|
The item number in the response tree, where N is a number from 0 to rows-1 (where |
|
Variable type. Acceptable values:
|
|
Variable name in the code. |
|
Length of the field for the variable value. |
|
Data type. Acceptable values:
|
|
Required/optional. Acceptable values:
|
|
Enable the default value for a predefined variable. Acceptable values:
|
|
Enable the default value for an additional variable. |
|
Allowed file type for an additional variable. Acceptable values:
|
|
Image width. |
|
Image height. |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=banner&action=info&actionObject=bannerFields&objectID=474205&additionalID=23
Response:
<response> <status> <code>0</code> </status> <result> <data> <row0> <dataType>PredefinedParameters</dataType> <name>trackingURL</name> <length/> <inputType>text</inputType> <isRequired/> <status/> <defaultValue/> <allowedTypes/> <width/> <height/> </row0> </data> </result> </response>
Banner template ID.
Required
ID of the object that the action is performed on.