position
Get a list of positions.
Request format
Note
Pagination available.
https://adfox.yandex.com/api/v1
  ? object=account
  & action=list
  & actionObject=position
  & [actionObjectID=<integer>]
| 
 | To get data for only one position, specify its ID. Default value:  | 
* Required
Response format
<response>
<status>
  <code>{integer}</code>
</status>
<result>
<data>
  <row0>
    <ID>{integer}</ID>
    <name>{string}</name>
    <isPredefined>{integer}</isPredefined>
    <dateAdded>{date}</dateAdded>
  </row0>
</data>
</result>
</response>
Response parameters
| 
 | Request processing status. If the value is  | 
| 
 | Number of items in the response tree. | 
| 
 | Item number in the response tree, where N is a number from 0 to rows-1 (where  | 
| 
 | Unique position ID. | 
| 
 | Position name. | 
| 
 | Object type. Acceptable values: 
 | 
| 
 | Add date. | 
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=account&action=list&actionObject=positionResponse:
<response> <status> <code>0</code> </status> <result> <data> <row0> <ID>6</ID> <name>page top</name> <isPredefined>1</isPredefined> <dateAdded>2005-08-25</dateAdded> </row0> </data> </result> </response>
Other actions with the object
See more actions with the position object:
To get data for only one position, specify its ID.
Default value: 0 (display the list of all positions).
Required
Was the article helpful?
Previous
Next