modify
Edit website parameters.
Request format
https://adfox.yandex.com/api/v1
? object=website
& action=modify
& objectID=<integer>
& [name=<string>]
& [webmasterID=<integer>]
& [categoryID=<integer>]
& [sendToErir=<integer>]
& [platformName=<string>]
& [platformType=<integer>]
& [contractorID=<integer>]
& [url=<string>]
|
|
ID of the object that the action is performed on. |
|
|
Object name. An entry can contain Russian and Latin letters, numbers, and any special characters. |
|
|
Site owner ID. The site owner is only allowed access to site statistics. Read also: |
|
|
Category ID. Read also: |
|
|
Submit data to the state register (ERIR). Acceptable values:
Note
|
|
|
Platform name. A parameter for ad register. Required if Note Changing the parameter submits the site and all related counterparties to the stage register for a review. |
|
|
Platform type. A parameter for ad register. Required if Acceptable values:
The Note Changing the parameter submits the site and all related counterparties to the stage register for a review. |
|
|
Contractor ID. A parameter for ad register. Note Changing the parameter submits the site and all related counterparties to the stage register for a review. |
|
|
Site or video resource domain, a blog URL, or a link for downloading an app. A parameter for ad register. Parameter requirements:
The Note Changing the parameter submits the site and all related counterparties to the stage register for a review. |
Response format
<response>
<status>
<code>{integer}</code>
</status>
</response>
Response parameters
|
|
Request processing status. If the value is |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=website&action=modify&objectID=543&name=site.comResponse:
<response> <status> <code>0</code> </status> </response>
Other actions with the object
See more actions with the website object:
ID of the object that the action is performed on.
Object name.
An entry can contain Russian and Latin letters, numbers, and any special characters.
Site owner ID. The site owner is only allowed access to site statistics.
Read also:
Category ID.
Read also:
Submit data to the state register (ERIR).
Acceptable values:
0: Don't submit data to the Russian state register. The other fields for the ad register are ignored.1: Submit data to the Russian state register (ad register is enabled). In this caseplatformNameandplatformTypefields are required.
Note
-
When the parameter changes from
0to1, the object is submitted to the state register. -
When the parameter changes from
1to0, ad labeling is disabled in Adfox. The object is then resent to the ADO (advertising data operator) with a flag indicating it's no longer relevant.
Platform name. A parameter for ad register. Required if sendToErir=1.
Note
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Platform type. A parameter for ad register. Required if sendToErir=1.
Acceptable values:
0: App.1: Site.2: Information system (not used, deprecated).3: Smart TV.4: HbbTV.
The url field is required, if platformType=0 or platformType=1.
Note
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Contractor ID. A parameter for ad register.
Note
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Site or video resource domain, a blog URL, or a link for downloading an app. A parameter for ad register.
Parameter requirements:
- The URL must start with
httporhttps. - There must be no
punycodeorurlencodein the path.
The url field is required, if platformType=0 or platformType=1.
Note
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Required parameter.