plugin.adSense.*

Type Library
Revision Release 2022.3683
Keywords AdSense, Google Ads, Google AdSense
Platforms HTML5

Overview

The AdSense plugin allows you show banners ads in your Web App via Googles AdSense network. AdSense's other ad formats are in closed beta but will be added in a future update. Note that you can use AdSense Auto Ads after adSense.init() but this plugin cannot control those ads.

Registration

You need to setup your site/app with AdSense.

Syntax

local adSense = require("plugin.adSense")

Functions

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["plugin.adSense"] =
        {
            publisherId = "com.solar2d"
        },
    },      
}

Support

* [Demo](https://github.com/solar2d/com.solar2d-plugin.adSense/tree/master/demo)
* [https://support.google.com/adsense/](https://support.google.com/adsense/)
* [Solar2D Forums](https://forums.solar2d.com/c/corona-marketplace/13)