Pfap
Member
I added smart banners to the admob extension and it wasn't showing up, but I'm getting this debug message:
"Moving banner: 2560,1080"
the code I'm using is below
My room size is 512x288
Any ideas on what's going on here? Or how I can solve it?
show_debug_message("Add banner");
//global.bottomRight = true;
GoogleMobileAds_AddBanner(global.bannerId, GoogleMobileAds_Smart_Banner);//GoogleMobileAds_Banner
//GoogleMobileAds_
// Position it at bottom right of screen
var bw = GoogleMobileAds_BannerGetWidth();
var bh = GoogleMobileAds_BannerGetHeight();
var px = display_get_width()-bw;//+bw should position it at the left??? NMT
var py = display_get_height()-bh;
GoogleMobileAds_MoveBanner(px, py);
show_debug_message("Moving banner: " + string(px) + "," + string(py));
//Moving banner: 2560,1080
When I switch back to the GoogleMobileAds_Banner constant it works fine, but still shows the same output in the debug. So it must be some other issue.
"Moving banner: 2560,1080"
the code I'm using is below
My room size is 512x288
Any ideas on what's going on here? Or how I can solve it?
show_debug_message("Add banner");
//global.bottomRight = true;
GoogleMobileAds_AddBanner(global.bannerId, GoogleMobileAds_Smart_Banner);//GoogleMobileAds_Banner
//GoogleMobileAds_
// Position it at bottom right of screen
var bw = GoogleMobileAds_BannerGetWidth();
var bh = GoogleMobileAds_BannerGetHeight();
var px = display_get_width()-bw;//+bw should position it at the left??? NMT
var py = display_get_height()-bh;
GoogleMobileAds_MoveBanner(px, py);
show_debug_message("Moving banner: " + string(px) + "," + string(py));
//Moving banner: 2560,1080
When I switch back to the GoogleMobileAds_Banner constant it works fine, but still shows the same output in the debug. So it must be some other issue.
Last edited: