Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

292
Views
El banner de Unity Admob de repente se vuelve más grande con un video en la parte inferior

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.

Talla normal Después del tamaño del video cargado
Tamaño normal (se espera que permanezca así) Video de ingenio de tamaño más grande

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.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

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

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!