Ads API •References / targets / Get Contextual Targets Targets
Get Contextual Targets Targets
Returns contextual targets information based on given query parameter.
Request
GET
/targets/contextual_targets
Response
A list of contextual targets.
- key_groupstringRequired
UI grouping label (e.g. “DISPLAY_GROUP_GENRE”)
- Required
Response sample
{ "targeting": [ { "key_group": "DISPLAY_GROUP_GENRE", "value": [ { "visible": "DISPLAY_TYPE_HIDE_IF_SENSITIVE", "target": [ { "id": "genre_alternative" }, { "name": "Alternative" } ] }, { "visible": "DISPLAY_TYPE_VISIBLE", "target": [ { "id": "genre_rock" }, { "name": "Rock" } ] } ] }, { "key_group": "DISPLAY_GROUP_MOOD", "value": [ { "visible": "DISPLAY_TYPE_HIDE_IF_SENSITIVE", "target": [ { "id": "mood_chill" }, { "name": "Chill" } ] }, { "visible": "DISPLAY_TYPE_VISIBLE", "target": [ { "id": "mood_happy" }, { "name": "Happy" } ] } ] }, { "key_group": "DISPLAY_GROUP_ACTIVITIES_AND_SETTINGS", "value": [ { "visible": "DISPLAY_TYPE_HIDE_IF_SENSITIVE", "target": [ { "id": "act_and_set_workout" }, { "name": "Workout" } ] } ] }, { "key_group": "DISPLAY_GROUP_ANTI_TARGETING", "value": [ { "visible": "DISPLAY_TYPE_HIDE_IF_SENSITIVE", "target": [ { "id": "anti_sensitive" }, { "name": "Sensitive" } ] }, { "visible": "DISPLAY_TYPE_HIDE_IF_SENSITIVE", "target": [ { "id": "anti_children" }, { "name": "Children" } ] } ] } ]}