listValues

Get a list of values of a user targeting characteristic.

Request format

Note

Pagination available.

https://adfox.yandex.com/api/v1
  ? object=userCriteria
  & action=listValues
  & [criteriaID=<integer>]
  & [objectID=<string>]

criteriaID

User characteristic ID.

Acceptable values: 1≤N≤63, where N is the characteristic number from 1 to 63 inclusive.

objectID

Characteristic value ID.

* Required

Response format

<response>
<status>
  <code>{integer}</code>
</status>
<result>
<data>
  <row0>
    <criteriaID>{integer}</criteriaID>
    <ID>{integer}</ID>
    <userID>{integer}</userID>
    <name>{string}</name>
  </row0>
</data>
</result>
</response>

Response parameters

code

Request processing status. For the key, see Error handling.

rows

The number of items in the response tree.

rowN

The item number in the response tree, where N is a number from 0 to rows-1 (where rows is the total number of items in the response).

criteriaID

User characteristic ID.

Acceptable values: from 1 to 63.

ID

User characteristic value ID.

userID

The ID that's passed to the ad tag.

name

Value name.

Sample request and response

Request:

https://adfox.yandex.com/api/v1?object=userCriteria&action=listValues&criteriaID=8

Response:

<response>
<status>
  <code>0</code>
</status>
<result>
<data>
  <row0>
    <criteriaID>1</criteriaID>
    <ID>141140</ID>
    <userID>14234</userID>
    <name>Motorsport</name>
  </row0>
</data>
</result>
</response>

Other actions with the object

See also other actions with the userCriteria object:

User characteristic ID.

Acceptable values: 1≤N≤63, where N is the characteristic number from 1 to 63 inclusive.

Characteristic value ID.

Required

Previous
Next