Exemplo n.º 1
0
 public DefaultAdNetworks(BannerAdNetwork banner, InterstitialAdNetwork interstitial, RewardedAdNetwork rewarded, RewardedInterstitialAdNetwork rewardedInterstitial)
 {
     bannerAdNetwork             = banner;
     interstitialAdNetwork       = interstitial;
     rewardedAdNetwork           = rewarded;
     rewardedInterstitialNetwork = rewardedInterstitial;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Destroys the banner ad of the specified ad network at the specified placement.
 /// </summary>
 /// <param name="adNetwork">Ad network.</param>
 /// <param name="placement">Placement. Pass <c>AdPlacement.Default</c> to specify the default placement.</param>
 public static void DestroyBannerAd(BannerAdNetwork adNetwork, AdPlacement placement)
 {
     DestroyBannerAd(GetWorkableAdClient((AdNetwork)adNetwork), placement);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Shows the banner ad with the specified parameters.
 /// </summary>
 /// <param name="adNetwork">Ad network.</param>
 /// <param name="placement">Placement.</param>
 /// <param name="position">Position.</param>
 /// <param name="size">Size.</param>
 public static void ShowBannerAd(BannerAdNetwork adNetwork, AdPlacement placement, BannerAdPosition position, BannerAdSize size)
 {
     ShowBannerAd(GetWorkableAdClient((AdNetwork)adNetwork), placement, position, size);
 }
Exemplo n.º 4
0
 public override void Reset()
 {
     destroyDefaultBannerAd = true;
     adNetwork = BannerAdNetwork.None;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Destroys the banner ad of the specified ad network.
 /// </summary>
 /// <param name="adNetwork">Ad network.</param>
 public static void DestroyBannerAd(BannerAdNetwork adNetwork)
 {
     DestroyBannerAd(SelectAdClient((AdNetwork)adNetwork));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Hides banner ad of the specified ad network if one is shown, otherwise this method is a no-op.
 /// </summary>
 /// <param name="adNetwork">Ad network.</param>
 public static void HideBannerAd(BannerAdNetwork adNetwork)
 {
     HideBannerAd(SelectAdClient((AdNetwork)adNetwork));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Shows a banner ad of the specified ad network at the specified position and size.
 /// </summary>
 /// <param name="adNetwork">Ad network.</param>
 /// <param name="position">Position.</param>
 /// <param name="size">Ad size, applicable for AdMob banner only.</param>
 public static void ShowBannerAd(BannerAdNetwork adNetwork, BannerAdPosition position, BannerAdSize size)
 {
     ShowBannerAd(SelectAdClient((AdNetwork)adNetwork), position, size);
 }