K
K
kitsoRik2018-11-17 09:41:17
Google AdMob
kitsoRik, 2018-11-17 09:41:17

Why are test ads shown instead of regular ones?

Greetings, for the second day I have been trying to figure out why test videos are shown, here is the code that comes when the application starts:

MobileAds.Initialize(appID);
        this.rewardBasedVideo = RewardBasedVideoAd.Instance;
        AdRequest request = new AdRequest.Builder().Build();
        this.rewardBasedVideo.OnAdRewarded += OnAdRewardedVideo;
        this.rewardBasedVideo.OnAdFailedToLoad += OnAdLoadFailedVideo;
        this.rewardBasedVideo.OnAdLoaded += OnAdLoadedVideo;
        this.rewardBasedVideo.OnAdClosed += OnAdClosedVideo;
        this.rewardBasedVideo.LoadAd(request, GetMoneyVideo);

Here is the code attached to the actions:
void OnAdLoadedVideo(object sender, System.EventArgs args)
    {
        //тут делаю кнопку нажатия активной
    }

    void OnAdLoadFailedVideo(object sender, System.EventArgs args)
    {
        AdRequest _request = new AdRequest.Builder().Build();
        rewardBasedVideo.LoadAd(_request, GetMoneyVideo);
    }

    void OnAdClosedVideo(object sender, System.EventArgs args)
    {
        AdRequest _request = new AdRequest.Builder().Build();
        rewardBasedVideo.LoadAd(_request, GetMoneyVideo);
    }

    public void OnAdRewardedVideo(object sender, System.EventArgs args)
    {
        //тут вознаграждаю
    }

appID and GetMoneyVideo are identifiers from GoogleAdMob and everything created there.
So the problem is that only test videos are shown, not test interstitial ads, and the banner is not shown at all, the banner's OnAdFailedToLoad function is called all the time.
How to fix it?
The logs give this:
11-17 09:01:44.202 25619 30686 W Ads : Not retrying to fetch app settings 11-17 09:01:44.208 3088 31482 W Ads : App does not have the required permissions to get location 11-17 09:01:44.251 3088 31113 I Ads : SDK version: afma-sdk-a-v14574015.12451000.1 11-17 09:01:44.396 3088 31113 W Ads : Received error HTTP response code: 403 11-17 09:01:44.404 25619 Is 251 Ad failed to load : 0 11-17 09:01:44.420 25619 25619 I Ads : Use AdRequest.Builder.addTestDevice("E9B49A8F176A1A4ED5617820E22A42E2") to get test ads on this device.

I looked with the banner and thought that maybe because of the permission it won’t let me in, I’ll try to download the test device from the play market now, but why is the test device added there?
When downloading from the playmarket, nothing is happening either, the same situation, test advertising + banner is not shown.
I checked the same identifiers on another application and everything works, what is wrong with the applications or the code?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question