AdMob Diagnosing Banner Not Displaying - ios

I have an app in iOS TestFlight. It has AdMob ads. I originally deployed the app with the demo unit id and the app showed demo ads. So far, so good. I got my AdMob account approved and I added the real unit ID to my app as per the instructions. I ran the app on the simulator and the banner shows up, albeit with demo ads. So, I deployed this version to TestFlight, and now the app in TestFlight doesn't show any banner.
I don't know what is going wrong. It should at least display the demo banner. I would have to add some kind of logging to diagnose the issue.
So, I checked the documentation here and here.
I added my physical iPhone as a Test Device in the AdMob console, but my device still doesn't display any ads and the shake gesture does nothing.
The documentation says that I need to have the app in the store before I can serve ads, but it's a chicken-and-egg scenario. I want to make sure the ads are working before I deploy them to the store. I would at least like the demo banner to display, but even that won't display right now.
I also followed this documentation. If I add this test Swift code, the banner shows up. But this doesn't really help me much because it requires that I put the specific device id into the app.
GADMobileAds.sharedInstance().requestConfiguration.testDeviceIdentifiers = [ "[DEVICE ID]" ]
My two options are to roll back to the demo ad unit id which displays the incorrect demo banner or just hope for the best. Can anyone recommend advice here, or at least explain how I can get the ads to display on the test device?
Edit: The app works fine with the demo advert but it got rejected from the Apple store because the ad says "Test". It's a chicken and egg scenario.

verify all below points
First visit admob console and read the warning at top. add payments information if not added and approve your account.
Verify once, you replaced your production ads IDs properly in your app code for production environment.
For production Advertising your app need to add for review first from admob console too. checkout this documentation.
app-ads-txt correctly updated with status or not. checkout this link
If your Ads working in development environment Ads will work for production too if above all steps correctly done. some times on
New production ad IDs takes few hours or requests to load ads in user's
device. checkout below links
Common reasons for ads not showing - link
Take time too load production ads - link
For iOS TestFlight app rejection, your app contains any test keywords (test, lorem ipsum...) in app store listing content (screenshots or app contains testing data). for resolve this go-through app store review guidelines.

Related

AdMob ads won't show anymore on my IOS App

I have been having this issues for at least over 2 weeks. I uploaded my app and at first the ads would show and everything was fine then out of no where ads will not show anymore and analytics and shows ads are being requested but nothing is shown. I have no poilcy center issues and test ads work fine. I put the app-ads.txt which got verified and when I debug now I get this error, ""AdMob App ID changed. Original, new: (nil)". I just made another app and now the same thing is happening. I have tried verifying my payments and everythig is seeming fine. This issue has be annoying me and have made at least another 2 posts and still no reply.
Have you had a look at this answer?
The accepted answer states you need to add the required 'NSAppTransportSecurity' keys into your info.plist.
Ad: Monitor your Admob and Mopub earnings using the Motics ios app.

IOS - Admob not loading real (rewarded) ads

When trying to load rewarded ads I get the following error:
<Google> To get test ads on this device, set: GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = #[ #"a 32-character-string" ];
Loading test ads works, but when trying to show real ads, it says: Request Error: No ad to show.
Apple will not allow my App on the App Store, because the ads don't work.
I have not managed to fix this, since this article didn't help.
Adidionally, I have not used this in my code: .addTestDevice() and my Admob account is way older than 24 hours (it's possibly even many years old).
Is there a way to fix this?
depends, If you are using your own device or a simulator you cannot view your own adverts. you have to use a test ad id.
I also suspect that Apple was not holding your app because you did not follow one of their guidelines. You can find them on Apple's App Review page. If it is because the ads do not work, try the following:
remove the advertisements
upload to the app store
configure AdMob to use your AppStore id
update your app to include the advertisement later
This means there will not be a version of your app that breaks apple's placeholder content rule.
Apple also provides a test service called TestFlight and that may help you.

Production AdMob Banner Ad doesn't load oniOS

While I was making my iOS app, I used test AdMob AppID and AdUnitID.
Test ads showed up every time.
Today I made an AdMob account and got the production AppID and AdUnitID.
I copied them and replaced the test ones in my app.
I archived the app so to use the Release settings in XCode.
Then I uploaded it to AppStore.
However, when I download the app from TestFlight no ads are shown.
What am I missing?
P.S.
- GoogleAds framework is up to date
- AdMob account is filled with the required info.
AppDelegate
GADMobileAds.configure(withApplicationID: <AdMob AppID>)
ViewController
bannerAd.adUnitID = <AdMob adUnitID>
bannerAd.rootViewController = self
bannerAd.load(GADRequest())
Per Admob Help:
When apps are newly registered with AdMob, it takes some time and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately.
Once your app is making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network.
I would say wait 24-48 hours to start seeing live ads, depending on your region.

iAd is not displaying ads in my approved game

I just finished an update to an iPhone app which included ads. I have signed the contract on iTunes Connect and have integrated the iAd framework with my app. When running the simulator I got test ads running in my app.
However, now that the app is on the app store (it has been about a week since I put ads into it). Whenever I go to the app on my phone there are no ads. Additionally I have around 300 downloads so far.
When I got iAd Workbench and try to view the information on my apps I get something like this:
iAd Network is temporarily unavailable
Sorry: We were unable to locate information relating to your account. Please try again later. If the problem persist please contact us.
Am I missing something? Do I just need to wait for them to review something? I have contacted iAd but have not had a response.
I found out the problem. So I had been making individual instances of adViewBanner in each of my view controllers. I replaced that by making an adViewBanner in my AppDelegate and then put an instance of that on each of my pages. Once the update was accepted with this change iAd workbench started working and the error message went away.

Will iAd test ads disappear in Xcode after app approval?

I'm updating my app and although iAds are still not being served to my app due to its recent approval, the test ads aren't showing anymore in xCode. Will the test advertisements disappear after approval even in the simulator?
Ok so i talked to developer support on the phone and got the answer and the problem has actually been solved today. Once your app is accepted, iAd most likely will not be implemented immediately; and contrary to popular belief this does effect how it shows on your xCode testing as well. Its been about 24 hours since it was accepted and iAd just appeared. So hopefully that can help someone in the future.
iAds are only shown if there are iAds available to be shown. Apple has to sell ads to make them available. I rarely see iAds in my apps. My guess is that there are more people displaying iAds than have been sold.
I use ad AdMob aggregator to show both iAds and Google Ads. Makes beer money that way at least.
He has a thread going in the Apple developer forums as well:
https://devforums.apple.com/message/939808#939808
iAds will show test ads in a debug build on occasion (based on a setting). In the simulator or a test device, you can go into Settings - Developer - and change the Fill Rate or other settings as appropriate if you want to test always or never getting an ad. By default, it's around 50% or so.
Having your app released in the store has nothing to do with the test ads that get displayed in the debug builds not from the store.
So, the issue is most likely a bug in the code if ads, not even test ones, never appear.

Resources