Production AdMob Banner Ad doesn't load oniOS - ios

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.

Related

AdMob Diagnosing Banner Not Displaying

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.

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.

What build to submit to itunes connect

I'm using google AdMobs in my iOS game. The problem is that I removed the test ads from the code one day before uploading the build to itunesConnect. Now the AdMobs account is suspended for violating the terms of service. I have also pulled the build from itunesConnect. My question is what build to submit exactly. One with the real ads or one with the test ads. Google also said that further violations during the 30 day suspension period will result in a permanent ban and I really want to avoid this. So what is the common practice here?
As per my knowledge i used Admob in my iOS application since long time. Probably you need to take care about following steps.
Be careful you used test ad during your app is in development mode.
When you going to live this application you should remove test.device line code and also check two time you are replace individual Ad id with test id.
Never click on advertisement either development mode and after live application at your end.
Do not used Admob for any sexual contain app that consider as a violations so you strick take care about this step.
Note As par Ad Mob doc

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.

iOS admob never refresh ad

I recently published my app with iAd and Admob, and I followed every instruction to set up Admob correctly. But I soon realize that Admob ad won't ever refresh -- it only shows one ad no matter what (restart app, re-install app, and etc). I set up auto refresh rate at 30sec on Admob website. Is there a method to refresh it programmatically?
I use this module and seems to work just fine:
https://github.com/shad/titanium_modules/tree/master/admob
Have a one thing in mind that the ads might be the same, even when refreshing, especially if you don't enable google ads in the Admob console.
So please enable it in Admob console.
Hope it helps you !

Resources