Managed Banner Ads using LoadAd()
You can request for Banner Ads that refresh automatically in a container using the LoadAd() method. The signature for this method is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
VMAXAdView adView=new VMAXAdView(); // To initialize the VMAXAdView //To set the mandatory properties and to configure the adView after initialization. adView.AdspotId = "MY_ADSPOT_ID"; // To specify the Adspot Id. Replace "MY_ADSPOT_ID" with your actual Adspot Id. adView.UX= AdUX.Banner; // To specify banner ads. adView.DidLoadAd += adView_DidLoadAd; adView.FailedToLoadAd += adView_FailedToLoadAd; adView.LoadAd(); private void adView_DidLoadAd(object sender, EventArgs e) { } private void adView_FailedToLoadAd(object sender, com.vmax.windows.ads.wp81.VMAXAdView.AdFailedEventArgs e) { } |