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

AdMob Banner hides behind the app #1071

Open
saqibhayatmalik opened this issue Apr 30, 2024 · 3 comments
Open

AdMob Banner hides behind the app #1071

saqibhayatmalik opened this issue Apr 30, 2024 · 3 comments

Comments

@saqibhayatmalik
Copy link

Using unity-webview to play youtube videos in my app. AdMob banner ads are recording impressions but not visible. But i can click on the banner and the banner gets clicked. I have done everything to resolve the issue but in the end, removing this unity-webview plugin seems to work.

Help us in resolving this issue.

@KojiNakamaru
Copy link
Member

I'll investigate the issue if you provide a minimum unity project that reproduces it.

@saqibhayatmalik
Copy link
Author

saqibhayatmalik commented Apr 30, 2024

WebView AdMob.zip

I have attached a minimal project and an apk. Banner is loaded in the bottom and it isn't visible. But i can click it which takes me out of the app.

Platform: Android

@KojiNakamaru
Copy link
Member

You seem to utilize a bit old "render over native ui" variant found at #584 and set "Render Over Native UI" in Settings. Native UIs (including webviews shown by unity-webivew and those shown by AdMob) are thus placed behind unity's rendering view so that you have to make the Unity's rendering view transparent, i.e., set Camera's background alpha to zero.

Also, it is better to use the latest "render over native ui" variant because the background of the whole app becomes transparent for the version you currently utilize.

I attached your app with my tweaks below, Please refer git logs for details.

WebView.AdMob-tweaked.zip

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

2 participants