1. vuepress-plugin-google-adsense2
VuePress 2 plugin - google-Adsense
vuepress-plugin-google-adsense2
Package: vuepress-plugin-google-adsense2
Created by: John60676
Last modified: Mon, 16 Oct 2023 07:12:42 GMT
Version: 1.0.3
License: MIT
Downloads: 39
Repository: https://github.com/John60676/vuepress-plugin-google-adsense2

Install

npm install vuepress-plugin-google-adsense2
yarn add vuepress-plugin-google-adsense2

vuepress-plugin-google-adsense2

English | 简体中文

Note: This plugin is provided for VuePress 2

Google adsense plugin for VuePress 2, automatically add Google Ad to your VuePress site.

npm GitHub license

Install

 yarn add -D vuepress-plugin-google-adsense2
# OR
npm install -D vuepress-plugin-google-adsense2

Usage

 import googleAdSensePlugin from 'vuepress-plugin-google-adsense2';

module.exports = {
  plugins: [
    googleAdSensePlugin({
      id: 'ca-pub-xxxxxxx',
    }),
  ],
};

More plugins usage, see also: VuePress Plugins

Options

id

  • Type: string

  • Details:

    In the code block provided to you by AdSense, find the word data-ad-client. The id should start with 'ca-pub-'. You can follow the instructions here to find your AdSense code.

    Or you can use Publisher ID and add the string 'ca-' in front.You can follow the instructions here to find your Publisher ID.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code