Native Ad can't be clicked

230 views
Skip to first unread message

phosluo

unread,
Mar 6, 2020, 6:20:59 AM3/6/20
to Google Mobile Ads SDK Developers
Thanks for your attention.

I displayed a Native Ad in iOS programmatically without using a .xib. However, the ad can't be clicked.
I referred to an answer on Stack Overflow, and thought the registerAdView() method could help. But there must be some mistakes that I don't understand.
I wonder how to change my code to make the ad clickable.

Thank you very much.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 6, 2020, 3:54:19 PM3/6/20
to phos...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for reaching out to us.  At this point in your project, you have already received the GADUnifiedNativeAd and you must not try to create a new reference directly. Follow our guidelines as mentioned here in our sample app and you should be good to go.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UXUJfO:ref

phosluo

unread,
Mar 6, 2020, 5:24:45 PM3/6/20
to Google Mobile Ads SDK Developers
Thanks for replying. 

I have already received the GADUnifiedNativeAd as the nativeAd. But the 
nativeAdView = GADUnifiedNativeAdView()
at this point is to create a GADUnifiedNativeAdView to serve as the adView at this point in the sample app.
So maybe I didn't create a new reference for GADUnifiedNativeAd? I still don't know how to correct the code.

By the way, why is there
nativeAd.delegate = self
in the sample app (L131). Why not 
nativeAdView.nativeAd?.delegate = self
 I think the delegate is used by a native nativeAdView.nativeAd.

Thanks for helping.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 9, 2020, 3:53:15 AM3/9/20
to phos...@gmail.com, google-adm...@googlegroups.com
Hi there,

Thank you for getting back to us. I've checked your implementation, and I'll be needing to raise this to the team to get their insight as well. I'll get back to you the soonest they provide their feedback.

As per the nativeAd.delegate = self inquiry, please do note that the nativeAd has just been assigned to nativeAdView.nativeAd after didReceive call, so using nativeAdView.nativeAd?.delegate = self or nativeAd.delegate = self is fine.

Regards,
Teejay Pimentel

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 16, 2020, 2:03:18 PM3/16/20
to phos...@gmail.com, google-adm...@googlegroups.com
Hello,

Thanks for reaching out to us. I've also responded to the stack overflow thread.

All publishers can use xib to create an ad view, but only whitelisted publishers can use the registerAdView API. If you want to use this feature, please reach out to your account manager.

Best,
Jill
Google Mobile Ads SDK Team

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