Skip to content

Releases: coatless-quarto/adsense

Selective Monetization

07 Dec 04:31
dae6791
Compare
Choose a tag to compare

Features

  • Added enable-ads option to selectively disable ads on a per-page basis when a global Google Adsense configuration is used.
adsense:
  enable-ads: false

Documentation

  • Reorganized getting started documentation.
  • Added an example showing an ad-free page.
  • Added an FAQ page.

Deployment

  • Moved the documentation website under docs/

Monetize

06 Dec 21:56
Compare
Choose a tag to compare

Features

  • New Google Adsense Extension for Quarto allowing for global or per-page insertion of ad units

Installation

To install the adsense extension, follow these steps:

  1. Open your terminal.

  2. Execute the following command:

quarto add coatless-quarto/adsense

This command will download and install the extension under the _extensions subdirectory of your Quarto project. If you are using version control, ensure that you include this directory in your repository.

Usage

Open either the _quarto.yml or _metadata.yml Project file and add the following:

adsense:
  publisher-id: ca-pub-XXXXXXXXXXXXXXXX

filters:
- adsense

where ca-pub-XXXXXXXXXXXXXXXX in publisher-id is your Google Adsense Publisher ID.

Note: Ads may take up to an hour to appear on the page/project.