Unity Native Ad CTA Button not clickable

76 views
Skip to first unread message

Norbert Fritz

unread,
Apr 15, 2023, 10:01:17 AM4/15/23
to google-adm...@googlegroups.com
Hi,

I implemented the native ad plugin (latest) to my unity app. Unity version: 2021.3.19f1
To all native ad gameobjects I added a box collider in the editor. I set the Raycast target off to all parent hierarchy element where needed (all panels) the CTA button also, but inside the CTA button I set the Raycast target on to the CTA Text (which also has a collider).
But when I run the app and I click in the CTA Button nothing happens (clicking any other part of the native ad redirects to the given url. 
I also tried that I removed the button and set only the CTA Text but didn’t work also. 
Any idea what can be the solution? 

Norbert

unread,
Apr 16, 2023, 5:18:59 AM4/16/23
to Google Mobile Ads SDK Developers
Hello,

I found the solution.
To the Native Ads panel's parent Canvas I had to set the render mode to Screen Space - Camera and had to add a render camera to it, and that Camera's culling mask had to set the UI layer so it detects collision.
Have a great day!

Norbert Fritz

unread,
Apr 17, 2023, 3:03:45 AM4/17/23
to Google Mobile Ads SDK Developers
Hi,
I noticed an interesting thing on clicking the Native Ad CTA button.
This button has the Raycast Target off (CTA text has Raycast Target on and box collider also), and with test ads, is immediately load the native ad on app start, but sometimes I need to click the button 25x or 53x times to redirect me to the test ad url.
Is this also so if not test ads are used?



--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/d90426c8-44da-4ea4-8e01-76a9a326b9b3n%40googlegroups.com.

Mobile Ads SDK Forum Advisor

unread,
Apr 17, 2023, 6:43:06 AM4/17/23
to norbi...@gmail.com, google-adm...@googlegroups.com
Hello,

Thank you for reaching out to us.

For us to properly troubleshoot your issue, kindly provide us the following information below:
  • Sample App Project
  • Steps to replicate
  • SDK Version
You can provide the following details via reply or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002kVwY4QAK&entry.80707362=00175018

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,
Google Logo Mobile Ads SDK Team

 

ref:_00D1U1174p._5004Q2kVwg3:ref
Reply all
Reply to author
Forward
0 new messages