ads_event_preload

Preload a PlayHaven ad placement, ready to be shown.

Syntax:

ads_event_preload(placement)


Argument Description
placement The PlayHaven placement name (a string)


Returns: N/A


Description

This function will preload a PlayHaven ad into memory, ready for it to be shown when the ads_event calls the placement used (both functions require the same placement name string to work. If you know that after a certain time or at a certain point in your game you are going to be calling a PlayHaven content placement, then this function can be called beforehand so as to make the user experience as smooth as possible.

NOTE: This function will not show the ad! It only loads it into memory.


Example:

ads_event_preload("game_start");

The above code will preload an ad from PlayHaven for the placement named "game_start".


Back: Advertising and Analytics
Next: ads_set_reward_callback
© Copyright YoYo Games Ltd. 2018 All Rights Reserved