Create ad preview with pin or image
Changed onCreate an ad preview given an ad account ID and either an existing organic pin ID or the URL for an image to be used to create the Pin and the ad.
If you are creating a preview from an existing Pin, that Pin must be promotable: that is, it must have a clickthrough link and meet other requirements. (See Ads Overview.)
You can view the returned preview URL on a webpage or iframe for 7 days, after which the URL expires. Collection ads are not currently supported ad preview.
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
Example request
{
"image_url": "https://somewebsite.com/someimage.jpg",
"title": "My Preview Image"
}Response
The request has succeeded.
Example response
{
"url": "https://ads.pinterest.com/ad-preview/58f1a0e9ab0bd0f99462a0e4c5dd7e8297888c8a36331e88f757abe8f0295d31/"
}Changes
- breaking
removed
subschema #1: AdPreviewCreateFromImagesubschema #2: AdPreviewCreateFromPinsubschema #3: AdPreviewShoppingfrom the request bodyoneOflist - info
added to the request body
oneOflist - 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 success response with the status
- breaking
- breaking
added
subschema #2to the/request propertyallOflist - breaking
the request property
/became not nullable - breaking
removed the enum value
BOOK_NOWof the request property/ - breaking
removed the enum value
GET_DEALof the request property/ - breaking
removed the enum value
ON_SALEof the request property/ - breaking
removed the enum value
SHOP_NOWof the request property/ - breaking
removed the enum value
undefinedof the request property/ - breaking
the
/request property type changed fromstringto no type - info
added the new
REGULARenum value to the request property/
- breaking