AdTech Basics in Android Development
What is AdTech on Android?
AdTech delivers targeted ads within apps, especially video players. In Android, it powers monetization via SDKs that stitch ads into content without disrupting playback. Key types include client-side Ad Insertion (CSAI) and server-side ad insertion (SSAI), where SSAI like Google IMA or AWS MediaTailor hides ad breaks server-side for smoother UX.
Core Components
ExoPlayer: Default for video; handles DASH/HLS manifests with ad markers.
IMA SDK: Google's tool for DAI; loads ads dynamically into streams.
MediaTailor: AWS SSAI; returns stitched manifests plus tracking JSON for ad events.
Example: In our organisation, we use ExoPlayer + IMA for live events, parsing DAI URLs to fetch ad-stitched MPD manifests.
Common Challenge: Video Start Time (VST)
Oppo/Xiaomi devices hit 20s VST in Spain due to ROM-specific decoder latency vs. 10s on Pixel/Samsung. Fix: Tune LoadControl buffers (min 2500ms, target 1MB) and preload ads.
kotlin
val loadControl = DefaultLoadControl.Builder() .setBufferDurationsMs(2500, 10000, 1000, 2000) .setTargetBufferBytes(1024 * 1024) .build() player = SimpleExoPlayer.Builder(context).setLoadControl(loadControl).build()
Next Steps for Devs
Start with Android's ad insertion guide. Experiment in a demo app—track ad start/end via MediaTailor JSON avails. Share your SSAI war stories in comments!
About the author
- Senior Mobile app developer specializing in OTT and AdTech | Android, Java, Kotlin, Flutter
Comments
Join the discussionNo comments yet. Be the first to comment.


