Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Testing Unity Ads Mediation

Discussion in 'Unity Mediation' started by makaqo, Sep 23, 2022.

  1. makaqo

    makaqo

    Joined:
    Sep 16, 2015
    Posts:
    22
    I'm testing mediation in one of my games on android I had no problems, but for iOS it's impossible to make it work
    Code (Swift):
    1. let rewardedAd = UMSRewardedAd(adUnitId: IUnity.MoneyID)
    2.            rewardedAd.load(with: self)
    does not throw the error event instead I just get this message:

    Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

    what could solve this?
     
  2. makaqo

    makaqo

    Joined:
    Sep 16, 2015
    Posts:
    22
    I only know that unity mediacion does not work on swift.
    have any of you had success with other mediations like applovin's Max?
     
  3. makaqo

    makaqo

    Joined:
    Sep 16, 2015
    Posts:
    22
    I have solved my problem, it was an implementation mistake of mine, you have to declare a variable instead of assigning a value, example:
    Code (swift):
    1. class IUnity:NSObject, UMSInitializationDelegate, UMSInterstitialAdLoadDelegate, UMSInterstitialAdShowDelegate, UMSRewardedAdLoadDelegate, UMSRewardedAdShowDelegate{
    2.    
    3.      
    4.     static let AppID:String = "XXXX"
    5.     static let FullID:String = "video"
    6.     static let MoneyID:String = "iOS_Rewarded"
    7.  
    8.  
    9.  
    10.     var general:AdsGeneral?
    11.     var isNew:Bool?
    12.     var rewardedAd:UMSRewardedAd?
    13.  [  var interstitialAd:UMSInterstitialAd?
    14.  
    15.  
    16. ..........
    17.  
    18.         interstitialAd = UMSInterstitialAd(adUnitId: IUnity.FullID)
    19.         interstitialAd!.load(with: self)
     
    DeclanMcPartlin likes this.