Friday 15 July 2011

ios - admob mediation custom event Request Error: No ad to show from all configured ad networks -


I followed on developers.google.com, but failed to get ad from custom ad network with error in title .

After requesting an ad for a custom event, called the requestBannerAd: parameter: label: request: class CustomAd . But then (a few seconds later), it jumped with adView: didFailToReceiveAdWithError: , with the following error and in my custom network ad request requestBannerAd: parameter: label: request: did not work.

Error domain = com.google.ads code = 9 "Request Error: There is no ad to show from all configured ad networks." UserInfo = 0x1e8e31a0 {NSLocalizedDescription = Request Error: There is no ad to show from all configured ad networks., NSLocalizedFailureReason = Requests Error: Not showing any ads from all configured ad networks.}

I try to add [self.degregate customEventBanner: self didReiveiveAd: bannerView_]; to requestBannerAd: parameter: label: request: , and then it works.

My question is:

Am I doing this right? Do me [self.delegate customEventBanner: self didReiveiveAd: bannerView _]; Manually requestBannerAd: Parameter: Label: Request: , which is not stated in the official doctor.

And for custom event ad requests that trigger requestBannerAd: parameter: label: request: later, let me set gadBannerView_.delegate Should be done. When I set it, and later successfully receives a custom event ( requestBannerAd: parameter: label: request: is called), why adView: didFailToReceiveAdWithError call Done but AdViewDidReceiveAd: ?

You need to call [self.delegate customEventBanner: self-made ReceiveAd: bannerView _]; At some point in your custom event flow, if you do not do this within 5 seconds, the requestBannerAd: parameter: label: request: is being applied, AdMob Mediation is your custom event At the request of the time will expire and proceed. This is the reason why you are seeing the message:

Error domain = com.google.ads code = 9 "Request Error: There is no ad to show from all configured ad networks." UserInfo = 0x1e8e31a0 {NSLocalizedDescription = Request Error: There is no ad to display from all configured ad networks., NSLocalizedFailureReason = Request error: Not showing any ads from all configured ad networks.}

As long as I invoke [self.delegate customEventBanner: self didRieceiveAd: bannerView_]; , it depends on your custom event if your custom event only gives a static image, then you can request didReceiveAd: directly requestBannerAd: : Parameter: Label: Request: with that image.

But if you are implementing some advertising networks that do not already support AdMob mediation, then it is likely that they will have a listener who will tell you when the ad is received (AdMob In the case of this, it will be GADBannerViewDelegate 's adViewDidReceiveAd callback). You should listen for the ad callback received from that network and didReiveiveAd: in that listener.

In the AdMob for your main GADRequest that triggers your custom event, you can listen to your custom event from the callback or any other network in your arbitration flow. You must set a GADBannerViewDelegate at GADBannerView . If you receive adViewDidReceiveAd: , then you know that AdMob mediation found an ad from one of your networks.

No comments:

Post a Comment