Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darrynten/vue-adsense
Google Adsense for Vue
https://github.com/darrynten/vue-adsense
Last synced: 13 days ago
JSON representation
Google Adsense for Vue
- Host: GitHub
- URL: https://github.com/darrynten/vue-adsense
- Owner: darrynten
- License: mit
- Created: 2016-11-29T20:31:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-18T20:06:52.000Z (over 6 years ago)
- Last Synced: 2024-02-25T14:32:01.766Z (4 months ago)
- Language: Vue
- Size: 4.88 KB
- Stars: 78
- Watchers: 6
- Forks: 27
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-vue-refactor - vue-adsense
README
# Google Adsense for Vue
![npm version](https://badge.fury.io/js/vue-adsense.svg)#### vue-adsense
A simple Vue component for handling Google Ads
## Installation
```bash
npm install --save-dev vue-adsense
```and include the `adsbygoogle.js` file in your HTML
```html
```
## Usage
Import the component
```js
import VueAdsense from 'vue-adsense'
```Register the component
```js
Vue.component('adsense', VueAdsense)
```And put into your DOM
```html
```
## Values
* ad-client - Your Google Adsense publisher account
* ad-slot - The desired ad ID
* ad-style - Any special styling you want
* ad-format - Provided by Google, is usually 'auto'#### Notes
Contributions welcome, enjoy the component