# plugin-google-adsense **Repository Path**: aidysun/plugin-google-adsense ## Basic Information - **Project Name**: plugin-google-adsense - **Description**: Google Adsense for your book - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Google Adsense plugin for GitBook ============== [![Codacy Badge](https://api.codacy.com/project/badge/Grade/542ee6e993704411a06a71ae916af02c)](https://www.codacy.com/app/karlsson/plugin-google-adsense?utm_source=github.com&utm_medium=referral&utm_content=Vufuzi/plugin-google-adsense&utm_campaign=Badge_Grade) [![NPM downloads](https://img.shields.io/npm/dm/gitbook-plugin-adsense.svg "NPM downloads")](https://www.npmjs.com/package/gitbook-plugin-adsense) Install the plugin with npm: ``` $ npm install gitbook-plugin-adsense ``` Add it to the plugins array in book.json: ``` { "plugins": ["adsense"] } ``` You can set the Google Adsense client and slot keys using the plugins configuration in the book.json: ``` { "plugins": ["adsense"], "pluginsConfig": { "adsense": { "client": "ca-pub-XXXXXXXXXXXXXXXX", "slot": "XXXXXXXXXX", "format": "auto", "element": ".page-inner section", "position": "top" } } } ``` Allowed values for positions are `top` and `bottom`, bottom being the default.