I want to display AdMob ads, but I can't see ads in my newly registered ad id.

Asked 1 years ago, Updated 1 years ago, 126 views

//let TEST_ID="ca-app-pub-xxxxx01/XXX001" previously created Ad ID
//let TEST_ID="ca-app-pub-xxxxxx02/XXX001" Ad ID created this time
//let TEST_ID="ca-app-pub-xxxxxx02/XXXX002" Ad ID created this time
override func viewDidLoad(){

    let TEST_ID = "ca-app-pub-xxxxxx02/XXX002"
    varsmartBannerView —GADBannerView=GADBannerView()
    smartBannerView = GADBannerView (adSize: kGADAdSizeSmartBannerPortrait)
    letbHeight —CGFloat=50 
    smartBannerView.frame = CGRect (x:0, y:self.view.frame.size.height-bHeight, width:self.view.frame.width, height:bHeight)
    smartBannerView.adUnitID = TEST_ID
    smartBannerView.rootViewController=self
    let request = GADRequest()
    request.testDevices=[kGADSimulatorID]
    smartBannerView.load (GADRequest())
    self.view.addSubview(smartBannerView)
}

It appears with the previous ID, but it does not appear with the ID you created this time.
Also, I tried to look at the registration information I created before, but I couldn't check if the login ID was different.

swift xcode swift4 admob

2022-09-30 21:33

1 Answers

To sum up the comments, it just takes a long time to start publishing, but there was no mistake in setting or processing, the previous ID is the ad ID for testing, which does not appear on AdMob's management screen.For your information, the AdMob Help is as follows:

Time it takes from initial ad request to publication

If you register a new app with AdMob, you will be able to run the ad slot after testing the ad request several times, so it will take some time for the actual ad to appear.

If advertising requests occur frequently in the app, the accuracy of advertising will be improved.In addition, test ads are posted through the same channel as actual ads, so if the test ads are returned properly, the app and the ad network will be properly linked.

In addition, there was a comment saying, "Shouldn't we contact AdMob first?", which is appropriate for this question, but please note that Google support is basically a service failure and bug response and does not cover application integration.


2022-09-30 21:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.