Skip to content

Monetize

Compare
Choose a tag to compare
@coatless coatless released this 06 Dec 21:56
· 22 commits to main since this release

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.