Rewarded

There are some advertisement settings in the playgama-bridge-config.json file

Playgama Bridge Config

Rewarded ads are a type of advertisement where players have the option to watch an ad in exchange for in-game rewards

Offer players rewards in exchange for watching ads, incentivizing ad engagement and increasing ad revenue.

Rewarded State

Monitor the state of the rewarded ad (loading, opened, closed, rewarded, failed) to manage the reward process.

bridge.advertisement.rewarded_state()

Possible values: loading, opened, closed, rewarded, failed.

local bridge = require("bridge.bridge")

function init(self)
	bridge.advertisement.on("rewarded_state_changed", function (_, state)
		print("Rewarded state changed: ", state)
	end)
end

React to changes in ad state. For example, mute the game sound when opened and unmute when closed and failed.

Rewarded Placement

Monitor the current placement of the rewarded ad to manage the reward process.

bridge.advertisement.rewarded_placement()

Show Rewarded Ad

Display a rewarded ad and provide incentives to players for watching the entire ad.

local placement = "test_placement" -- optional
bridge.advertisement.show_rewarded(placement)

Last updated