Atlas API Version

Atlas Audience Definition

Reading

An Atlas AudienceDefinition

Examples

Graph API Explorer
GET v2.10/...?fields={fieldname_of_type_AtlasAudienceDefinition} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '...?fields={fieldname_of_type_AtlasAudienceDefinition}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "...?fields={fieldname_of_type_AtlasAudienceDefinition}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_AtlasAudienceDefinition}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"...?fields={fieldname_of_type_AtlasAudienceDefinition}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription

age

Age range for the target audience

carrier_groups

list<numeric string>

Carrier groups associated with the audience

device_types

list<string>

List of types of devices used by the audience. It can be desktop or mobile

excluded_carrier_groups

list<numeric string>

Carrier groups associated with the audience that are excluded

excluded_locations

Locations associated with the audience that are excluded

excluded_people_lists

People list associated with the audience that are excluded

excluded_segments

List of segment identifiers that are excluded from the audience

genders

list<string>

List of types of genders associated with the audience. It can be male or female

location_targeting_type

string

Type of location targeted for the audience

locations

Locations associated with the audience

people_lists

People lists associated with the audience

schema_version

numeric string

Schema version associated with the audience

segments

List of segment identifiers representing the sub-set of audience

Edges

No edges

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.