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>]
|
The ID of the object that the action is performed on. |
|
Object name. It can contain Russian and Latin letters, numbers, and any symbols. |
|
Website owner ID. The website owner is only allowed access to website statistics. See also: |
|
Category ID. See also: |
|
Submit data to the Russian state register. Acceptable values:
|
|
Platform name. A parameter for ad register. Changing the parameter submits the site and all related counterparties to the stage register for a review. |
|
Platform type. A parameter for ad register. Acceptable values:
Changing the parameter submits the site and all related counterparties to the stage register for a review. |
|
Contractor ID. A parameter for ad register. Changing the parameter submits the site and all related counterparties to the stage register for a review. |
|
Website or video resource domain, a blog URL, or a link for downloading an app. A parameter for ad register. Changing the parameter submits the site and all related counterparties to the stage register for a review. |
* Required
Response format
<response>
<status>
<code>{integer}</code>
</status>
</response>
Response parameters
|
Request processing status. For the key, see Error handling. |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=website&action=modify&objectID=543&name=site.com
Response:
<response> <status> <code>0</code> </status> </response>
Other actions with the object
See also other actions with the website
object:
The ID of the object that the action is performed on.
Object name. It can contain Russian and Latin letters, numbers, and any symbols.
Website owner ID. The website owner is only allowed access to website statistics.
See also:
Category ID.
See also:
Submit data to the Russian state register.
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 caseplatformName
andplatformType
fields are required.The
url
field is required, ifplatformType=0
orplatfromType=1
.
-
When the parameter changes from
0
to1
, the object is submitted to the state register. -
When the parameter changes from
1
to0
, ad labeling is disabled in Adfox. Previously submitted object data remain in the state register.
Platform name. A parameter for ad register.
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Platform type. A parameter for ad register.
Acceptable values:
-
0
: App. -
1
: Website. -
2
: Information system.
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Contractor ID. A parameter for ad register.
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Website or video resource domain, a blog URL, or a link for downloading an app. A parameter for ad register.
Changing the parameter submits the site and all related counterparties to the stage register for a review.
Required