How to use the vue-google-adsense.AutoAdsense function in vue-google-adsense

To help you get started, we’ve selected a few vue-google-adsense examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github surmon-china / surmon.me / plugins / adsense.js View on Github external
/**
 * @file Google adsense / ES module
 * @module plugins/adsense
 * @author Surmon 
 */

import Vue from 'vue'
import Ads from 'vue-google-adsense'

Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)
Vue.use(Ads.InArticleAdsense)
Vue.use(Ads.InFeedAdsense)
Vue.use(Ads.AutoAdsense, { adClient: 'ca-pub-4710915636313788' })

vue-google-adsense

Vue.js Google Adsense Component with InFeed and InArticle Ads support

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis