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>
|
ID of the object that the action is performed on. |
|
Enable targeting by gender. Acceptable values:
|
|
Select the gender value. The parameter is required if 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=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:
- 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 gender.
Acceptable values:
-
0
: Disabled. -
1
: Enabled.
Copied
Select the gender value.
The parameter is required if gender=1
.
Acceptable values:
-
1
: Male. -
2
: Female.
Copied
Required
Copied
Was the article helpful?
Previous
Next