Flurry
Events Products Customers Blog My Apps
Sign In
  • English (U.S.)
  • 中文(香港)
  • 中文(台灣)
  • Flurry
  • Tumblr
  • Forums
  • Stack Overflow
  • YDN Apps
  • Flurry Apps
  • Search SDK Apps
  • My Apps
  • Flurry
  • Documentation

    • Integrate Flurry
      • Android
      • iOS
      • tvOS
      • watchOS
    • Analytics
      • GDPR
        • Summary
        • DSRs
        • Privacy Dashboard
      • Android
        • Custom Events
        • Revenue Analytics
        • Crash Analytics
        • Advanced Features
      • iOS
        • Custom Events
        • Revenue Analytics
        • Crash Analytics
        • Advanced Features
      • tvOS
        • Custom Events
      • Reporting
        • Context
        • Breakouts
        • Features
        • Analysis Types & Definitions
        • Data Analytics & Usage
        • Real-Time Metrics
        • Events for Flurry Analytics
        • Revenue Analytics
        • Alerts
        • Video Tutorials
      • Explorer
        • Overview
        • Get Started
        • Measures
        • Funnels
        • Retention
        • User Path
        • User Segments
        • User Journeys **NEW**
        • FAQs
        • Feedback
      • Crash Analytics
      • Raw Data Download
    • Monetization
      • GDPR
      • Android
        • Android Ad Monetization
        • Native Ads
        • Interstitial Ads
        • Banner Ads
        • Configure Ad serving (Optional)
      • iOS
        • iOS Ad Monetization
        • Native Ads
        • Interstitial Ads
        • Banner Ads
        • Configure Ad Serving (Optional)
      • Web
        • Native Web Overview
        • Creating Websites and Ad Units
        • AdBuilder
        • Ad Tags and Testing
        • Example Templates
        • Troubleshooting
      • Ad Setup
        • Basic Ad Unit Setup
        • Native
        • Fullscreen Video
        • Rewarded Ads
        • Banners
        • Advanced Configuration
      • Reporting
      • Mediating Yahoo App Publishing
    • Reporting APIs
      • Analytics Reporting API
      • Monetization Reporting API
    • How-Tos
      • Integrate video ads
      • Serve native ads
    • Resources
      • API Reference
      • FAQs
        • General Questions
        • Analytics
        • APIs
        • Events
        • iOS Advertising Identifier
        • Monetization General
        • Monetization Android
        • Monetization iOS
        • Explorer
        • UAA
      • Sample Apps
      • Lexicon
      • Video Tutorials
      • Release Notes for Flurry
  • Sign In
  • Language:
    • English (U.S.)
    • 中文(香港)
    • 中文(台灣)

Banner Ads¶

Flurry ad units represent unique placements in the app. If your app supports multiple ad placements, you’ll need to create multiple ad units.

Use Flurry Analytics to determine the places in your app that have the highest user traffic and session times. Typically, good placements include the top of screen or a fixed location on the bottom of the screen showing the Activity with the highest user traffic.

How To Serve Banner Ads¶

  1. To serve banner ads, you can create an instance of the FlurryAdBanner object, and call its method fetchAndDisplayAd(), enabling the SDK to present the ad as soon as it is available.

Alternatively, you can fetch banners asynchronously when the Activity is started and display it as soon as the banners are made available by the SDK in the FlurryAdBannerListener’s onFetched(adBanner)` call.

For details on using FlurryAgent.onStartSession(), see Get Started With Android.

These are the parameters when using FlurryAdBanner:

  • Context context - Flurry advises using the current Activity.
  • String adSpace - Unique name of your ad placement defined on the Flurry website.
  • ViewGroup viewSpace - ViewGroup inside the Context that you want the ad to reside in. Flurry suggests using a RelativeLayout.
  • FlurryAdErrorType adErrorType - Ad error types.

  1. To be notified of certain events during the full lifecycle of the Ad, implement the FlurryAdBannerListener interface and then call the setListener method to attach your implementation of FlurryAdBannerListener to the Flurry SDK. You will need to implement the following callback methods:

A banner’s position on the screen is, by default, on the top or the bottom of the screen. The suggested RelativeLayout defined in your layout for the activity determines its actual location. You can use it to place the banner in the non-standard top or bottom position.

Once displayed, the banners are refreshed every 30 seconds until the adBanner.destroy is called. The default 30 seconds refresh can be changed on the dev portal. For more information, see the Ad Refresh section in Advanced Settings.

  1. Run the app and observe how Flurry ads are fetched and displayed.

If you are not seeing any ads, check the troubleshooting section in FAQs for Android.

phone banner

Learn More¶

For detailed information on the Java classes and methods available in the SDK, check out the API Reference documentation for Android.


Was this document helpful?
  • Products
  • Blog
  • My Apps
  • Jobs
  • Privacy (Updated)
  • Terms
  • Policies
  • Forums
  • Suggestions
Download the Flurry Mobile App
Download
Flurry Mobile App
Feedback