Buildbox 3 Beta Ios: Integrated Banner And Interstitial Ads (heyzap) With Custom Options

Discussion in 'Buildbox 3.0' started by particles, Oct 16, 2018.

  1. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    Yes it has been placed on custom just on gameover UI and integration is same as you said and mentioned :(
     
  2. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    @particles , yes now the ads are appearing :) thanks mate
     
  3. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Happy to know, it works.
     
  4. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    :)
     
  5. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    hey guys I added the heyzap framework but still getting
    HeyzapAds/HeyzapAds.h' file not found
    ??
    thanks
     
  6. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    It's a basic issue. Check you added HeyZap Library properly in Xcode. Make sure you followed all steps from Buildbox's official video on HeyZap Integration.
     
    Last edited: Oct 18, 2018
  7. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    16
    Thanks @particles I appreciate the effort you took out to help.
    Just one question, I want MoPub mediation in my games so will following the steps mentioned in (http://help.buildbox.com/advertising-and-sdks/using-the-3rd-party-api-mopub-example) integrate the ads in BB3 developed games ?
    Also one more question is there any workaround for the Rewarded Video / Second Chance Button because restart checkpoint option is not available in BB3 Beta 3 and if there is any how to integrate rewarded video ads?
     
  8. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Yes. Everything is similar. You can follow MoPub's direct step for integrating into the iOS project. We can't able to integrate reward videos with a second chance button for now.
     
  9. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    @particles thanks for all the info, got it working well the banner, no interstitial showing
    also how do I remove the debug screen that comes up, confused on how to comment that out.

    thanks

    [PTPlayer] - [PTPObjectEventObserver] Got Game OVER in observer

    [PTPlayer] - Screen On Exit: UI

    [PTPlayer] - [Screen 0Screen 1Screen 2] banner: kCustom interstitial: kCustom

    2018-10-18 14:12:37.177076-0400 BBPlayer[13548:3367514] [Ads] show banner

    2018-10-18 14:12:37.177133-0400 BBPlayer[13548:3367514] [Ads] show interstitial

    2018-10-18 14:12:37.177315-0400 BBPlayer[13548:3367514] [Heyzap 9.50.0] Error showing ad = Error Domain=HeyzapMediation Code=39 "This tag and type need to be fetched before they can be shown." UserInfo={NSLocalizedDescription=This tag and type need to be fetched before they can be shown.}

    [PTPlayer] - Screen On Enter: Game Over
     

    Attached Files:

  10. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Check AdIntegrator.mm & AppDelegate.m and Comment below line to hide debug screen
    //HeyzapAds presentMediationDebugViewController];
     
  11. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    Awesome thanks it worked

    Still can't get the interstitial to load, it says that it must be fetched, could it be because my Xcode project does not have a file called AppController.mm as stated in the video??
    I used GameViewController.mm to insert what was supposed to co in AppController.mm

    thanks guys for the help Screen Shot 2018-10-19 at 11.23.10 AM.png Screen Shot 2018-10-19 at 11.24.04 AM.png Screen Shot 2018-10-19 at 11.23.30 AM.png
     
  12. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    There is no app controller. Keep HeyZap Code in one class (AdIntegrator.mm) is easier. And remove initialization code in GameViewController.mm

    Try by adding [HZVideoAd fetch] at initAds in AdIntegrator.mm

    - (void)initAds{
    NSLog(@"[Ads] initialization");
    //2. Enter Publisher Id
    [HeyzapAds startWithPublisherID: @"XXXXXXXXX"];
    // As early as possible after starting the SDK, call fetch
    [HZVideoAd fetch]
    // comment/uncomment below for HeyzapAds Debug View
    // [HeyzapAds presentMediationDebugViewController];
    }

    Note: The above solution is only for Video Ads. But Interstitial Ads loads automatically. You may be done something wrong in the code that I can't able to see.
     
    Last edited: Oct 19, 2018
    tonymartz2 likes this.
  13. tonymartz2

    tonymartz2 Avid Boxer

    Joined:
    Jun 9, 2016
    Messages:
    198
    Likes Received:
    46
    It worked!!!! Thanks, greatly appriciated. I added “[HZVideoAd fetch”
     
  14. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Good to Know. Most of them want to make some money through Ads. I am happy to help.
     
    bmsingha likes this.
  15. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    Hi, all most developers are using not ad frequency, for example timing they are showing ads every 30 sec or every 50sec can we do that with new ad integrator?
     
  16. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    You can add a timer in Xcode level to show ad by an interval.
     
  17. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    thanks, can u give me eny tutorial how can i do that?? and for activate timer what frequency I must add in BB3 0 or 1?
     
  18. Logan242

    Logan242 Avid Boxer

    Joined:
    Sep 28, 2018
    Messages:
    106
    Likes Received:
    15
    Hi, @particles I know you are busy, but I am just wondering if you would be interested in exporting my game in which I will pay you for the service because I am kinda on a tight schedule right now. If not I totally understand and will just wait for your tutorial:)
     
  19. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    What do you by exporting? Do you mean exporting the BBDoc?
     
  20. Logan242

    Logan242 Avid Boxer

    Joined:
    Sep 28, 2018
    Messages:
    106
    Likes Received:
    15
    Sorry for the confusion @Tekanology I meant exporting for Android and getting it through whatever program is needed.
     

Share This Page