FIltering Variables

API reports can currently be filtered with the following options. Filtering options are for the following variables:
• gender
• ages
• countries
• states
Variables are added to the API call required. JSON must be structured in a key to value format where value is an array containing desired filters for each key.

Format:
{
“key1”: [“value1”, ”value2”, …, ”valueN”],
”key2”: [“value1”, ”value2”, …, ”valueN”],
…,
”keyN”: [“value1”]
}

Gender
Currently supported values that can be passed to the gender option:
• male
• female

example format:
{“gender”: [“male”]}
The above example will create a report based on a male audience

Ages
Currently supported values that can be passed to ages option:
• <18
• 18-24
• 25-34
• 35-44
• 45-54
• 55+

example format:
{“ages”: [“<18”, “45-54”]}
The above example will create a report based on an audience of aged under 18 and 45 – 54

Countries
Currently supported values that can be passed to the countries option:
• Any valid country

example format:
{“countries”: [“jamaica”, “canada”]}
The above example will create a report based on an audience located in jamaica and canada

States
Currently supported values that can be passed to the states option:
• Any valid US state

example format:
{“states”: [“NY”, “NJ”]}
The above example will create a report based on an audience located in NY and NJ