Example #1
0
 public MainPage()
 {
     workspace = new Workspace();
     this.InitializeComponent();
     applyAcrylicAccent(TransGrid);
     nativeAdsManager = new NativeAdsManager(ID.AppId, ID.MainAdBannerId);
     nativeAdsManager.RequestAd();
     nativeAdsManager.AdReady       += NativeAd_OnAdReady;
     nativeAdsManager.ErrorOccurred += NativeAd_ErrorOccurred;
 }
        //</Variables>

        public MainPage()
        {
            this.InitializeComponent();

            //<ConfigureNativeAd>
            myNativeAdsManager                = new NativeAdsManager(myAppId, myAdUnitId);
            myNativeAdsManager.AdReady       += MyNativeAd_AdReady;
            myNativeAdsManager.ErrorOccurred += MyNativeAdsManager_ErrorOccurred;
            //</ConfigureNativeAd>

            //<RequestAd>
            myNativeAdsManager.RequestAd();
            //</RequestAd>
        }