Skip to content

Business Ads Custom Pivots Preview

Updated: Apr 23, 2020

Reading

Provides ad object data of each custom pivot grouping

Example

Select language

HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDK


GET /v25.0/{business-id}/ads_custom_pivots_preview 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

ParameterDescription
ad_account_ids array<int64>List of ad accounts
date_preset enum {today, yesterday, this_month, last_month, this_quarter, maximum, data_maximum, last_3d, last_7d, last_14d, last_28d, last_30d, last_90d, last_week_mon_sun, last_week_sun_sat, last_quarter, last_year, this_week_mon_today, this_week_sun_today, this_year}The date preset
dimensions array<string>dimensions
group_name stringgroup_name
sorting array<JSON object>sorting --- field string field required direction enum {asc, desc} Default value: "desc" direction Show child parameters
time_range {'since':YYYY-MM-DD,'until':YYYY-MM-DD}The time range --- since datetime A date in the format of "YYYY-MM-DD", which means from the beginning midnight of that day. until datetime A date in the format of "YYYY-MM-DD", which means to the beginning midnight of the following day. Show child parameters

Fields

Reading from this edge will return a JSON formatted result:

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

A list of AdsCustomPivotsPreview nodes.

paging

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

summary

Aggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=__type__).

FieldDescription
counts list<AdsCustomPivotsPreviewCount>counts default

Error Codes

Error CodeDescription
100Invalid parameter

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.

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