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>

objectID*

ID of the object that the action is performed on.

revenue*

Enable targeting by income (revenue).

Acceptable values:

  • 0: Disabled.
  • 1: Enabled.

revenueValues*

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

Response format

<response>
<status>
  <code>{integer}</code>
</status>
</response>

Response parameters

code

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: