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