Skip to main content

Introduction

The Butterfly is an in-grid Commerce Display unit combining branded assets with product tiles.
Example of the Butterfly ad format
This format corresponds to the desktop version of the Butterfly unit. For mobile specs, please refer to Interactive Header.

Specifications

General

  • The butterfly unit is composed of two different parts:
    • A branding zone on the left side
    • A product zone on the right side
  • The format must be displayed on the grid page.
  • The format must be able to host up to 5 different products.
5-4-3 product.jpg
2-1 products.jpg
  • The user can change the product displayed in the product zone with product buttons.
  • The branding zone size should be equal to the product tile size. When a website is responsive, both tiles must always be at the same size.
    • If the branding zone is smaller than the background image, then the image should be cropped on both sides uniformly and/or at the bottom.
    • If the branding zone is bigger than the background image, the extra available space should be filled with a plain colored background (CSS).
  • The product zone design and layout are the same as the other product tiles.
Branding zone behavior on grid tiles larger and smaller than background image.

Asset sizes

Background 310x500px

  • If there is more than 1 SKU, the safety zone is 180x140px
007ac13ff22859d582941ccc7c29878942bb2a90ba05012e66f3fba5dc0d1af4 image
  • If there is only one SKU (no Product Buttons), the safety zone is 180x390px
ed2133f9eab626971ff9905de6cf321d76ed5eb1d3b2e4360575e948f806aa20 image

Background 270x390 px

  • If there is more than 1 SKU, the safety zone is 180x140px
f6689c82a1452bbcaa43bdff9f1335ad394cbad59760f44a9b371a7a5d061819 image
  • If there is only one SKU (no Product Buttons), the safety zone is 180x190px
b393f938c6c2875f6265bcb7396a2e0e0f1a774cf1b5a1cfb648fca08e35bb09 image
Please note that only one of these size will be used once chosen.

Available options

Redirection

  • When a user clicks on the CTA button, they should be redirected to the link defined within the response.
  • There are two possible redirection options:
    • _Self_ (open in the same tab)
    • _Blank_ (open in a new tab)

PDF upload

  • A brand may choose for the CTA to result in a file download. This file will be included in the ad response.
  • At the banner’s click, a PDF file opens like a redirection link with both _Self_ and _Blank_ options (see above)

  • Editable text field
  • Multiple backgrounds:
    • It’s possible to have up to 5 different backgrounds, 1 background per product button.
    • The background should change on the click of each product button.

Technical details

  • It’s possible to have up to 5 product buttons and 1 option: a call to action (CTA) button or legal text. The number of product buttons depends on the size of the branding zone.

Product buttons

  • Size: 150x30px
  • Font: Roboto Regular 12px
  • There can be two colors for background product buttons:
    • one for the hover state (selected),
    • another when not selected.
  • There can be two colors for text product buttons:
    • one for the hover state (selected),
    • another when not selected.
  • The text can be over two lines and, in this case, should have a line height of 1.

CTA button

CTA and legal text specifications for the Butterfly ad format
  • Size: 150x30px
  • Button font: Roboto Regular 12px
  • Legal:
    • The space size occupied by legal text depends on the tile width. There should be 10 px padding on the right and the left of the tile.
    • Legal font: Roboto Regular 10px.
    • The gap between the options area and the bottom of the branding zone should be fixed to 7px.
    • The options area height should be fixed at 30px.
  • There should be 5px between every button.
  • Product buttons are centered on the vertical axis, between the safe zone and the bottom of the tile on the horizontal axis. If there is an option (CTA or legal text), product buttons are centered between the safe zone and the top of the option area.
  • The background image position should be fixed to the top of the tile and centered on the vertical axis.
  • The background color should fill the branding zone.
  • There is a 1px border around branding and product zones.
Spacing between buttons and base of branding zone with and without CTA button or Legal text.

Response keys

rendering block

This block has global rendering data for the unit.

Field

Description

desktop_background_image

URL of the background image file for desktop/tablet app

desktop_background_image_alt_text

Alternative text for desktop background image

mobile_background_image

URL of the background image file for mobile

mobile_background_image_alt_text

Alternative text for mobile background image

mobile_logo_image

URL of the logo image file for mobile

mobile_logo_image_alt_text

Alternative text for mobile logo image

border_color

Hex code for the format’s outline color

background_color

Hex code for the background color of the branding zone

button_color

Product button color

selected_button_color

Selected product button color

button_text_color

Product button text color

selected_button_text_color

Selected button text color

optional_footer_type

Option type. Can have the following values:

  • no-option: no footer option
  • redirection: expect values inoptional_footer_redirect_urland/oroptional_footer_redirect_url_app)
  • file: expect values inoptional_footer_media_file
  • legal: expect values inoptional_footer_text

optional_footer_text

Option text

(non-applicable for mobile version)

optional_footer_redirect_url

Web URL that the user is redirected to

optional_footer_redirect_url_app

App deeplink that the user is redirected to

optional_footer_redirect_target

Redirection target. Can have the following values:

  • _blank: redirects to a new tab
  • _self: redirects in the same tab

(only applicable for web)

optional_footer_media_file

URL of media file

optional_footer_text_color

Option text color

optional_footer_background_color

Option background color

products_order block

This block defines the order of the buttons on the left panel of the Butterfly unit.

Field

Description

button_name

The button text

products

The product that should be rendered when the button is clicked. The array is contains the priority order of product rendering. If you are checking product availability in real time, you should render thefirst available productin the array, i.e., if the first product is not available, check the second one, then check the third, and so on.

isMandatory

Iftrue, the unit should only be rendered ifat least oneof the products in theproductsarray is available.

Iffalse, the button can be ignored if no product in theproductsarray is available.

  • Note:* This option is only relevant if you are check product availability in real time, before rendering the units.

Sample response

{
    "status": "OK",
    "placements": [
        {
            "viewHome_API_desktop-Butterfly": [
                {
                    "format": "BF",
                    "products": [
                        {
                            "ProductId": "134679258",
                            "OnLoadBeacon": "//b.us5.us.criteo.com/rm?rm_e=gLYh9%2fxsFGq%2b67gaahP4kVXGGZXfgfgU1JveA8o1zBL%2bVeGhkRciu4XrLOsI4T7SC%2bNbEtyqg3GhqGgDtwtWLWaTC0EBVHxpNlqJcrfrUzWk3IBuDj7ZAr8t28y7EJfH3BnEZQxAvbjEP3nRJYq9z9TfOhi0mWVLYxVFIURTPBvcp0cVPY5qaHvmPC6%2bppv7TH9Kja6zXlrKhib2DOtKo4aEMw3FQqRbnCeTVdjqmFbHK8s%3d&ev=2",
                            "OnViewBeacon": "//b.us5.us.criteo.com/rm?rm_e=aLSOJrKI2G%2fY8SwmqYnI5SqMi2jvKfgfgnJDZb06hcliInWkDeRqN4Tu%2fKZnJgmGIrIuQVurCYsVELSi%2byX2oOKpicAj5tACVgpEYVcGZxNOU68BYLhRUxn80y3s4USfHLmeeOvP9wxb6RlGyydpJ4U4k%2fM7uL3DawyB9O%2bC9qebO%2bKTIUZ2fbQV5EuwvNxzYqCcfSjxWkMF%2fC5XfdIeovQeU5%2b7UpYhV62LdPj910grWaLwAIZ1BFFDCShQC%2fNTvqXt&ev=2",
                            "OnClickBeacon": "//b.us5.us.criteo.com/rm?rm_e=S82J7C%2fY88eObEWE7XzLk2PMzSUfgfgTawyt81nDPKP2IJov%2byGjGihnQ6n4aM8AN03iCTSLqrRZTClsvRLjR3xIKFGaqgilehlQj2WuFQK5Eht9iUY9Pe9S9fRvms7BB055liFkgZqzmChn6L06LcP0MOPdwUT3dsUhokauwiziBsb3nVQF5k51wvEy%2fQ0YrxsM2ZlOOBmpNrWij8%2fnRxJiCMylA%2fOxqr6%2bJw5nCICO18dWz8SvNAyV0TeI2h9mUSk3jOljbyNUUAK%2fpNYfzRPDuw%3d%3d&ev=2",
                            "OnBasketChangeBeacon": "//b.us5.us.criteo.com/rm?rm_e=LQNEHBKa5%2bIRktK7%2bD%2fR5fgfgD1TbxYrFDDNLffHIbCiNsnssxDZSllOGbux%2f88BUiFFUTugPFOhm0oaM9DsesFQmoNghWjKaIr76vj9B7fcvNR1zZmYOOseWCbQZlkpozMPlugkYyH0W33iV6j2w%2fRdBY%2bQVgQT0BBmYdVPRODed3SIOgkAxOZF4upAfAxSf83%2bp4Nh8bvlY6b840bGvL9UMgQHy1FM8ncNj90PsUwnANQrLmidsAghSTnZELKUpQZYmFXAVPPk%2bBHu%2bpB6QhkK8twFzGcDVBp5MCtpmZGe%2brg%3d&ev=2",
                            "OnWishlistBeacon": "//b.us5.us.criteo.com/rm?rm_e=8yGOJDbiWkOj%2bHVuvsc59my1UyuWPnozIfwfOmrFm5ZtZmX4a4bi3IZLEYS57LOv59wkboF346v%2fKa4X8Zim7YSCjw9tNN2yBYCr%2fb%2fgfgb9QELv2JEprUOfBSZ1ZIwILrpD5CgOWkvQpEnYP137RzR4LFirlrSnfXe0Tanl8sHU5PjOXA%2f9iKHps%2bYB2aD35M02Br8%2fPx%2b2%2bDlQq4RKw4xMuAmnlafk2dUWI%2f%2bjGVwATj0LfINKS2LSt77USBGLOcWw5cDekIMvWptqyccI3oKCQQ%3d%3d&ev=2"
                        },
                        {
                            // other products
                        },
                    ],
                    "products_order": [
                        {
                            "button_name": "text button 1",
                            "products": [
                                "134679258"
                            ],
                            "isMandatory": false
                        },
                        {
                            // other products
                        }
                    ],
                    "rendering": {
                        "border_color": "#ff0000",
                        "background_color": "#000000",
                        "button_color": "#000000",
                        "selected_button_color": "#000000",
                        "button_text_color": "#000000",
                        "selected_button_text_color": "#010000",
                        "optional_footer_type": "no-option",
                        "optional_footer_text": "",
                        "optional_footer_text_color": "",
                        "optional_footer_background_color": "",
                        "optional_footer_redirect_url": "",
                        "optional_footer_redirect_url_app": "",
                        "optional_footer_redirect_target": "",
                        "optional_footer_media_file": "",
                        "mobile_logo_image": "//crtormassetmguseprod.blob.core.windows.net/creativeassets-live/try44gf6h46tyu4yj46gfh64fg6h4rt46r78t8rfb4cdf178378c.jpg",
                        "mobile_logo_image_alt_text": "alttext ofr mobile logo",
                        "mobile_background_image": "//crtormassetmguseprod.blob.core.windows.net/creativeassets-live/try44gf6h46tyu4yj46gfh64fg6h4rt46r78t8rfb4cdf178378c.jpg",
                        "mobile_background_image_alt_text": "alt text for mobile background",
                        "desktop_background_image": "//crtormassetmguseprod.blob.core.windows.net/creativeassets-live/try44gf6h46tyu4yj46gfh64fg6h4rt46r78t8rfb4cdf178378c.jpg",
                        "desktop_background_image_alt_text": "alt text for desktop background"
                    },
                    "OnLoadBeacon": "//b.us5.us.criteo.com/rm?rm_e=2DP313G8ktSXXaFvImaO4VKGjOamMqFSCkvmGlcTz98dfgdfgdmtngUKQgwShE9%2bvNSjDndYD%2bnpLT4PWDoNaCb862AMTvSopOdYNFGidZfBHggUmtpL%2fYOudEdDP7kANk%2bGmsBy3OCIm58C0uAYEJSHBdruRC%2fhbWLKUdZ2VdHdFwvBg8IT9Yt4V0DS%2bufcBDtvWbEhioZmIPaBY3uuykPSXyOlpMB6eGyzI1s6hD6xIgZ1h%2bWR398LW3neLVwwmgtpHax%2f%2bEObEu9bzKawPFfHqZ%2bg%3d%3d&ev=2",
                    "OnViewBeacon": "//b.us5.us.criteo.com/rm?rm_e=YIfuO34D8lTreAuY8MIlZiNjtIYz4b8eDlYzK0kXFMI9RuhZjwV6cVwkirv6Tbbix2k6Wgh7TLqia3Gw1uOcHcNCs%2f4hpPjT2yIGBXUv36EjR20dfgdfgsjFkZFPx8QGY9uakIYTCoH73BwvmoZdM5ForssG%2fkumRGMydeN9VqXHDdF8PxDvlVFUP3M%2fgFsSYQcCTO%2brLIhUs4%2bTKzg3mOxt%2fzSrsyOkQzOP7b7x5lupA2unc%3d&ev=2",
                    "OnClickBeacon": "//b.us5.us.criteo.com/rm?rm_e=Db34znl4Lx0Oq1zpo6o%2fb%2b2A1ExBZx5W7GLNmopfgN3f4DE5lpjSxb8eBUtw1dsIWqH8%2fbjaLIwGVlIukvlY5suhA5G%2fYZcU2Lx0aiFdfgdfgR7hNwL%2blregzZewZ6wuArnzW9sBqia4vvWq%2bBsGU39FRUuYm94OcSReYRutW%2fXtQ5Vx7lExUKg0P3%2fQRk%2bWuroBUmFR5M0atLoYvduF7Qmb4Vms1Ma4dOAwiCKtgh0t27j5Z5IPvlm3I%2fwHMEiS3jnBSD&ev=2",
                    "OnFileClickBeacon": "//b.us5.us.criteo.com/rm?rm_e=Db34znl4Lx0Oq1zpo6o%2fb%2b2A1ExBZx5W7GLNmohjpfgN3f4DE5lpjSxb8eBUtw1dsIWqH8%2fbjaLIwGVlIukvlY5suhA5G%2fYZcU2Lx0aiFdfgdfgR7hNwL%2blregzZewZ6wuArnzW9sBqia4vvWq%2bBsGU39FRUuYm94OcSReYRutW%2fXtQ5Vx7lExUKg0P3%2fQRk%2bWuroBUmFR5M0atLoYvduF7Qmb4Vms1Ma4dOAwiCKtgh0t27j5Z5IPvlm3I%2fwHMEiS3jnBSD&ev=2",
                    "OnBundleBasketChangeBeacon": "//b.us5.us.criteo.com/rm?rm_e=EPQZxjkhpjUK980SuOdWt4pHabkuwfAR3bGmfCsTUVMLvk3FuugK%2f7NaEZDdh5JUtR8YNx8PZUKRY2b93LwBFzLYDA3EppPd336FlC3y9%2dfgdfgbUcOP6qdW5k27ef5KwplDMOMh%2bnhF%2blpeguQpact691q70oFry4KYaNbRhKHmCm9wtVmDBbiwGBNW77%2f0lIKintx2O3Dv%2fuCEymreHBITagpX7GXLP0pTQ6O0%2fdMEH%2fI4Z2dPtUHa3ps7G4V%2fvDspyR&ev=2"
                }
            ]
        }
    ],
}

Implementation Example



What’s next