0.2.1 • Published 3 years ago
gitbook-plugin-google-ads v0.2.1
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"
}
]
}
}
}