Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

How do I set up Google Adsense ads? #68

Answered by uPagge
linuxmobile asked this question in Q&A
Discussion options

You must be logged in to vote

To begin with, this is not a template problem. Therefore, such questions need to be raised in discussions)

At the moment, you can only add ads from Google.
This is done through configuration.

params:
  advertising:
    enable: true
    google:
      client: ca-pub-xxxxxxxx
      slot: xxxxxxxxxxx

These are the default settings.

The advertisement itself is inserted into arbitrary places of the template using the shortcode: {{}}
It also has parameters:
slot - changes the default ad unit to another, useful if you have several authors on your blog, you can create an ad unit for each of them
circuit - a boolean field, determines whether the ad should be surrounded by a frame

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@linuxmobile
Comment options

@uPagge
Comment options

Answer selected by uPagge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #67 on March 24, 2021 16:36.