Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oCtrlAdd
- Create Event --
- if os_type == os_android
- {
- app_id = "ca-app-pub-4337965814269841~8766033236";
- interstitial_id = "ca-app-pub-3940256099942544/8691691433";
- banner_id = "ca-app-pub-3202039677277756/8024372905";
- }
- GoogleMobileAds_Init(interstitial_id, app_id);
- GoogleMobileAds_LoadInterstitial();
- interstitial_loaded = false;
- GoogleMobileAds_UseTestAds(true, "E3DAE5ACB5072BA36197B94E287927C9");
- //banner vars
- var _bw = GoogleMobileAds_BannerGetWidth();
- var _bh = GoogleMobileAds_BannerGetHeight();
- var _hh = display_get_height();
- var _ww = display_get_width();
- //add banner @ location
- GoogleMobileAds_AddBannerAt(banner_id,GoogleMobileAds_Banner,(_ww / 2) - (_bw / 2), _hh - _bh);
- Step Event
- if interstitial_loaded == true
- {
- interstitial_loaded = false;
- GoogleMobileAds_ShowInterstitial();
- }
- if room = room0
- {
- alarm[0] = 240;
- }
- Alarm
- /// @description Insert description here
- // You can write your code in this editor
- GoogleMobileAds_ShowBanner();
- Async
- /// @description Insert description here
- // You can write your code in this editor
- var _id = async_load[? "id"];
- if _id == GoogleMobileAds_ASyncEvent
- {
- var ident = async_load[? "type"];
- switch (ident)
- {
- case "banner_load":
- if async_load[? "loaded"] == 1
- {
- var _bw = GoogleMobileAds_BannerGetWidth();
- var _bh = GoogleMobileAds_BannerGetHeight();
- var _hh = display_get_height();
- var _ww = display_get_width();
- GoogleMobileAds_MoveBanner((_ww / 2) - (_bw / 2), _hh - _bh);
- }
- break;
- }
- }
Add Comment
Please, Sign In to add comment