Recientemente he decidido agregar banners de google admob al juego. Seguí cada paso de la guía y también agregué nuestra ID de bloque de anuncios. Entonces, todo está bien y genial, pero de repente el banner se vuelve más grande y muestra un video aproximadamente tres veces (o incluso más grande) que el tamaño del banner.
Estoy usando Unity 2020.1.13 y he probado diferentes tamaños de banner como sugerencia de guía admob (SmartBanner, AdaptiveBanner, (predeterminado pequeño) Banner,...) todo. pero sigue golpeándome en la cara cada vez. Las siguientes imágenes son del tamaño normal (que espero que permanezca) y la versión más grande que ocurre 2-3 veces de cada 10.
El código que solicita el banner es:
public void RequestBanner(string unitID) { // Clean up banner ad before creating a new one. if (this.bannerViewAd != null) { Debug.Log("|||| Prev Banner removed!"); this.bannerViewAd.Destroy(); } AdSize adaptiveSize = AdSize.GetPortraitAnchoredAdaptiveBannerAdSizeWithWidth(AdSize.FullWidth); // Create a 320x50 banner at the top of the screen. this.bannerViewAd = new BannerView(unitID, adaptiveSize, AdPosition.Bottom); // Called when an ad request has successfully loaded. this.bannerViewAd.OnAdLoaded += this.HandleOnAdLoaded; // Called when an ad request failed to load. this.bannerViewAd.OnAdFailedToLoad += this.HandleOnAdFailedToLoad; // Called when an ad is clicked. this.bannerViewAd.OnAdOpening += this.HandleOnAdOpened; // Called when the user returned from the app after an ad click. this.bannerViewAd.OnAdClosed += this.HandleOnAdClosed; // Called when the ad click caused the user to leave the application. this.bannerViewAd.OnAdLeavingApplication += this.HandleOnAdLeavingApplication; // Create an empty ad request. AdRequest adRequest = new AdRequest.Builder().Build(); // Load the banner with the request. this.bannerViewAd.LoadAd(adRequest); }en el código que está viendo adaptivesize y constantSize, probé ambos y obtuve el mismo resultado, también probé el banner inteligente y también el mismo resultado.
Hasta ahora no pude encontrar ninguna solución para esto, incluso después de contactar con el soporte de admob se negaron a responderme.
Entonces, para ustedes que usan anuncios de banner admob, parece que no deben usar banner de video