targetingUser
Target campaign placement on the site by user characteristics.
Request format
https://adfox.yandex.com/api/v1
? object=campaign
& action=targetWebsite
& actionObject=targetingUser
& objectID=<integer>
& siteID=<integer>
& isRedefined=<integer>
& criteriaID=<integer>
& vN=<integer>
|
ID of the object that the action is performed on. |
|
Site ID. |
|
Redefine targeting. Acceptable values:
|
|
Characteristic ID. Acceptable values: |
|
Where N in the parameter name is the ID of the characteristic value. Acceptable values:
|
* 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=campaign&action=targetWebsite&actionObject=targetingUser&objectID=474205&criteriaID=1&v5345=1&siteID=234&isRedefined=1
Response:
<response> <status> <code>0</code> </status> </response>
Other actions with the object
See more actions with the campaign
object:
- Add a campaign.
- Get a list of campaigns.
- Delete a campaign.
- Edit a campaign.
- Get a list of campaign banners.
- Place a campaign on a site, a site section, or a placement.
ID of the object that the action is performed on.
Site ID.
Redefine targeting.
Acceptable values:
-
0
: Inherit targeting settings from a higher level. Level hierarchy from top to bottom:- Campaign.
- Campaign on the site.
- Campaign in the site section.
- Campaign on the placement.
- Banner.
-
1
: Cancel targeting settings at higher levels and use the settings of the current level.
Characteristic ID.
Acceptable values: 1≤N≤63
, where N is the characteristic number from 1 to 63 inclusive.
Where N in the parameter name is the ID of the characteristic value.
Acceptable values:
-
0
: Disable. -
1
: Enable.
Required