targetingRevenue
Target a campaign by user income levels.
Request format
https://adfox.yandex.com/api/v1
? object=campaign
& action=target
& actionObject=targetingRevenue
& objectID=<integer>
& revenue=<integer>
& revenueValues=<integer>
|
ID of the object that the action is performed on. |
|
Enable targeting by income (revenue). Acceptable values:
|
|
Select the income value. The parameter is required if Acceptable values:
You can pass multiple values separated with a vertical line |
* 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=target&actionObject=targetingRevenue&objectID=2783648&revenue=1&revenueValues=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.
Enable targeting by income (revenue).
Acceptable values:
-
0
: Disabled. -
1
: Enabled.
Select the income value.
The parameter is required if revenue=1
.
Acceptable values:
-
1
: Below average. -
2
: Average. -
3
: Above average.
You can pass multiple values separated with a vertical line |
without spaces.
Required