Note: For Banner Ads, please ensure that you have turned off the refresh from the mediation partner’s web interface when using a fresh integration of VMAX SDK 3.4.0 or higher. This change in settings is not required when updating from an earlier version to 3.4.0 or higher.
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 17 18 19 20 21 |
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.wp8.VMAXAdView.AdFailedEventArgs e) { } |