In-text banner ads - Unity - AdMob

82 views
Skip to first unread message

FreeLearning

unread,
Aug 26, 2021, 2:11:15 PM8/26/21
to Google Mobile Ads SDK Developers
Hi, I program in Unity, some of my apps have newspaper-style texts, in which I would like to put advertising banners in the middle, in the scroll.

However, I have no idea how to do it. Until now I have always used fixed banners anchored at the bottom, now I would like to integrate advertising into the content, like creating a prefab containing a banner that intersperses the reading of the text, such as:

Text
Banner
Text
Banner
Text
etc...

So how do I create a banner, in a prefab, that can scroll, and that disappears with the change of scene?

Thanks!

Mobile Ads SDK Forum Advisor

unread,
Aug 26, 2021, 4:26:58 PM8/26/21
to freelearni...@gmail.com, google-adm...@googlegroups.com
Hi FreeLearning,

Thank you for reaching out to us. In general when people are doing something similar to you. They will use a RecyclerView to show the content and then the ad after it. As well as this will give you the ability to add new content above or below as you are scrolling through the view.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Mj6YI:ref

FreeLearning Support

unread,
Aug 26, 2021, 7:56:22 PM8/26/21
to Mobile Ads SDK Forum Advisor, google-adm...@googlegroups.com
Hi,

I use Unity, I searched the internet for RecyclerView but regarding Unity I didn't find anything and regarding Android I found it's like a list. You mean like a Unity Vertical Layout Group? You say I should create the banner and insert it? How?

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/AUbIx9n6GBU/unsubscribe.
To unsubscribe from this group and all its topics, 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/eOf1e000000000000000000000000000000000000000000000QYGRGB00AYf_aNPlQPu2IzOZrlit3w%40sfdc.net.
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Aug 27, 2021, 1:32:23 AM8/27/21
to freelearni...@gmail.com, google-adm...@googlegroups.com

Hello FreeLearning,

Thank you for your response.

I work with William and will be assisting you on this. For Unity specifically, you may want to use Unified Native Ads inside scroll views, instead of banner ads (since banners are constrained to the top or bottom of the screen). One caveat of doing this, however, is the fact that the native ads operate as 3D GameObjects that are intended to work in the world space; you may encounter a bit of complexity in making them work inside a scroll view. I'm afraid we also do not have a guide on using native ads for a scroll view at the moment, precisely due to the above reason.

With that said, I can make a feature request regarding a guide on using native ads on Scroll Views if you would expand on what you would like to see in such a guide. But if you want to continue using Banner ads on a scroll View, we found this implementation on stackOverflow that can guide you on how to implement a scrollview on your Unity project.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


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