targetingBehavior
Target a campaign by behavior.
Request format
https://adfox.yandex.com/api/v1
? object=campaign
& action=target
& actionObject=targetingBehavior
& objectID=<integer>
& behaviorMode=<integer>
& [UTLogic=<integer>]
& [UTNotN=<integer>]
& [categoryIDN=<integer>]
& [visitsN=<integer>]
& [timeoutN=<integer>]
& [UTSVisitsN=<integer>]
& [UTSTimeoutN=<integer>]
|
|
ID of the object the action applies to. |
|
|
Use targeting by behavior for users labeled via:
|
|
|
In targeting by behavior, the advertiser sets the conditions when ad display is allowed. There are two ways conditions can be applied: any of the given conditions is true and all specified conditions are true. You can set up to 9 conditions. Each condition includes 4 parameters, where
Specify the conditional logic for serving ad campaign banners to users. Acceptable values:
|
|
|
Select the target audience: labeled or unlabeled users, where Acceptable values:
Default value: |
|
|
Specify which category the user must be labeled with, where Allowed values: Category ID. Default value: Read also: |
|
|
Specify how many times the user must be labeled, where Acceptable values: Integers from |
|
|
Specify how many days ago the user must have been labeled last, where Acceptable values: Integers from |
|
|
Visits at least a specified number of times, where Acceptable values: Integers from |
|
|
The last visit was no later than the number of days specified, where Acceptable values: Integers from |
Response format
<response>
<status>
<code>{integer}</code>
</status>
</response>
Response parameters
|
|
Request processing status. A value of |
Sample request and response
Request:
https://adfox.yandex.com/api/v1?object=campaign&action=target&actionObject=targetingBehavior&objectID=474205&behaviorMode=1Response:
<response> <status> <code>0</code> </status> </response>
Other actions with the object
Read more about other actions with the campaign object:
- Add a campaign.
- Get a list of campaigns.
- Delete a campaign.
- Edit a campaign.
- Get a list of ad campaign banners.
- Place a campaign on a site, a site section, or a placement.
ID of the object the action applies to.
Use targeting by behavior for users labeled via:
0ā permanent category, if audience labeling is based on categories assigned to sites, sections, and placements.1ā temporary category, if audience labeling is based on action points.
In targeting by behavior, the advertiser sets the conditions when ad display is allowed.
There are two ways conditions can be applied: any of the given conditions is true and all specified conditions are true. You can set up to 9 conditions. Each condition includes 4 parameters, where N in the parameter name is the condition number from 1 to 9:
- Labeled/unlabeled users (
UTNotN). - If the user is labeled, which category (
categoryIDN) is used. - How many times the user is labeled (
visitsN). - When the user was last labeled (
timeoutN).
Specify the conditional logic for serving ad campaign banners to users.
Acceptable values:
0: Any of the given conditions is true.1: All specified conditions are true.
Select the target audience: labeled or unlabeled users, where N in the parameter name is the condition number from 1 to 9.
Acceptable values:
0: Condition not set.1: Labeled users.2: Unlabeled users.
Default value: 0.
Specify which category the user must be labeled with, where N in the parameter name is the condition number from 1 to 9.
Allowed values: Category ID.
Default value: 0 ā not set if targeting is for unlabeled users.
Read also:
Specify how many times the user must be labeled, where N in the parameter name is the condition number from 1 to 9.
Acceptable values: Integers from 1 to 2147483647.
Specify how many days ago the user must have been labeled last, where N in the parameter name is the condition number from 1 to 9.
Acceptable values: Integers from 1 to 2147483647.
Visits at least a specified number of times, where N is the condition number.
Acceptable values: Integers from 1 to 2147483647.
The last visit was no later than the number of days specified, where N is the condition number.
Acceptable values: Integers from 1 to 2147483647.
v
Required parameter.