| Limit | Value |
|---|---|
Maximum number of ad labels per regular ad account | 100,000 non-deleted ad labels |
Maximum number of ad labels specified in the spec (to be associated with an ad object) | 50 ad labels spec |
/campaignsbylabels/adsetsbylabels/adsbylabels/adcreativesbylabelsALL and ANY:
for ids and label names matching, partial string matching is not supported.
curl -G \
-d 'ad_label_ids=["<AD_LABEL_ID>"]' \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adsbylabels
| Field | Description |
|---|---|
idnumeric string |
Ad Label ID
|
created_timedatetime |
Created time
|
namestring |
Ad Label name
default |
updated_timedatetime |
Updated time
|
| Edge | Description |
|---|---|
adcreativesEdge<AdCreative> |
Creatives associated with this label
|
adsEdge<Adgroup> |
Ads associated with this label
|
adsetsEdge<AdCampaign> |
Ad sets associated with this label
|
campaignsEdge<AdCampaignGroup> |
Campaigns associated with this label
|
| Error Code | Description |
|---|---|
100 | Invalid parameter |
POST /v25.0/act_<AD_ACCOUNT_ID>/adlabels HTTP/1.1 Host: graph.facebook.com name=My+Label
| Parameter | Description |
|---|---|
namestring |
AdLabel name
required |
Struct {
id: numeric string,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
200 | Permissions error |
| Parameter | Description |
|---|---|
namestring |
AdLabel name
required |
Struct {
success: bool,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
| Parameter | Description |
|---|---|
adlabelslist<Object> |
Specification of ad labels to be associated with the creative
required |
Struct {
success: bool,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
| Parameter | Description |
|---|---|
adlabelslist<Object> |
Specification of adlabels to be associated with the ad
required |
execution_optionslist<enum{validate_only}> | Default value: Set
An execution setting validate_only: when this option is specified, the API call will not perform the mutation but will run through the validation rules against values of each field. If the call passes validation or review, response will be {"success": true}. If the call does not pass, an error will be returned with more details. These options can be used to improve any UI to display errors to the user much sooner, e.g. as soon as a new value is typed into any field corresponding to this ad object, rather than at the upload/save stage, or after review.
|
Struct {
success: bool,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
| Parameter | Description |
|---|---|
adlabelslist<Object> |
Specification of ad labels to be associated with the campaign
required |
execution_optionslist<enum{validate_only}> | Default value: Set
An execution setting validate_only: when this option is specified, the API call will not perform the mutation but will run through the validation rules against values of each field. If the call passes validation or review, response will be {"success": true}. If the call does not pass, an error will be returned with more details. These options can be used to improve any UI to display errors to the user much sooner, e.g. as soon as a new value is typed into any field corresponding to this ad object, rather than at the upload/save stage, or after review.
|
Struct {
success: bool,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |
Struct {
success: bool,
}
| Error Code | Description |
|---|---|
100 | Invalid parameter |