Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

About

Google Adsense for your book

Resources

Stars

5 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

49 Commits

Folders and files

Repository files navigation

Google Adsense plugin for GitBook

Codacy Badge NPM downloads

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.

About

Google Adsense for your book

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages