Vue DoubleClick for Publishers
Installation
npm install vue-doubleclick
Then require the plugin in you js file:
; Vue;
Afterwards you can you BannerAd component:
Component generates random container id, however you can pass your own value
Mappings
Plugin allows you to define custom mappings (forcing ad size on different screens):
let mappings = rectangle: window: 0 0 sizes: 300 250 300 300300 100250 250 window: 1050 350 sizes: 250 250 300 250 300 100 300 600 240 400 160 600 120600 banner: window: 0 0 sizes: 300 250 300 300300 100250 250 window: 750 200 sizes: 750 300 750 200 300 300 300250 750 100 728 90 600200 window: 1050 350 sizes: 1200 400 970 90 750 300 750 200 750 100 728 90 600200 900300 970 250 970 415 window: 1200 350 sizes: 1200 600 1200 400 ;
and then pass it as another option at install:
Vue;
Ad Unit Sizes
You should define your own Ad Unit Sizes, however this plugin is delivered with 2 base sizes:
let sizes = banner: 1200 600 1200 400 300 250 300 300 rectangle: 300 250 300 300 300 600;
If you define your own sizes, pass them just like mappings
Vue;
Contributing
Any and all contributions will be greatly appreciated.