Ejemplo n.º 1
0
        private static void nativeBannerAdDidFailWithErrorBridgeCallback(int uniqueId, string error)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container && container.onError != null)
            {
                container.onError(error);
            }
        }
Ejemplo n.º 2
0
        private static void nativeBannerAdDidDownloadMediaBridgeCallback(int uniqueId)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container && container.onMediaDownload != null)
            {
                container.onMediaDownload();
            }
        }
Ejemplo n.º 3
0
        private static void nativeBannerAdDidFinishHandlingClickBridgeCallback(int uniqueId)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container && container.onFinishedClick != null)
            {
                container.onFinishedClick();
            }
        }
Ejemplo n.º 4
0
        public override void OnMediaDownloaded(int uniqueId, FBNativeAdBridgeCallback callback)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container)
            {
                container.onMediaDownload = callback;
            }
        }
Ejemplo n.º 5
0
        private static void nativeBannerAdWillLogImpressionmpressionBridgeCallback(int uniqueId)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container && container.onImpression != null)
            {
                container.onImpression();
            }
        }
Ejemplo n.º 6
0
        public override void OnFinishedClick(int uniqueId,
                                             FBNativeAdBridgeCallback callback)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container)
            {
                container.onFinishedClick = callback;
            }
        }
Ejemplo n.º 7
0
        public override void OnError(int uniqueId,
                                     FBNativeAdBridgeErrorCallback callback)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container)
            {
                container.onError = callback;
            }
        }
Ejemplo n.º 8
0
        public override void OnImpression(int uniqueId,
                                          FBNativeAdBridgeCallback callback)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container)
            {
                container.onImpression = callback;
            }
        }
Ejemplo n.º 9
0
        // Sets up internal managed callbacks

        public override void OnLoad(int uniqueId,
                                    FBNativeAdBridgeCallback callback)
        {
            NativeAdContainer container = NativeBannerAdBridgeIOS.nativeBannerAdContainerForNativeBannerAdId(uniqueId);

            if (container)
            {
                container.onLoad = (delegate() {
                    container.nativeAd.loadAdFromData();
                });
            }
        }
Ejemplo n.º 10
0
        public override int Create(string placementId, NativeAdBase nativeBannerAd)
        {
            int uniqueId = NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeCreate(placementId);

            NativeBannerAdBridgeIOS.nativeBannerAds.Add(uniqueId, new NativeAdContainer(nativeBannerAd));
            NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeOnLoad(uniqueId, nativeBannerAdDidLoadBridgeCallback);
            NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeOnImpression(uniqueId, nativeBannerAdWillLogImpressionmpressionBridgeCallback);
            NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeOnClick(uniqueId, nativeBannerAdDidClickBridgeCallback);
            NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeOnError(uniqueId, nativeBannerAdDidFailWithErrorBridgeCallback);
            NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeOnFinishedClick(uniqueId, nativeBannerAdDidFinishHandlingClickBridgeCallback);
            NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeOnMediaDownloaded(uniqueId, nativeBannerAdDidDownloadMediaBridgeCallback);

            return(uniqueId);
        }
Ejemplo n.º 11
0
 public override void Release(int uniqueId)
 {
     NativeBannerAdBridgeIOS.nativeBannerAds.Remove(uniqueId);
     NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeRelease(uniqueId);
 }
Ejemplo n.º 12
0
 public override string GetAdChoicesLinkURL(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetAdChoicesLinkURL(uniqueId));
 }
Ejemplo n.º 13
0
 public override int Load(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeLoad(uniqueId));
 }
Ejemplo n.º 14
0
 public override string GetBody(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetBody(uniqueId));
 }
Ejemplo n.º 15
0
 public override string GetPromotedTranslation(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetPromotedTranslation(uniqueId));
 }
Ejemplo n.º 16
0
 public override string GetLinkDescription(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetLinkDescription(uniqueId));
 }
Ejemplo n.º 17
0
 public override string GetAdvertiserName(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetAdvertiserName(uniqueId));
 }
Ejemplo n.º 18
0
 public override bool IsValid(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeIsValid(uniqueId));
 }
Ejemplo n.º 19
0
 public override int RegisterGameObjectsForInteraction(int uniqueId, Rect mediaViewRect, Rect iconViewRect, Rect ctaViewRect)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeRegisterViewsForInteraction(uniqueId,
                                                                                      (int)iconViewRect.x, (int)iconViewRect.y, (int)iconViewRect.width, (int)iconViewRect.height,
                                                                                      (int)ctaViewRect.x, (int)ctaViewRect.y, (int)ctaViewRect.width, (int)ctaViewRect.height));
 }
Ejemplo n.º 20
0
 public override string GetCallToAction(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetCallToAction(uniqueId));
 }
Ejemplo n.º 21
0
 public override void SetExtraHints(int uniqueId, ExtraHints extraHints)
 {
     NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeSetExtraHints(uniqueId, JsonUtility.ToJson(extraHints));
 }
Ejemplo n.º 22
0
 public override string GetSocialContext(int uniqueId)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeGetSocialContext(uniqueId));
 }
Ejemplo n.º 23
0
 public override int Load(int uniqueId, string bidPayload)
 {
     return(NativeBannerAdBridgeIOS.FBNativeBannerAdBridgeLoadWithBidPayload(uniqueId, bidPayload));
 }