Posts tagged with admob-rewardedvideoad

I have implemented AdMob Server Side Verification How to verify Admob Rewarded Video Ad on a server?

Everytime the user finishes watcing a rewarded ad, Google Server Makes a GET call to my Server. I verify the signature, then store an entry to my database.

To my surprise, I noticed a discrepancy between the number of API calls recorded and the impression count on the AdMob Panel.

This results in lesser earning than what I actually reward my user.

Server Logs:

ad_reward_audit.dart:52:7) 2024-07-31 00:00:00.000Z: 2 ad_reward_audit.dart:52:7) 2024-08-01 00:00:00.000Z: 3 ad_reward_audit.dart:52:7) 2024-08-02 00:00:00.000Z: 1 ad_reward_audit.dart:52:7) 2024-08-03 00:00:00.000Z: 2 ad_reward_audit.dart:52:7) 2024-08-04 00:00:00.000Z: 35 ad_reward_audit.dart:52:7) 2024-08-06 00:00:00.000Z: 6 ad_reward_audit.dart:52:7) 2024-08-07 00:00:00.000Z: 3 ad_reward_audit.dart:52:7) 2024-08-08 00:00:00.000Z: 5 ad_reward_audit.dart:52:7) 2024-08-09 00:00:00.000Z: 36 ad_reward_audit.dart:52:7) 2024-08-10 00:00:00.000Z: 28 

AdMob Panel:

Am I wrong to think that the number of impression should match the number SSV API call ?

If it should be the case, what other steps can I do to investigate this ? I am making loss at the moment do this issue as my rewards to user actually cost me actual money (Computing time cost on expensive GPU)

What is wrong on this below code?

The ads are appearing when I change the screen but before loading the Ads I am getting white screen for 2-3 seconds.

Why it's happening? Thank you in advance for your time and support.

import React, { useState, useEffect } from "react"; import { View, Button, Text, ScrollView, } from 'react-native' import { RewardedAd, RewardedAdEventType, TestIds } from 'react-native-google-mobile-ads'; const adUnitId = __DEV__ ? TestIds.REWARDED : 'ca-app-pub-3940256099942544/5224354917';     const rewarded = RewardedAd.createForAdRequest(adUnitId, {       requestNonPersonalizedAdsOnly: true,       keywords: ['fashion', 'clothing'],     });     const Testing = ({ navigation }) =>{             const [loaded, setLoaded] = useState(false);         useEffect(() => {               const unsubscribeLoaded = rewarded.addAdEventListener(RewardedAdEventType.LOADED, () => {                 setLoaded(true);                 rewarded.show();               });               const unsubscribeEarned = rewarded.addAdEventListener(                 RewardedAdEventType.EARNED_REWARD,                 reward => {                   console.log('User earned reward of ', reward);                 },               );           // Start loading the rewarded ad straight away               rewarded.load();           // Unsubscribe from events on unmount               return () => {                 unsubscribeLoaded();                 unsubscribeEarned();               };             }, []);                        // No advert ready to show yet             if (!loaded) {               return null;             }             return (                 <ScrollView>                 <View style={{flex:1, justifyContent : 'center',alignItems : 'center'}}>                 <Text>                  Lorem Ipsum is simply dummy text of the printing and typesetting industry.                 Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,                  </Text>                 <Button onPress = {() => navigation.navigate('ThirdPage')} title='Next Screen'></Button>                    </View>                 </ScrollView>)             }             export default Testing 

Flutter App. One button that leads to the 2nd page where the content is.

  • The user clicks on the button and must watch a video ad(rewarded ad).

After the video ad finishes > the user can open the 2nd page / or the 2nd page will be automatically opened when he clicks 'x' on the finished video ad.

My question is > how to do this? What would the code look like and what to use? Thank you!

I am a new app developer planning to build a social media app. I want to run ads in that app but admob's ads are pretty annoying as they seem and I don't want to disappoint my users so I was thinking is there any way so that I can use my admob's ads in my widget tree and shape that add as per need like curving the edges displaying them inside a frame with scrolling feature enabled in flutter. I want to blend my ads with my ui/ux layout. If someone knows how can I do that please help me out. Thank You.

RewardedVideoAd is deprecated. What is the new alternative?

    void loadAds(){         RewardedVideoAd mRewardedVideoAd;         mRewardedVideoAd.loadAd(rewarded_id, new AdRequest.Builder().build());         mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this);         mRewardedVideoAd.setRewardedVideoAdListener(new RewardedVideoAdListener() {         @Override         public void onRewardedVideoAdLoaded() {             AppUtils.showLog("REWARDED", "onRewardedVideoAdLoaded");         }         .....         .....     }