Heyzap Mediation Sdk 10 - Ios [tutorial]

Discussion in 'Advertising' started by Christoph, Dec 12, 2016.

  1. Brocky120

    Brocky120 Avid Boxer

    Joined:
    May 2, 2016
    Messages:
    127
    Likes Received:
    27
    Just done 2.2.7 with SDK 9 and only put my Heyzap Ads in, worked perfect, put the rest in (Unity, AdColony, AppLovin, Chartboost and Vungle) and it crashes, will do them 1 by one now.

    I will also try the 2.2.7 export merged into a 2.2.9 export. I did try this but to no avail, will try again. Thanks @Andy, appreciated!
     
  2. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Make sure you have the correct 3rd party SDKs. They are not the same for SDK 9 and SDK 10. You also need to download them from the HeyZap site.
     
  3. Brocky120

    Brocky120 Avid Boxer

    Joined:
    May 2, 2016
    Messages:
    127
    Likes Received:
    27
    Yes I used the integration wizard and selected my SDK's. Every once in a while I get a crash. Doesn't seem to be related to any particular SDK. Not sure if this helps. The debug always takes me to the main.m file however, something to do with this:

    int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
    [pool release];


    Here is the Log:


    2017-06-07 20:25:09.250 PZPlayer[4037:1402665] ------- banner did requested saccessfully: <HZBannerAd: 0x7fc9627154d0, mediatedNetwork: heyzap_exchange, mediatedBanner: <HZHeyzapExchangeBannerWrapperView: 0x7fc95cb5b490; frame = (0 0; 375 50); layer = <CALayer: 0x600000423120>>> ()

    2017-06-07 20:25:09.251 PZPlayer[4037:1402665] ------- {{0, 0}, {375, 50}}

    2017-06-07 20:25:09.251 PZPlayer[4037:1402665] showing heyzap banner

    layout

    2017-06-07 20:25:09.252 PZPlayer[4037:1402665] cocos2d: surface size: 750x1334

    2017-06-07 20:25:09.753864+0100 PZPlayer[4037:1402775] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0

    2017-06-07 20:25:11.762346+0100 PZPlayer[4037:1402775] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0

    2017-06-07 20:25:12.473 PZPlayer[4037:1402665] [ Heyzap 9.6.5 ] Chartboost: Failed to load incentivized, no ad found !

    2017-06-07 20:25:13.269 PZPlayer[4037:1402665] [ Heyzap 9.6.5 ] Not waiting for Chartboost to fetch because it errored during a fetch for creativeType:INCENTIVIZED. Error: Error Domain=HeyzapMediation Code=1 "(null)" UserInfo={MediatorName=Chartboost}

    2017-06-07 20:25:13.286 PZPlayer[4037:1402665] +[UnityAds sharedInstance]: unrecognized selector sent to class 0x108415170

    2017-06-07 20:25:13.289 PZPlayer[4037:1402665] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UnityAds sharedInstance]: unrecognized selector sent to class 0x108415170'

    *** First throw call stack:

    (

    0 CoreFoundation 0x000000010e8c6b0b __exceptionPreprocess + 171

    1 libobjc.A.dylib 0x000000010e32b141 objc_exception_throw + 48

    2 CoreFoundation 0x000000010e936074 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132

    3 CoreFoundation 0x000000010e84d840 ___forwarding___ + 1024

    4 CoreFoundation 0x000000010e84d3b8 _CF_forwarding_prep_0 + 120

    5 PZPlayer 0x0000000107c5c145 -[HZUnityAdsAdapter toggleLogging] + 37

    6 PZPlayer 0x0000000107c5c248 -[HZUnityAdsAdapter internalInitializeSDK] + 79

    7 PZPlayer 0x0000000107ce7cf0 __30-[HZBaseAdapter initializeSDK]_block_invoke + 34

    8 PZPlayer 0x0000000107c4276b hzEnsureMainQueue + 318

    9 PZPlayer 0x0000000107ce7c4c -[HZBaseAdapter initializeSDK] + 152

    10 PZPlayer 0x0000000107ca50f8 __37-[HeyzapMediation setupAdapterNamed:]_block_invoke + 449

    11 libdispatch.dylib 0x0000000110ce705c _dispatch_client_callout + 8

    12 libdispatch.dylib 0x0000000110cc4a38 _dispatch_sync_function_invoke + 337

    13 libdispatch.dylib 0x0000000110ce705c _dispatch_client_callout + 8

    14 libdispatch.dylib 0x0000000110cca0f8 _dispatch_barrier_sync_f_slow_invoke + 579

    15 libdispatch.dylib 0x0000000110ce705c _dispatch_client_callout + 8

    16 libdispatch.dylib 0x0000000110cc840b _dispatch_main_queue_callback_4CF + 411

    17 CoreFoundation 0x000000010e88b909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

    18 CoreFoundation 0x000000010e851ae4 __CFRunLoopRun + 2164

    19 CoreFoundation 0x000000010e851016 CFRunLoopRunSpecific + 406

    20 GraphicsServices 0x0000000110155a24 GSEventRunModal + 62

    21 UIKit 0x000000010c165134 UIApplicationMain + 159

    22 PZPlayer 0x0000000107c2e084 main + 100

    23 libdyld.dylib 0x0000000110d3365d start + 1

    )

    libc++abi.dylib: terminating with uncaught exception of type NSException
     
  4. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    At first glance, it looks like something related to using UnityAds.
     
  5. adrian_pavel

    adrian_pavel Boxer

    Joined:
    Apr 7, 2017
    Messages:
    24
    Likes Received:
    12
    @Broky
    Hello, did you manage to fix your issues? I have the same problems.
     
  6. Brocky120

    Brocky120 Avid Boxer

    Joined:
    May 2, 2016
    Messages:
    127
    Likes Received:
    27
    I removed Unity and AdColony, there were causing big headaches, even with SDK 9. I have it working with 2.2.9 and Heyzap SDK 9 too.
     
  7. adrian_pavel

    adrian_pavel Boxer

    Joined:
    Apr 7, 2017
    Messages:
    24
    Likes Received:
    12
    Thank you for your reply! Apparently this is the simplest, maybe only, solution right now.
     
  8. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    796
    Likes Received:
    393
    It was about time!! I made it work finally!! I can't thank you enough @Christoph @Andy I missed one simple point and that is why I was struggling with it. I was including other ad networks inside buildbox also with heyzap but simply Heyzap doesn't seem to like it ad neither Xcode. So when I took out everything everything worked like snap of a finger. The adnetworks I used are Chartboost, Vungle, Unity, and Admob. Let's see how it will work out! Thank you once again @Christoph for this great tutorial. By the way even tough watched some videos I don't seem to see any impressions on my Heyzap dashboard. Does it take some time for data to show up? Thankx
     
    Last edited: Jun 21, 2017
  9. jt16

    jt16 Boxer

    Joined:
    Jul 14, 2016
    Messages:
    7
    Likes Received:
    0
    Getting 11 errors after updating to Buildbox 2.2.9
     

    Attached Files:

  10. usman911

    usman911 Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    16
    Did you put the framework into the project and select "copy items if needed" ?
     
    Christoph likes this.
  11. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Hey guys, if you have problems, first check if you are using the correct version. Buildbox 2.2.9 uses again SDK 9, so follow the other tutorial instead.
     
    volcank likes this.
  12. Hiro

    Hiro Boxer

    Joined:
    Jun 12, 2016
    Messages:
    22
    Likes Received:
    0
    Hey guys so everything goes smoothly, until i try to bring up the test suit. Instead of opening the meditation window, it just brings up the game? Please advise as my game is waiting on this!
    Thanks and good luck to everyone!
    I am using BB 2.2.8 and SDK 9 as 10 can't be found on heyzap.
    if i try to delete all sdk 10 files it gives me errors and i can't build if i dont and just add sdk 9 to frameworks it works but no meditation window
     
    Last edited: Aug 11, 2017
  13. codybonnett

    codybonnett Boxer

    Joined:
    Jun 17, 2016
    Messages:
    32
    Likes Received:
    5
    Running into the exact same error. I'm wondering if it is the Heyzap SDK? Did you ever figure out a solution?
     
  14. spacerain

    spacerain Boxer

    Joined:
    Dec 4, 2016
    Messages:
    42
    Likes Received:
    6
    Since there are so many ad networks you can include in your project, does that mean you'll be getting a fill rate of close to 100%? I know AdMob, for example, can only include so many ads in one game, usually capping at about 50% fill rate but would including all those other ad networks make up for the rest of it?
     
  15. Triton_

    Triton_ Boxer

    Joined:
    Jun 6, 2017
    Messages:
    30
    Likes Received:
    7
    Hmm, I seem to be having an issue. I installed everything which to me seems correct, but for some reason when I launch the app on my iPhone with xCode Admob says it has the SDK available, but the SDK does not have necessary credentials and the network is not enabled on the dashboard. I have setup Admob and integrated it on HeyZap, as well as linked all of the ad and game IDS. I am stumped and have been trying to figure out how to do this mediation stuff for hours now.
     
  16. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I spend days if not weeks to figure it out. So if you are spending only hours you are good to go. :)
    When it says necessary credentials are missing and/or network is not enabled then you can be pretty sure you did something wrong with the credentials or are not logged in to Google from within the Heyzap dashboard.

    I'm not sure about that but I don't think that ad networks wouldn't try always to fill the rate. They earn money with your ads, tons of it. So they are interested as well that the fill rate is high. But yeah, IF you can't fill it with one, it definitely is always better to have a second ad network running. One of the many great things why you should mediate in the first place.
     
    spacerain likes this.
  17. Triton_

    Triton_ Boxer

    Joined:
    Jun 6, 2017
    Messages:
    30
    Likes Received:
    7
    Thats odd, I am using the same emails for both HeyZap and Abmob, as well as granted access in the HeyZap Admob integration page. I attached a picture of what I am getting when I launch the app in Xcode, and a screenshot showing the reporting status of both.

    In the mediation test suite, HeyZap says it has been integrated successfully, but no ads are showing up in the Xcode simulator either. I have set banner and interstitial ads to HeyZap in the BuildBox mind map for my Game UI, Gameover UI and Main Menu UI before I exported.

    fullsizeoutput_3.jpeg Screen Shot 2017-08-22 at 9.06.53 PM.png
     
  18. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Hard to say. I would have to take a look myself to be able to help more. Double check the App Specific/Mediation Settings from the left side panel. Sorry if I couldn't be more helpful.
     
  19. Triton_

    Triton_ Boxer

    Joined:
    Jun 6, 2017
    Messages:
    30
    Likes Received:
    7
    No problem, looks like no one else is having this problem so it may be hard to diagnose.
    It might be the versions of Buildbox and the SDKs I am using.

    Would I be better off implementing Admob ads without HeyZap mediation, is that even possible?
     
    volcank likes this.
  20. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    If you use only admob yes. Definitely better. Don't bother with Heyzap unless you have video rewards and or want to mediate between different ad networks. @volcank had problems as well with admob and Heyzap, not sure if he already resolved it.
     
    volcank likes this.

Share This Page