Google广告营收插件

category
tags
type
status
slug
date
password
Last edited time
Aug 7, 2023 06:52 AM
summary
icon
💡
通过网站上对接谷歌广告接口,可以让您的网站通过广告获取一笔美金收入。
 

配置方式

谷歌广告的配置开通有很多限制
  1. 申请开通谷歌Adsense账号
  1. 获取 PUB_ID 填写到站点配置
    1. notion image
  1. 在谷歌后台创建四种类型的广告单元,获取广告单元的ID
    1. notion image
  1. 代码中配置广告单元ID
    1. notion image
  1. 在你需要引入特定自定义广告的地方添加组件代码 <AdSlot /> 即可 相关AdSlot源码
    1. notion image
  1. 相关使用案例 , Simple主题首页加入了一个原生广告单元
    1. notion image
 
Facebook聊天插件站点统计相关
  • Twikoo
  • Giscus
  • Cusdis