Get promotion by id
Changed onGet a promotion by its Pinterest-specific id. It must be associated with the provided ad account id.
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
Promotion ID
Unique identifier of an ad account.
Response
The request has succeeded.
Example response
{
"promotion_type": "VARIABLE",
"status": "ACTIVE",
"template_values": [
{
"amount": 100,
"custom_text": "My promotion",
"percent": 10
}
]
}Changes
- 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 optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the 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 - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info
- 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