Skip to content

Developer Platform

Search docs & API
/
Log in
Sign up

Integrate MikMak shopper where-to-buy links

You can include where-to-buy links in your Pinterest ads, enabling Pinterest users to seamlessly purchase products from multiple retailers. Leveraging the capabilities of the MikMak eCommerce platform, you can show multiple in-stock retailer options for a single product and route shoppers to those preferred retailer sites.
Where-to-buy ad example
The current release only supports ads in ad groups targeting U.S. markets.
The current release only supports ads in ad groups targeting U.S. markets.

Before you begin

  • Make sure you have a MikMak account.
  • For each product that you want to provide a where-to-buy link for, have the MikMak product URL available.
  • Make sure any parent ad groups have the following configurations:
    • Pinterest Performance+ disabled
    • Location targeting restricted the United States
    • Mobile device targeting enabled
  • Make sure that any ad you provide where-to-buy links for is one of these standard formats:
    • Standard image ad: A promoted Pin with a single image, headline, and destination URL
    • Standard video ad: A promoted Pin with a single video, headline, and destination URL

Insert a where-to-buy link

You can include one where-to-buy-enabled product in any ad and 10 in any campaign.
POST
Create ads
Any parameters and code examples that appear in this section support this use case, but may not represent the full endpoint specification. See the endpoint reference page for the comprehensive spec.
Any parameters and code examples that appear in this section support this use case, but may not represent the full endpoint specification. See the endpoint reference page for the comprehensive spec.

Request parameters to keep in mind

Request table
ParameterDescription
is_carting

boolean
Optional
Indicate whether the ad will include where-to-buy hyperlinks (
true
).
destination_url

string
Optional
Provide the MikMak product URL, which a shopper can use to link to the retailer's site.
In the current release, you cannot add where-to-buy links to an existing ad.
In the current release, you cannot add where-to-buy links to an existing ad.

Example request

curl --location 'https://api.pinterest.com/v5/ad_accounts/123456789012/ads' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer pina_ABCD1234...' \ --data '[ { "ad_group_id": "2680085321504", "android_deep_link": "", "creative_type": "REGULAR", "destination_url": "https://shop.mikmak.ai/social/6893c661862d000f9ea710da", "ios_deep_link": "", "is_pin_deleted": false, "is_removable": false, "name": "prod test WTB MM v5 ad", "status": "ACTIVE", "tracking_urls": {}, "grid_click_type": "DIRECT_TO_DESTINATION", "customizable_cta_type": "FIND_RETAILERS", "pin_id": "1010706341381983794", "is_carting": true } ]'

Response fields to keep in mind

For a successful HTTP request, the endpoint returns the following fields with its response payload.
Response table
FieldDescription
carting_products

array
Carting product metadata parsed from the MikMak URL that you provided in the request.
Currently, only ​​one product ID and product price are returned.
This array is empty for non-where-to-buy ads.
carting_products.

carting_product.id

string
Identifier of the product in the MikMak site.
carting_products.

display_product_price

boolean
Whether the product price is displayed in the where-to-buy ad closeup after the user clicks into the Pin on the Pinterest mobile app, for all retailers (
true
).
{ "items": [ { "data": { "id": "687302510865", "ad_group_id": "2680085321504", "ad_account_id": "549768407943", "android_deep_link": "", "campaign_id": "626755146078", "carousel_android_deep_links": null, "carousel_destination_urls": null, "carousel_ios_deep_links": null, "click_tracking_url": null, "collection_items_destination_url_template": null, "created_time": 1770748356, "creative_type": "REGULAR", "destination_url": "https://shop.mikmak.ai/social/6893c661862d000f9ea710da", "ios_deep_link": "", "is_pin_deleted": false, "is_removable": false, "name": "prod test WTB MM v5 ad", "pin_id": "1010706341381983794", "rejected_reasons": [], "rejection_labels": [], "review_status": "PENDING", "status": "ACTIVE", "summary_status": "PENDING", "tracking_urls": null, "type": "ad", "updated_time": 1770748357, "view_tracking_url": null, "lead_form_id": null, "quiz_pin_data": null, "grid_click_type": "DIRECT_TO_DESTINATION", "customizable_cta_type": "FIND_RETAILERS", "ext_features": null, "disclosure_type": null, "disclosure_url": null, "is_carting": true, "carting_platform_type": 1, "carting_products": [ { "carting_product_id": "2045931448855232133", "display_product_price": false } ] } } ] }

Troubleshooting

Take the following actions to troubleshoot failed requests:
Error table
Error codeAction
400
Check to make sure:
  • The MikMak product URL is valid.
  • The ad contains valid product data, for example, a Global Trade Item Number (GTIN) number.
  • Parent ad group targets a market inside the U.S.
403
Check if the product in
destination_url
is already linked to an ad owned by another Pinterest ad account.
500
Retry the request later or contact Support for this Pinterest server error.

See all ads with where-to-buy links

GET
List ads
to fetch all ads with where-to-buy links.
GET
Get ad
to fetch a specific ad with where-to-buy links.

Example List ads request

curl --location 'https://api.pinterest.com/v5/ad_accounts/123456789012/ads/210987654321' \ --header 'Authorization: Bearer pina_ABCD1234...' \

Example Get ad request

curl --location 'https://api.pinterest.com/v5/ad_accounts/123456789012/ads?ad_ids=432143214321' \ --header 'Authorization: Bearer pina_ABCD1234...' \

Response fields to keep in mind

These fields are returned in responses from both endpoints.
Response table for Get and List
FieldDescription
carting_products

array
Carting product metadata parsed from the MikMak URL that you provided in the request.
Currently, only ​​one product ID and product price are returned.
This array is empty for non-where-to-buy ads.
carting_products.

carting_product.id

string
Identifier of the product in the MikMak site.
carting_products.

display_product_price

boolean
Whether the product price is displayed in the where-to-buy ad closeup after the user clicks into the Pin on the Pinterest mobile app, for all retailers (
true
).

Example response

{ "id": "687302510865", "ad_group_id": "2680085321504", "ad_account_id": "549768407943", "android_deep_link": "", "campaign_id": "626755146078", "carousel_android_deep_links": null, "carousel_destination_urls": null, "carousel_ios_deep_links": null, "click_tracking_url": null, "collection_items_destination_url_template": null, "created_time": 1770748356, "creative_type": "REGULAR", "destination_url": "https://shop.mikmak.ai/social/6893c661862d000f9ea710da", "ios_deep_link": "", "is_pin_deleted": false, "is_removable": false, "name": "prod test WTB MM v5 ad", "pin_id": "1010706341381983794", "rejected_reasons": [], "rejection_labels": [], "review_status": "PENDING", "status": "ACTIVE", "summary_status": "PENDING", "tracking_urls": null, "type": "ad", "updated_time": 1770748358, "view_tracking_url": null, "lead_form_id": null, "quiz_pin_data": null, "grid_click_type": "DIRECT_TO_DESTINATION", "customizable_cta_type": "FIND_RETAILERS", "ext_features": null, "disclosure_type": null, "disclosure_url": null, "is_carting": true, "carting_platform_type": 1, "carting_products": [ { "carting_product_id": "2045931448855232133", "display_product_price": false } ] }
Was this page helpful?