To generate VAST URLs, you need to install the @adhese/sdk-vast-url
package.
npm install @adhese/sdk-vast-url
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',
})
const url = adhese.plugins.vastUrl.createUrl({
format: 'vast',
parameters: {
aa: 'value'
},
}) // output: https://ads-demo.adhese.com/ad/sllocation-vast/aavalue