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.

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. If the value is 0, the request was completed successfully. For the key, see Error handling.

rows

Number of items in the response tree.

rowN

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: 1≤N≤63, where N is the characteristic number from 1 to 63 inclusive.

ID

User characteristic value ID.

userID

The ID 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 more 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.

Previous
Next