This function gets the width of the currently displaying ad.


GML Code Example


Argument Description
num The advert number to display (0 - 4).

Returns: Real


With this function you can get the width of the ad box defined for the ads enabled by the ads_enable function.


GML Code Example

ads_move(display_get_gui_width() - ads_get_display_width(0), 0, 0);

The above code will set an advert to display at the top right-hand of the display.

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