Implementing banner advertising in a mobile application

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Implementing banner advertising in a mobile application
Simple
from 1 business day to 3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Banner Ad Implementation in Mobile Application

Banner is simplest format by integration, but with most UX errors in production. Typical picture: banner jumps when loading and shifts content, size is fixed 320×50 (which Google already considers obsolete), on tablet — tiny stripe in middle of wide screen. All solved by correct size choice and layout management at integration stage, not after review.

Adaptive Banner Instead of Fixed

Google AdMob since version 19.x recommends adaptive banner instead of BANNER (320×50) and LEADERBOARD (728×90). Adaptive banner gets container width and selects optimal height itself:

// Android
val adSize = AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(context, adContainerWidth)
adView.setAdSize(adSize)
// iOS
let viewWidth = view.frame.inset(by: view.safeAreaInsets).width
let adaptiveSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSize(forWidth: viewWidth)
bannerView.adSize = adaptiveSize

Adaptive banner height — from 50 to 90 dp depending on width. This is important for layout: can't hardcode layout_height="50dp" — banner either gets cut or leaves empty space. Correct approach — listen to onAdLoaded and set height programmatically via adView.adSize.getHeightInPixels(context).

Content Jump Problem

Most annoying error with banner ads — when on banner load screen content shifts down. Google downgrades app rating for this. Solution: reserve space for banner before it loads.

On Android: container FrameLayout with fixed height wrap_content and initial visibility="invisible". After onAdLoadedView.VISIBLE. Content doesn't jump, space already reserved.

On iOS with autolayout: add NSLayoutConstraint for banner height with initial value 0, update constraint after load via UIView.animate.

Sticky Banner at Screen Bottom

Most popular placement — fixed banner over tab bar or navigation bar. Nuance: on iPhone with Dynamic Island or notch account for safeAreaInsets.bottom. Banner covering home indicator, Apple rejects on review — seen several such cases.

bannerView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
    bannerView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
    bannerView.centerXAnchor.constraint(equalTo: view.centerXAnchor)
])

Update and Lifecycle

Banner must stop when app goes to background (onPause / applicationWillResignActive) and resume on return. Without this possible IllegalStateException on Android when trying to load new ad in inactive Activity.

Auto-refresh (60 sec default in AdMob) can be configured in console, not via SDK — this restriction is intentional. If different frequency needed — use AdView.pause() / resume() combined with manual timer.

Timelines for banner ad integration — 1–2 days including testing on different devices and screen sizes.