Phaser API Documentation

  Version: 
preloadVideoAds(placementID)

Description:

Attempt to create an instance of an rewarded video ad.

If the instance is created successfully then the ad is preloaded ready for display in-game via the method showVideo().

If the ad loads it will emit the adloaded event, passing the AdInstance as the only parameter.

If the ad cannot be displayed because there was no inventory to fill it, it will emit the adsnofill event.

Parameters:

name type description
placementID string | Array.<string>

The ad placement ID, or an array of IDs, as created in your Audience Network settings within Facebook.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Examples:
Since: 3.13.0