This code enables ads in your game room.


GML Code Example

ads_enable(x, y, num)

Argument Description
x The x position in the room.
y The y position in the room.
num The advert "slot" to display (0 - 4).

Returns: N/A


With this function you can display selected ads at the given position within the GUI. The "num" that you supply is the number of the advertising key that you wish to use as defined in the Global Game Settings - Advertising Tab, and will generate and advert of the size specified for that key.


GML Code Example

ads_enable(0, 0, 1);

The above code switches on ads to be displayed at the top of the GUI, on the left and it will request the add defined for key 1 in the Global game Settings tab.

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