- Home /
How to implement Admob Native Ads on a ScrollRect in Unity
I am integrating UI Native Ads for unity. It is working fine by following the video tutorials.
The video link: https://www.youtube.com/watch?v=M-XdptsCWtQ
To make the UI native ads works, it is required to attach box colliders and uncheck raycast target. (It seems that it uses Physics Raycaster to detect clicks and UI will block the raycast)
The problem is that when I put the native ads on a ScrollRect. The ScrollRect won't work since native ads required raycast target of the ScrollRect to be unchecked.
In this case, the ScrollRect is in conflict with the native ads. May I ask how to solve this problem?
Answer by MohammadMansour_ · Feb 15 at 11:31 PM
Hi @Yiming075 I explained the Native Ad with scrollview in this video It's in Arabic but stick to the steps and I think you'll understand :) https://youtu.be/VV2SgaopZGw,Hi @Yiming075
I have downloaded your project and know that you have disabled the background of ScrollRect. The native ads now can be clicked but when the user starts scrolling at the empty space, the ScrollRect won't scroll. This may be counterintuitive to the player. But still thanks for your solution.
Did you try in the project that you downloaded from me running a scroll in the empty area? Because this problem in the beginning is a problem related to the design of the scroll, whether there is an advertisement or not :) In order to solve it, I used content fitter with vertical layout If you watch the first 8 minutes, you will find me designing the scroll in a way that prevents this error from happening, or maybe I am wrong and your problem is more difficult than I understand it
Anyway, good luck with your project :)
Answer by MohammadMansour_ · Feb 15 at 09:26 AM
Hi @Yiming075 I explained the Native Ad with scrollview in this video But it is in Arabic but if you follow the steps I think you will understand :) https://youtu.be/VV2SgaopZGw