Skip to content

Business Event Source Groups

Updated: Jul 26, 2019

Reading

Get event source groups owned by this business.

Example

Select language

HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK


GET /v25.0/{business-id}/event_source_groups HTTP/1.1  
Host: graph.facebook.com

Try it in Graph API Explorer

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

Reading from this edge will return a JSON formatted result:

{
"data": [],
"paging": {}
}
data

A list of EventSourceGroup nodes.

paging

For more details about pagination, see the Graph API guide.

Error Codes

Error CodeDescription
270This Ads API request is not allowed for apps with development access level (Development access is by default for all apps, please request for upgrade). Make sure that the access token belongs to a user that is both admin of the app and admin of the ad account
200Permissions error
100Invalid parameter

Creating

/{business_id}/event_source_groups

You can make a POST request to event_source_groups edge from the following paths:

When posting to this edge, an EventSourceGroup will be created.

Parameters

ParameterDescription
event_sources list<numeric string or integer>Event sources associated with this event source group, such as IDs for pixels. required
name UTF-8 encoded stringName of the event source group. required

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.

Struct  {
id: numeric string,
}

Error Codes

Error CodeDescription
100Invalid parameter

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About