Why I Built a 1-File Mobile Ad SDK With Zero GAID/IDFA and Zero GDPR Popups
Shipping cross-promotion banners inside indie Android, iOS, Flutter, and React Native apps without compiled binary blobs, dependency conflicts, ATT prompts, or Google UMP walls.
If all you want is to trade banner space with other indie mobile apps, you do not need a 20 MB compiled ad SDK reading advertising IDs. Every Ad-o-matic client is one readable source file using only standard platform APIs, with zero GAID/IDFA, zero cookies, zero GDPR consent walls, and a deterministic official Google Play / Apple App Store link lock.
The Real Cost of Traditional Mobile Ad SDKs
Even when a developer only wants house ads or cross-promotion, traditional ad networks bundle heavy closed-source binaries alongside strict compliance overhead:
- GDPR / UMP & ATT Friction: Showing tracking-based banners forces European users through consent walls (UMP) and iOS users through App Tracking Transparency dialogs on launch, hurting first-session retention before a user even tries your app.
- Google Play Data Safety & Apple Privacy Labels: Third-party ad SDKs typically require declaring Device or other IDs, app interaction telemetry, and third-party data sharing, even if your app itself collects nothing.
- Build & Dependency Breakage: Gradle Play Services version mismatches, CocoaPods/SPM conflicts, or Kotlin/Swift compiler upgrades break indie projects weeks after release.
- Uninspectable Binaries: Compiled
.aaror.xcframeworkblobs hide what network calls actually leave a user's device.
Side-by-Side Comparison: Traditional Ad SDKs vs. Ad-o-matic
| Attribute | Traditional Ad Networks (AdMob / Unity / Mediation) | Ad-o-matic Single-File SDK |
|---|---|---|
| Advertising ID (GAID / IDFA) | Required or collected for targeting and frequency capping | Zero — never read, requested, or transmitted |
| Cookies / Persistent User Profiles | Yes (cross-app tracking graphs) | Zero — context-only per request |
| GDPR / UMP Consent Popup | Required in EEA/UK/CH before ad fill | Not required by Ad-o-matic |
| iOS ATT Prompt | Triggered for IDFA access | Never triggered |
| External Package Dependencies | Multiple transitive Gradle / CocoaPods / npm packages | 0 third-party dependencies |
| Compiled Binary Blobs | Closed .aar / .xcframework |
1 plain-text MIT source file per framework |
| Destination URL Guardrail | Open web URLs, ad redirects, tracking hops | Locked exclusively to official Google Play / App Store URLs |
How 1 Plain-Text Source File Covers 4 Frameworks + WebView
Each file on GitHub uses only built-in networking and UI primitives from the host platform:
- Android Jetpack Compose (
HouseAdBanner.kt): Pure Kotlin usingjava.net.HttpURLConnection,org.json.JSONObject, and Jetpack Compose. No Retrofit, OkHttp, or Hilt required. - iOS SwiftUI (
HouseAdBanner.swift): Pure Swift usingURLSession, SwiftUI, and Apple's native StoreKitSKOverlaysheet so users can view and install iOS peer apps without leaving the app context. - Flutter (
HouseAdBanner.dart): Zero additions topubspec.yaml; built solely onpackage:flutter/material.dart,dart:io, anddart:convert. - React Native / Expo (
HouseAdBanner.tsx): Standard React Native primitives with zero extra native modules or CocoaPods steps. - Hybrid Mobile WebView (
ad-widget.js): For store-published Capacitor, Cordova, or WebView mobile apps (traditional browser websites are not supported yet and are marked Coming Soon after the first 50 mobile Genesis spots).
Deterministic Official Store Link Lock (Client + Server)
Security in an open cross-promo network cannot rely purely on server promises. Both the Ad-o-matic backend and every single-file client SDK validate banner targets before launching an intent or sheet:
// Allowed targets enforced by both server and client SDKs:
Android host app -> https://play.google.com/store/apps/details?id=<verifiedPackageName> (+ Play Install Referrer UTMs)
iOS host app -> https://apps.apple.com/app/id<verifiedTrackId> (rendered via native SKOverlay / App Store)
// Strictly rejected on both sides:
- External landing pages or affiliate redirectors
- URL shorteners (bit.ly, etc.)
- Direct APK/IPA file downloads
- Cross-OS swaps (Android ads in iOS apps or vice versa)Store Privacy Questionnaire Notes (Google Play & Apple App Store)
Because Ad-o-matic does not read GAID, IDFA, Android ID, contacts, location, or cross-app identifiers, adding HouseAdBanner itself introduces zero personal data collection, zero advertising-ID declarations, and zero tracking-purpose disclosures in Google Play Data Safety or Apple App Privacy manifests (assuming the rest of your own app does not collect them). You can read our complete architectural audit on the Privacy & Security Audit page.
Frequently Asked Questions
Does Ad-o-matic require a GDPR consent popup or iOS ATT prompt?
No. Ad-o-matic collects zero GAID/IDFA advertising IDs, zero device fingerprints, zero cookies, and zero behavioral user profiles. Matching uses only contextual metadata (host app audience description, OS, country/region, and time of day), so no GDPR/UMP consent popup or iOS App Tracking Transparency prompt is needed for Ad-o-matic itself.
Why distribute the SDK as 1 source file instead of a Gradle, CocoaPods, or npm package?
One plain-text source file adds zero third-party dependency conflicts and zero opaque compiled binaries (.aar or .xcframework). Both the developer and their AI coding agent can read every line in under two minutes to verify there are no hidden trackers, WebViews, or dynamic URL loaders.
How do client SDKs guarantee a banner cannot open an external website or malicious APK?
In addition to server-side validation, every client SDK parses and verifies the destination before opening it, allowing only official play.google.com/store/apps/details (Android) or apps.apple.com (iOS with native SKOverlay) store URLs. Arbitrary web links, URL shorteners, and APK links are dropped on the client.
→ View 1-Line Code Snippets for Flutter, Compose, SwiftUI & React Native