category

Edit category parameters.

Request format

https://adfox.yandex.com/api/v1
  ? object=account
  & action=modify
  & actionObject=category
  & actionObjectID=<integer>
  & [name=<string>]
  & [type=<integer>]
  & [timeout=<integer>]

actionObjectID*

To get data for only one object, specify its ID.

name

Category name.

An entry can contain Russian and Latin letters, numbers, and any special characters.

type

Category type.

Acceptable values:

  • 0: Permanent category.
  • 1: Temporary category.

timeout

Category activity in days. Default value: not set.

Response format

<response>
  <status>
    <code>{integer}</code>
  </status>
</response>

Response parameters

code

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

Sample request and response

Request:

https://adfox.yandex.com/api/v1?object=account&action=modify&actionObject=category&actionObjectID=136&name=top

Response:

<response>
  <status>
    <code>0</code>
  </status>
</response>

Other actions with the object

See more actions with the category object:

To get data for only one object, specify its ID.

Category name.

An entry can contain Russian and Latin letters, numbers, and any special characters.

Category type.

Acceptable values:

  • 0: Permanent category.
  • 1: Temporary category.

Category activity in days. Default value: not set.

Required parameter.

Previous
Next