targetingGender

Target a campaign by gender.

Request format

https://adfox.yandex.com/api/v1
  ? object=campaign
  & action=target
  & actionObject=targetingGender
  & objectID=<integer>
  & gender=<integer>
  & genderValues=<integer>

objectID*

ID of the object that the action is performed on.

gender*

Enable targeting by gender.

Acceptable values:

  • 0: Disabled.
  • 1: Enabled.

genderValues*

Select the gender value.

The parameter is required if gender=1.

Acceptable values:

  • 1: Male.
  • 2: Female.

* 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=targetingGender&objectID=2783648&gender=1&genderValue=1

Response:

<response>
<status>
  <code>0</code>
</status>
</response>

Other actions with the object

See more actions with the campaign object:

ID of the object that the action is performed on.

Enable targeting by gender.

Acceptable values:

  • 0: Disabled.

  • 1: Enabled.

Select the gender value.

The parameter is required if gender=1.

Acceptable values:

  • 1: Male.

  • 2: Female.

Required