AdMob ads stopped showing - ios

I looked at various answers, but nothing works for me. This also may be a dumb question, but I haven't worked with AdMob in 2 years. It did use to show the test ads on the simulator, until I ran it on a physical device. I know that it won't show the real ads on the physical device, but now test ads do not show on the simulator. However I have the view set to a grey color and the ad view is white on the simulator. This makes me believe they are still working. I do get the below printed in the console. Doing that won't show test ads though.
To get test ads on this device, set: GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = #[ kGADSimulatorID ];
code:
let banner: GADBannerView = {
let banner = GADBannerView()
banner.load(GADRequest())
banner.backgroundColor = .secondarySystemBackground
banner.adUnitID = Constants.appBanner
return banner
}()
called in viewDidLoad:
banner.rootViewController = self
view.addSubview(banner)
My question is if I am doing anything wrong, or if I am being paranoid.

In my experience sometimes the test ads won't show or show properly, but in the console, the messages indicate they are working. If you used the code you posted just give admob time on once you've launched your to verify traffic. If after a couple of weeks they still don't show contact admob support.

Related

Game Center Completion Banner not showing in iOS Simulator

I'm trying to integrate Game Center into my iOS app. However, the achievement completion banner doesn't appear even if I set the ShowsCompletionBanner flag to true. I've been testing my app through iOS Simulator with iOS 14.
I'm using the following code (Xamarin.iOS):
var achievement = new GKAchievement("sample.achievement")
{
PercentComplete = 100,
ShowsCompletionBanner = true
};
achievement.ReportAchievement(null);
I can confirm that the ReportAchievement has succeeded since the achievement has been unlocked in the achievements view (GKGameCenterViewControllerState.achievements)
Added info: The completion banner appears when I put a breakpoint at the achievement.ReportAchievement(null) line. Also tried using achievement.ReportAchievementAsync() but I'm still encountering the same behavior.
Thanks in advance!
Try using static ReportAchievements instead of instance method being used.
You can see that in the Apple developer document https://developer.apple.com/documentation/gamekit/gkachievement?language=objc
But we also want info in where the API is being called from as there still may be an issue with async and timing.
Might be worth using a completion handler with the synchronous method which may reveal an error.

How to stop showing AdMob banner ad correctly?

I am building an app which will display AdMob banner ad, and when user successfully purchased an IAP item, the banner ad will never show up again, and the screen area originally occupied by the banner ad will be used by the app real functions.
The question is how to dismiss the bannerView or does not init it on the next launch up? And how to insure AdMob Sdk will never refresh the ad content in the background?
I think we cannot just hide the bannerView with just a statement:
bannerView.isHidden = true
And, as we know, AdMob SDK use IDFA. But Apple will deny an app which use IDFA but not showing Ads.
Google has guides on how to show up ads, but I cannot find information about how to stop showing ads from Google.
How to get this problem out?
The question is how to dismiss the bannerView or does not init it on
the next launch up? And how to insure AdMob Sdk will never refresh the
ad content in the background?
There are multiple ways to do this. One way I can think of is to add multiple targets in your Xcode project.
And the easier way, the more practical way - at least for me, is to prevent the requests for ads through GADRequest().
You can even do this even in AppDelegate, when setting Ids to your SDK.
That's it. You may also set nil to the delegate property of your bannerView.
And like what you've mentioned, just hide the bannerView's container, and everything should be perfect. I've worked on lots of applications with Admob, and I believe there should be no problem doing this approach.

Google Street View on iOS is failed to load and block all http request

For the first few times to load the street view page, it doesn't have any problem.
Around 3-4 times go back and enter the street view page, the street view is loading forever without any error message.
Then I go to another page, the connectivity lost forever, even AdMob also can not show up any ads.
The app is totally isolated. After killing the app, everything goes normal again.
Anyone knows how to fix this issue?
Thanks
// street view
let panoramaNear = CLLocationCoordinate2DMake(map_x, map_y)
let panoView = GMSPanoramaView.panoramaWithFrame(CGRectZero, nearCoordinate:panoramaNear)
panoView.camera = GMSPanoramaCamera.init(heading: map_heading, pitch: map_pitch, zoom: 1, FOV: map_fov)
self.view = panoView;
I've figured out what's wrong, it's because of the AdMob interstitial ads. I request the streetview and admob interstitial simultaneously. Maybe it is a bug? So I removed the interstitial request, then everything works again.

RevMob full screen ads not going away, iOS

Hy there,
We have an application that is live and has numerous user world wide. We have added revmob few years ago, everything was fine in all that time, but recently various users from USA are complaining that full screens ads pop ups are not removing. and some users mentioned that there are various pop ups displayed. Some of them mentioned that there is no close button to hide the pop up.
We tested here with us, check others countries feedbacks no one complains about it.... All those users that faces this issue are from USA.
We are in a bit trouble. and thinking to remove and not to use ads any more. but if you people has any idea or any solution for that, please let us know asap.
here is my code I call to display ads:
RevMobFullscreen *fs = [[RevMobAds session] fullscreen];
fs.delegate = self;
[fs showAd];
Thanks

iAd not appear after app released to AppStore

My app "iCals" uploaded to AppStore and the iAd not appear.
In simulator and with TestFlight written in banner "You connected to iAd" but if I download the app from AppStore is not appear the banner.
#synthesize = adBanner = adBanner;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// Make self the delegate of the ad banner.
adBanner.delegate = self;
// Initially hide the ad banner.
self.adBanner.alpha = 0.0;
}
iAd takes a couple of days to process after your app has already been processed and on the app store. If you go to the iAd dashboard you should have a message letting you know that your app is in review for iAd. If your app has only been in the app store for <3-5 days then give it a little more time. You'll still see the green light next to "Live Ads" but there won't be any ads until it's been reviewed.
Check the iAd control panel at https://iad.apple.com. If your app's Ad status is "Live ads", like so:
then everything is working fine, you just aren't getting an ad because there aren't always ads available to show. If you leave the app open for long enough, you should eventually see one.
You can also check other stats such as impression counts and fill rates in the control panel; these will indicate to you how many ads are actually being shown to users (my fill rates have been around 60% lately).
Also, if you don't live in one of the countries on this list, you'll never see any iAds in production.

Resources