- Put the following script tag near the top of the
<head>tag and before any other script or CSS tags.
<script async src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-video.min.js"></script>
- Place our html tag
<liveshop-ads-video>in your<body>tag where you wish.
<liveshop-ads-video slug-video="ABCDEF"></liveshop-ads-video>
You can get your slug-video in your store in StreamShop Dashboard
π That's it! π
Take a look at the attributes below to customize your experience with our SDK:
| Property | Type | Required | Details |
|---|---|---|---|
| slug-video | string | β | Sets the slug of your video ads |
| width | string | β | Sets the horizontal width (default: "100%") |
| height | string | β | Sets the vertical height (default: "100%") |
| quality | 'lq' | 'mq' | 'hq' | β | Sets the quality of your video cover |
| theme | 'light; | 'dark' | β | Sets the theme (default: 'light') |
| hml | boolean | β | Sets if it's hml environment (default: false) |
| border-radius | string | β | Sets the video border radius (default: 16px) |
| aspect-ratio | '9/16' : '16/9' | β | Sets the video aspect-ratio (default: 9/16) |
| use-post-message | boolean | β | Set it true if you want to track StreamShop events outside application (default: false) |
| skip-terms | boolean | β | Set it true if you want to hide the terms and conditions bottom sheet (default: false) |
| use-legacy-overlay | boolean | β | Set it true if you want to use legacy overlay. Not recommended (default: false) |
| show-logo | boolean | β | Determines whether logo sampling should be enabled. By default, this setting is false. |
