IOS - Admob not loading real (rewarded) ads - ios

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.

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.

How to get the URL of an iOS application before it is accepted by Apple?

First of all, I know that there are a lot of posts related to my question but my situation is a bit different.
Actually I use Admob in my application to present ads, but my approval status is set to "review required" because I've not add my App's URL on AppStore yet.
I tried to go to : App Store Connect > My apps > App concerned > App information > View in the app store. I've copied the URL from my browser and add it to Admob but here is the message I get from Admob when I search my app with this URL :
Can't find your application? Check its information on the download platform and try again.
And this makes sense as the application is not yet published on the AppStore. The problem is that the app cannot be accepted if the ads do not work.
Can anyone suggest a solution ?
Thank you for your attention !
First of All, the sentence below is not true:
The problem is that the app cannot be accepted if the ads do not work.
Apple will accept the app if it has no Ads without any problems.
BUT if you really really need an Ad to appear, you can use in house ads until the app get published.
in house Ads will appear even if your app is not published yet.

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.

Error with iAd implementation means no revenue generated from ads?

For a while now I have had an app on the app store. I decided to try to add support for the Apple iAd Network in a recent update. It has been live for over a month now (at first I thought time would fix it) but I have come to the realisation that the app is still not making any money off of the ad revenue. Currently all my apps are free to download but I need to allow ads to keep them that way.
I am testing ads using this app because it is not my most popular app but if I can get them to work then I will look to update my other apps to support iAds in the future as well.
I cannot see if my live app is making ad requests because I get this error in the iAd Network part of iTunes Connect:
The status of this app is Ready for Sale. Below is a screenshot of my app to demonstrate that the iAd banner has been implemented correctly in Xcode to the best of my knowledge.
So my question is why is iAd not making me any money from ad revenue as I would expect it to? Have I done something wrong or is the problem with Apple?
UPDATE
I have now made and published another app with iAds successfully implemented but I still have no ads on this one!
Could it be due to a lack of popularity?
Some of the issues you are facing could be occurring since you haven't setup the contracts for iAds in itunes connect. Also, this may be unrelated, but when no ad loads, is the banner view visible?
Answer
The reason was simply that Apple has delays in processing at their end. I still don't know why one of my apps took so much longer than the other, however it was just a matter of time until the revenue started showing up as I had implemented everything correctly in Xcode.
Advise
Make sure you follow the official Apple guidelines, make sure to use the proper iAd banner and show it all the time (it will hide automatically when it needs to). Don't forget to setup all your information properly on iTunes connect either, although Apple makes it quite clear in their documentation what needs to be done there.
Be patient! Apple takes time to process these things.

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.

Resources