Beispiel #1
0
        public void Initialize()
        {
            if (NativeAd != null)
            {
                throw new InvalidOperationException("AdAgent.Initialize() should only be called once.");
            }

            NativeAd          = new ads.NativeAd(PlacementId);
            NativeAd.Delegate = new NativeAdListener(this);
        }
Beispiel #2
0
 public void NativeAdDidFail(ads.NativeAd ad, NSError error) => Agent.OnAdFailedToLoad("Ad Loading Failed");
Beispiel #3
0
 public void NativeAdDidLoad(ads.NativeAd ad) => Agent.OnNativeAdReady(new NativeAdInfo(ad));