Monetize
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:
-
Open your terminal.
-
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.