labels
Apply label to entity
Changed onClosed beta
Apply a label to one or more campaigns. Future releases may support labels for other entities in addition to campaigns. Currently, you can apply brand and custom labels. Future releases will provide more options.
Note: You can only apply one brand label to a campaign. You can apply up to 30 custom labels to a campaign.
post/ad_accounts/{ad_account_id}/labels/{label_id}/apply
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ad_account_idstring required
label_idstring required
Label ID.
Request body
Response
The request has succeeded.
Example response
{
"entities_labels": [
{
"entity_type": "CAMPAIGN"
}
],
"errors": [
{
"data": {
"entity_type": "CAMPAIGN"
}
}
]
}Changes
- info
endpoint added
- info