Get promotions
Changed onGets all promotions associated with an ad account ID that can be applied to an ad group. Can be either internally-saved promotions or external promotions imported from a commerce integration.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of an ad account.
Query parameters
Cursor used to fetch the next page of items
Maximum number of items to include in a single page. See documentation on Pagination for more information.
The order in which to sort the items returned: "ASCENDING" or "DESCENDING" by ID. Note that higher-value IDs are associated with more-recently added items.
Response
The request has succeeded.
Example response
{
"items": [
{
"promotion_type": "VARIABLE",
"status": "ACTIVE",
"template_values": [
{
"amount": 100,
"custom_text": "My promotion",
"percent": 10
}
]
}
]
}Changes
- breaking
for the
queryrequest parameterorder, default valueASCENDINGwas added - breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response 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 optional property
to the response with the status - info
added the required property
to the response with the status
- breaking
- warning
added the new
CUSTOMenum value to the////response property for the response status - info
added the optional property
//////to the response with the status
- warning