Wiki

Clone wiki

REACT native plugin / hasAdForPlacement

Overview

Returns true if there is an ad loaded for given placementId.

Syntax

hasAdForPlacement(String placementName, Callback callback)
placementName (required)

string. Unique name of placement. The same name will be used in addapptr.com account.

callback(required)

Callback<Boolean>. Used to provide the function call result to JavaScript.

Parameters:

  • Boolean - True if there is an ad loaded for given placementId.

Examples

#!javascript

RNAatkit.hasAdForPlacement("BannerPlacement", (hasAd) => {
                console.log("hasAd " + hasAd);
            });

Updated