Buildbox 3 Beta Ios: Admob Banner And Interstitial Ads Integration With Custom Options

Discussion in 'Buildbox 3.0' started by particles, Nov 15, 2018.

  1. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Hi Guys,

    Post for Interstitial and Banner Ad for HeyZap in iOS Device:
    https://www.buildbox.com/forum/inde...stitial-ads-heyzap-with-custom-options.14286/

    Post for Interstitial Ad for AdMob in Android Device:
    https://www.buildbox.com/forum/inde...b-interstitial-ads-with-custom-options.14365/

    Admob Banner and Interstitial Ads Integration

    This time Admob, how I have integrated Banner and Interstitial Ads in my ongoing BB3 game development. I am sharing my method of showing Banner and Interstitial Ads with the custom options available in BB3.

    You can try actual implementation Drone Escape (2049)
    in the AppStore at https://itunes.apple.com/SG/app/id1435059088?mt=8




    Ad Banner and Interstitial

    1. Add Ad Frequency in your GameOverUI with custom options.
    2. Add AdMob SDK in XCode by Buildbox's Official Tutorial
    3. Update Code in AdIntegrator to show Banner and Interstitial Ad.

    1. Add Ad Frequency in your GameOverUI with custom options.

    [​IMG]


    2. Add AdMob SDK in XCode by Buildbox's Official Tutorial



    3. Update Code in AdIntegrator to show Banner and Interstitial Ad.

    1. Add Ad Application ID
    2. Add Banner ID
    3. Add Interstitial ID
    4. Add Your Test Device ID https://developers.google.com/admob/ios/test-ads
    (Attached Sample AddIntegrator.mm for reference)
    [​IMG]

    A similar method is applicable to any other ad framework through Custom options.
     

    Attached Files:

    Last edited: Apr 24, 2019
  2. LBPToo

    LBPToo Avid Boxer

    Joined:
    Nov 1, 2016
    Messages:
    233
    Likes Received:
    141
    Such a huge help to so many! Thanks @particles.
     
    DanFarfan and particles like this.
  3. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
  4. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    @particles what if I want to show ads on other UI as well , like in World UI I want to show banner ads as well.
    Do we need to make any changes to the steps you have mentioned if we want to add ads in other UI's as well ?
     
  5. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    589
    Likes Received:
    228
    @particles, what if I want to have another ad framework to show in a different UI screen? For instance, Admob to show on Game Over and Chartboost to show in another UI screen? How you go about it, since it's custom.
     
  6. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    589
    Likes Received:
    228
    In world UI banner ads seems to be showing as well, even if the ad banner for that UI is set to OFF or NONE. Does anyone experiences this bug too? How to remove the ad banner from World UI in Xcode?
     
    volcank likes this.
  7. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    791
    Likes Received:
    391
    Yes I also live that issue! This slows down my game dramatically! I don't understand some banners don't affect too much but some kind of banner ads suddenly slows down the game really slow! maybe make the ad interval of other UIs to like 100 something?? lol just guessing
     
  8. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    589
    Likes Received:
    228
    Probably the game has too much going on and when add that banner at the button is the tipping point on performance
     
  9. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    589
    Likes Received:
    228
    This banner showing even if there is None setup for banners in game Ui is maybe due to the custom code we add for ads to show, it somehow overrides those options from BB
     
    volcank likes this.
  10. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    791
    Likes Received:
    391
    Yes definetly it seems to be the custom code u mean adintegrator right?
     
  11. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    791
    Likes Received:
    391
    itzonator likes this.
  12. selina

    selina Boxer

    Joined:
    Jul 3, 2019
    Messages:
    2
    Likes Received:
    0
    Hey, does anyone else have the problem that once the app is launched and officially in the app store, admob is still only showing banner test ads (on other devices than mine) while the interstitial ads work fine? Do I just have to wait a few days? Or do I need to change the code? :) Thanks so much!
     
  13. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    589
    Likes Received:
    228
    You should not have any test ads when submitting to the App Store, you can get your account in trouble. You probably have some test code in Xcode project that's causing this. Remove the test code and re-submit.

     
  14. selina

    selina Boxer

    Joined:
    Jul 3, 2019
    Messages:
    2
    Likes Received:
    0
    But why do they show up? I used my Ad Banner ID, no test code as far as i know because i just copied this code here? And my Interstitial ads are showing up fine lol
     
  15. andsy

    andsy Boxer

    Joined:
    Jan 24, 2019
    Messages:
    38
    Likes Received:
    11
    thanks @particles , everything works fine for now
     
  16. DarkSandwich

    DarkSandwich Boxer

    Joined:
    Aug 20, 2019
    Messages:
    38
    Likes Received:
    32
    Guys, so when I publish my game on the appstore I have to comment out " [HeyzapAdspresentMediationDebugViewController]; "
    But what about " static NSString *TEST_DEVICE = xxxxx " ? Do I have to comment this line of code too?

    Another thing is that, is it normal that during test ads, the ads only show once?
    I have set interstitial ads frequency to show once every 6 deaths but it only works on the first time. The 12th death doesnt show ads anymore during Test ads.
     
    Last edited: Oct 3, 2019
  17. doruk onur

    doruk onur Boxer

    Joined:
    Oct 3, 2019
    Messages:
    29
    Likes Received:
    1
    I haven't been able to show a single ad with this method. keep having Ad wasn't ready when I enter on the Game over screen
     

Share This Page