ads_event_preload

Preload a PlayHaven ad placement, ready to be shown.

Syntax:

GML Code Example

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:

GML Code Example

ads_event_preload("game_start");

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here