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 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 My question is: Am I doing this right? Do me And for custom event ad requests that trigger You need to call 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 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 In the AdMob for your main 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.
[self.degregate customEventBanner: self didReiveiveAd: bannerView_]; to
requestBannerAd: parameter: label: request: , and then it works.
[self.delegate customEventBanner: self didReiveiveAd: bannerView _]; Manually
requestBannerAd: Parameter: Label: Request: , which is not stated in the official doctor.
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: ?
[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:
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.
GADBannerViewDelegate 's
adViewDidReceiveAd callback). You should listen for the ad callback received from that network and
didReiveiveAd: in that listener.
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