AdBlock
Detect whether the player has an ad blocker enabled. This is informational only: it does not suppress ads, but it lets you adapt UI, skip empty banner slots, or show a polite prompt.
Call this when you need to adapt ad-related UI for players with blocked ads.
bridge.advertisement.checkAdBlock()
.then(result => {
console.log(result) // true or false
})
.catch(error => {
console.log(error)
})private void Start()
{
Bridge.advertisement.CheckAdBlock(OnCheckAdBlockCompleted);
}
private void OnCheckAdBlockCompleted(bool result)
{
Debug.Log(result); // true or false
}
