Implementing Rewarded Ads 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 Rewarded Ads in a mobile application
Medium
~2-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

Rewarded Ads Implementation in Mobile Application

Rewarded is only ad format users watch voluntarily. Conversion to view where organically embedded in mechanics (extra life, bonus currency, level unlock) reaches 40–70% of button shows. No wonder eCPM for rewarded is 3–10 times higher than interstitial.

But format has specifics: fixing reward moment. If implemented incorrectly, users get rewards without watching — or don't get after honest viewing. Both destroy trust.

Where Reward Logic Breaks Exactly

Error #1: Award in onAdDismissed.

// WRONG
rewardedAd?.fullScreenContentCallback = object : FullScreenContentCallback() {
    override fun onAdDismissedFullScreenContent() {
        giveReward() // user could have closed on 3rd second
    }
}

onAdDismissedFullScreenContent fires on any close — both after full watch and button tap at start. Award needed only in onUserEarnedReward:

rewardedAd?.show(activity) { rewardItem ->
    // This callback = user watched to end
    val rewardAmount = rewardItem.amount
    val rewardType = rewardItem.type
    giveReward(rewardType, rewardAmount)
}

Error #2: Client-side verification.

Awarding right in onUserEarnedReward is normal for simple cases (add life in memory). But if reward affects server state (virtual currency, premium content) — need server verification via SSV (Server-Side Verification).

SSV flow:

  1. App requests rewarded with customData — string with userId and nonce
  2. After watch ad network (AdMob/IronSource) makes GET-request to verification endpoint
  3. Request parameters signed with ECDSA-key of network (public key obtainable from https://www.gstatic.com/admob/reward/verifier-keys.json)
  4. Your server verifies signature, awards
  5. Client gets confirmation via WebSocket or polling
// Pass userId in customData on load
val serverSideVerificationOptions = ServerSideVerificationOptions.Builder()
    .setCustomData("userId:${currentUser.id};nonce:${UUID.randomUUID()}")
    .build()
val adRequest = AdRequest.Builder().build()
RewardedAd.load(context, AD_UNIT_ID, adRequest, object : RewardedAdLoadCallback() {
    override fun onAdLoaded(ad: RewardedAd) {
        ad.setServerSideVerificationOptions(serverSideVerificationOptions)
        rewardedAd = ad
    }
})

SSV critical for any app where currency converts to real values or affects PvP balance.

UX-Managed Display

Button "Watch Ad" show only when ad loaded — when rewardedAd != null. Gray inactive button worse than hidden. Load in advance: right after previous show or when opening screen where button can appear.

If load fails — hide button, don't show error to user. Retry with exponential backoff (1 → 2 → 4 → 8 sec) implement silently in background.

Rewarded Interstitial

Less known but useful format — RewardedInterstitialAd. Unlike rewarded, doesn't require explicit user consent before show (no opt-in dialog), but still gives reward for watch. Works well at natural pause points: level start, loading screen. eCPM lower than rewarded, but higher than interstitial.

Timelines

Basic rewarded without SSV — 1–2 days. With server verification and integration to game economy — 2–3 days. Cost based on project analysis and verification requirements.