Type Library Revision Release 2024.3703 Keywords AdSense, Google Ads, Google AdSense Platforms HTML5
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.
You need to setup your site/app with AdSense.
local adSense = require("plugin.adSense")
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" }, }, }
* [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)