Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load ads with project include Scene Delegate #190

Open
hoangtam101 opened this issue Dec 21, 2020 · 0 comments
Open

Can't load ads with project include Scene Delegate #190

hoangtam101 opened this issue Dec 21, 2020 · 0 comments

Comments

@hoangtam101
Copy link

Hi Admob Team,

I're created a project by Xcode 12.2, that project include Scene delegate.
When I run it on device with config test device, the ads is showing.
But when I run it on device with no config test device, the ads load error
There's my code to load ads

self.adsBannerView?.adSize = kGADAdSizeBanner self.adsBannerView?.adUnitID = adUnitID self.adsBannerView?.delegate = self self.adsBannerView?.rootViewController = self self.adsBannerView?.load(GADRequest())

I try to debug before load ads, I saw frame of adsBannerView is
<GADBannerView: 0x107b0d550; frame = (0 89; 375 50); clipsToBounds = YES; autoresize = RM+BM; layer = <CALayer: 0x282cce2e0>>

I got an error below
`Error Domain=com.google.admob Code=1 "Request Error: No ad to show." UserInfo={NSLocalizedDescription=Request Error: No ad to show., gad_response_info= ** Response Info **
Response ID: (null)
Network: (null)

** Mediation line items **
}`

And the log
<Google> Invalid Request. Invalid ad width or height: (375, 0)

Could you please help me?

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant