chartboost.isLoaded()

Type Function
Return value Boolean
Revision Release 2022.3683
Keywords ads, advertising, Chartboost, isLoaded
See also chartboost.load()
chartboost.show()

Overview

Returns whether an ad is loaded or not.

Syntax

chartboost.isLoaded( adType [, namedLocation] )
adType (required)

String. One of the following values:

  • "interstitial"
  • "rewardedVideo"
  • "moreApps"
namedLocation (optional)

String. The advertisement location. If omitted, the legacy "Default" location will be used. See chartboost.show() for a list of valid pre-defined options.

Example

local chartboost = require( "plugin.chartboost" )

-- Check if default interstitial is loaded
print( chartboost.isLoaded( "interstitial" ) )