public void OnAdUnitLoadFailed(AdUnitFailedArgs args) { ArrayList instanceIds = AdManagerUnity.GetInstanceIdsByAdUnitId(args.adUnitId); foreach (String instanceId in instanceIds) { ImageTextureAdInstanceUnity instance = AdManagerUnity.GetImageTextureAdInstanceUnity(instanceId); instance.CallOnAdUnitLoadFailed(args); } }
public void OnAdUnitLoaded(System.Object context) { //AdManager.GetAdsLoaded ().Add ( ((ImageTextureAdUnit)context).GetAdUnitId() , true); ImageTextureAdUnit adUnit = (ImageTextureAdUnit)context; ArrayList instanceIds = AdManagerUnity.GetInstanceIdsByAdUnitId(adUnit.GetAdUnitId()); foreach (String instanceId in instanceIds) { ImageTextureAdInstanceUnity instance = AdManagerUnity.GetImageTextureAdInstanceUnity(instanceId); instance.SetInstance(adUnit.CreateInstance(instance.GetAdInstanceId(), instance.GetAdObject())); instance.CallOnAdUnitLoaded(); } }