[Paid] AdMob Extension

[Paid] AdMob Extension — Native Ads + Rewarded/Interstitial/App Open, Multi-Ad Support (com.zebdroid.admobx)

Author: Zuhaib

What it does

AdMobX (v21) is a single AdMob wrapper component covering five ad formats: Native Ads (full card + compact horizontal banner), Rewarded Interstitial, plain Interstitial, plain Rewarded, and App Open.

Why it's different

Every format supports multiple simultaneous ads, each keyed by your own String adId (e.g. "slot_1", "post_upload", "level_complete") — one ad finishing, failing, or being destroyed never touches another adId's state.

Native ads render as a fully themeable card: SetCardColors(backgroundColor, textColor, accentColor) takes 3 hex colors, and subtitle/faint-label/CTA-text/accent-shadow tones are auto-derived for contrast. ResetCardColors() reverts to the default palette.

Blocks / API

Setup

  • SetNativeAdUnitId, SetRewardedInterstitialAdUnitId, SetInterstitialAdUnitId, SetRewardedAdUnitId, SetAppOpenAdUnitId

  • SetTestMode(enabled) / IsTestMode() — off by default; when on, Google's official test ad unit IDs are substituted for every format

  • SetChildDirectedTreatment(enabled) — COPPA tag

  • SetCardColors / ResetCardColors

  • SetMediaHeight(minDp, maxDp)

Native Ads

  • LoadNativeAd(adId), ShowNativeAd(adId, x, y, w, h), ShowNativeBanner(adId, x, y, w, h)

  • UpdateAdPosition(adId, x, y, w, h) — call every scroll frame; skips layout work when unchanged

  • HideNativeAd, DestroyNativeAd, DestroyAllNativeAds

  • IsNativeAdVisible, IsNativeAdBanner

  • Events: NativeAdLoaded, NativeAdFailed, NativeAdClicked, NativeAdImpression

  • SwipeDelta(deltaY, direction) — policy-safe swipe-through: NativeAdView stays the fully visible, direct child (no overlay), click/impression tracking untouched

Rewarded Interstitial / Interstitial / Rewarded (same shape ×3)

  • Load…Ad(adId), Is…AdReady(adId), Show…Ad(adId), Destroy…Ad(adId)

  • Events: …Loaded, …Failed, …Dismissed, plus …EarnedReward(adId, amount, rewardType) for the two reward formats

App Open

  • LoadAppOpenAd, IsAppOpenAdReady (4-hour freshness window), ShowAppOpenAd, DestroyAppOpenAd

  • Events: AppOpenAdLoaded, AppOpenAdFailed, AppOpenAdDismissed

Requirements

  • Min SDK: 23 (Android 6.0)

  • Compile SDK: 35

  • Dependencies: play-services-ads-api-25.4.0.jar, play-services-basement-18.9.0.jar

  • Assets: icon.png

    Price: ₹100 — to purchase, message me on WhatsApp *(9997745879)

Where is Consentform?

1 Like