sector

Get a reference on industries.

Request format

https://adfox.yandex.com/api/v1
  ? object=account
  & action=utility
  & actionObject=sector

Response format

<response>
<status>
  <code>{integer}</code>
</status>
<result>
<data>
  <row0>
    <sectorid>{integer}</sectorid>
    <name>{string}</name>
  </row0>
</data>
</result>
</response>

Response parameters

code

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

rows

Number of items in the response tree.

rowN

Item number in the response tree, where N is a number from 0 to rows-1 (where rows is the total number of items in the response).

sectorid

Industry ID in the reference.

name

Industry name.

Sample request and response

Request:

https://adfox.yandex.com/api/v1?object=account&action=utility&actionObject=sector

Response:

<response>
<status>
  <code>0</code>
</status>
<result>
<data>
  <row0>
    <sectorid>1</sectorid>
    <name>Audio and video equipment, products</name>
  </row0>
</data>
</result>
</response>
Previous