ads_event_preload(placement)
Argument | Description |
---|---|
placement | The PlayHaven placement name (a string) |
Returns: N/A
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.
ads_event_preload("game_start");
The above code will preload an ad from PlayHaven for the placement named "game_start".