bannerKktu

Get the list of codes and names from the KKTU (Classification of Goods and Services Categories) reference list.

Request format

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

Response format

<response>
  <status>
    <code>{integer}</code>
  </status>
  <result>
    <links>
      <first></first>
      <prev></prev>
      <next></next>
      <last></last>
    </links>
    <limit>{integer}</limit>
    <offset>{integer}</offset>
    <total_pages>{integer}</total_pages>
    <page>{integer}</page>
    <total_rows>{integer}</total_rows>
    <rows>{integer}</rows>
    <data>
      <row0>
        <CODE>{string}</CODE>
        <NAME>{string}</NAME>
      </row0>
    </data>
  </result>
</response>

Response parameters

code

Request processing status. A value of 0 means the request was completed successfully. For the key, see Error handling.

row0

List item with its corresponding number.

CODE

Code from the KKTU reference list.

Use the obtained value to update the markingKktu field.

NAME

Name of the category in text form.

Sample request and response

Request:

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

Response:

<response>
  <status>
    <code>0</code>
  </status>
  <result>
    <links>
      <first></first>
      <prev></prev>
      <next></next>
      <last></last>
    </links>
    <limit>293</limit>
    <offset>0</offset>
    <total_pages>1</total_pages>
    <page>1</page>
    <total_rows>293</total_rows>
    <rows>293</rows>
    <data>
      <row0>
        <CODE>1.1.1</CODE>
        <NAME>Вино</NAME>
      </row0>
      ...
      <row292>
        <CODE>9.2.1</CODE>
        <NAME>Программное обеспечение</NAME>
      </row292>
    </data>
  </result>
</response>