| Name | Description |
|---|---|
idtype: string | Target audience ID |
nametype: string | Name of the target audience |
audience_size_lower_boundinteger | Estimated lower bound target audience size |
audience_size_upper_boundinteger | Estimated upper bound target audience size |
pathtype: array of strings | Includes the category and any parent categories the targeting falls into |
descriptiontype: string | A short description about target audience |
limit_type, we filter results with less than 2000 people into four categories: work_employers, work_positions, education_majors, education_schools. Otherwise you get less meaningful results. When you use limit_type we filter for one of those four categories and will not return everything.curl -G \
-d "q=harvard" \
-d "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/targetingsearch
| Name | Description |
|---|---|
qtype: string | Required. Query string |
limittype: integer | Optional. Number of results |
limit_typetype: string | Optional. Limit the type of audience to retrieve. Default to all types. Valid values:
|
localetype: string | Optional. The locale to display audience names and descriptions, if available. Default to ad account’s locale |
curl -G \
-d "targeting_list=[{'type':'interests','id':6003263791114}]" \
-d "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/targetingsuggestions
| Name | Description |
|---|---|
targeting_listtype: Array of {'type':'{TYPE}', 'id':{ID}} | Required. Array of {'type':'{TYPE}', 'id':{ID}} pairs as input audience for suggestions. |
limittype: integer | Optional. Number of results. Default is 30. Maximum is 45. |
limit_typetype: string | Optional. Limit the type of audience to retrieve. Default to all types Valid values:
|
localetype: string | Optional. The locale to display audience names and descriptions. Default to ad account’s locale |
curl -G \
-d "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/targetingbrowse
| Name | Description |
|---|---|
limit_typetype: string | Limit the type of audience to retrieve. Default to all types. |
localetype: string | The locale to display audience names and descriptions. Default to ad account’s locale |
curl -G \
-d "targeting_list=[{'type':'interests','id':6003283735711}, {'type':'relationship_statuses','id':100}]" \
-d "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/targetingvalidation
| Name | description |
|---|---|
validtype: boolean | Whether the targeting audience is valid or not |
| Name | Description |
|---|---|
targeting_listtype: Array of {'type':'{TYPE}', 'id':{ID}} | Array of {'type':'{TYPE}', 'id':{ID}} pairs for validation. Perferred. |
id_listtype: array of strings | Array of IDs for validation. Succeeds only if an ID is uniquely identifiable in our audience database |
name_listtype: array of strings | Array of Strings for validation. Interests only, case insensitive |
localetype: string | Locale to display audience names and descriptions. Defaults to ad account’s locale |
targeting_list, id_list, and name_list.