VAST URL 1.0.0
To generate VAST URLs, you need to install the @adhese/sdk-vast-url
package.
Installation
bash
npm install @adhese/sdk-vast-url
bash
pnpm add @adhese/sdk-vast-url
bash
yarn add @adhese/sdk-vast-url
bash
bun add @adhese/sdk-vast-url
Usage
To generate VAST URLs, you need to include the @adhese/sdk-vast-url
package in your Adhese instance.
js
import {createAdhese} from '@adhese/sdk';
const adhese = createAdhese({
account: 'demo',
plugins: [vastUrlPlugin],
location: 'location',
})
Generate a VAST URL
js
const url = adhese.plugins.vastUrl.createUrl({
format: 'vast',
parameters: {
aa: 'value'
},
}) // output: https://ads-demo.adhese.com/ad/sllocation-vast/aavalue