Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    19
    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:
    19
    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:
    19
    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.
unityunity