Answer the question
In order to leave comments, you need to log in
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);
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)
{
//тут вознаграждаю
}
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.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question