Create labels
Changed onClosed beta
Apply one or more labels to a campaign. Future releases may support labels for other entities. 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 30 custom labels to a campaign.
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
Unique identifier of an ad account.
Request body
Response
The request has succeeded.
Changes
- breaking
the request property
//became not nullable - breaking
removed the enum value
undefinedof the request property// - breaking
the
///response's property type changed fromstringto no type for status - breaking
the
//response's property type changed fromstringto no type for status - warning
removed the request property
- warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added to the
///response propertyallOflist for the response status - info
added to the
//response propertyallOflist for the response status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status
- breaking
- breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - warning
changed the pattern of the request property
from^\d+$to^[C]?\d+$ - warning
added the new
ACTIVEenum value to the///response property for the response status - warning
added the new
ACTIVEenum value to the//response property for the response status - warning
added the new
ARCHIVEDenum value to the///response property for the response status - warning
added the new
ARCHIVEDenum value to the//response property for the response status - warning
added the new
BRANDenum value to the///response property for the response status - warning
added the new
BRANDenum value to the//response property for the response status - warning
added the new
CAMPAIGNenum value to the///response property for the response status - warning
added the new
CAMPAIGNenum value to the//response property for the response status - warning
added the new
CUSTOMenum value to the///response property for the response status - warning
added the new
CUSTOMenum value to the//response property for the response status - warning
added the new
undefinedenum value to the///response property for the response status - warning
added the new
undefinedenum value to the///response property for the response status - warning
added the new
undefinedenum value to the///response property for the response status - warning
added the new
undefinedenum value to the//response property for the response status - warning
added the new
undefinedenum value to the//response property for the response status - warning
added the new
undefinedenum value to the//response property for the response status - info
the request property
//became nullable - info
added the new
undefinedenum value to the request property//
- breaking