With this function you can get the height (in pixels) of the GUI as used in the Draw GUI Event.
display_get_gui_height();
Real
ads_move(0, display_get_gui_height() - ads_get_display_height(0), 0);
The above code will set an advert to display at the bottom left-hand corner of the display.