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*

Parameter that points to one object with the specified 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.

* Required

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:

Category activity in days.

Required

Parameter that points to one object with the specified 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.

Previous
Next