gitbook-plugin-google-ads
v0.2.1
Published
Inject Google Adsense to your Gitbook.
Downloads
24
Readme
The Google Adsense plugin for Gitbook
Config plugin in book.json.
{
"plugins": ["google-ads"]
}Install via npm
npm link: https://www.npmjs.com/package/gitbook-plugin-google-ads
$ npm install gitbook-plugin-google-adsUsage
Need to config an array of ad's properties:
Add an array of ads with following properties:
- client(require): your Adsense Client ID.
For example,
{
"plugins": ["google-ads"],
"pluginsConfig": {
"google-ads": {
"ads": [
{
"client": "ca-pub-xxxxx"
}
]
}
}
}