Destroy banner when change scene - Admob Unity

365 views
Skip to first unread message

Ennesoft

unread,
Mar 10, 2018, 4:15:59 AM3/10/18
to Google Mobile Ads SDK Developers
Dear all,
I would like to ask what is the best way to create a script that allows you to destroy a banner when you change a scene in Unity.

Can you give to us a simple example?

Thank you very much in advance,
Ennesoft Team

mobileadssdk-a...@google.com

unread,
Mar 12, 2018, 1:07:12 AM3/12/18
to Ennesoft, Google Mobile Ads SDK Developers
Hi Ennesoft Team,

I'm afraid this forum can only assist you with technical concerns specific to the code implementation of the Mobile Ads SDK features.

That said, you may refer to this section on how you can clean up banner ads via the Destroy() method. Also, you may refer to this code snippet on how it was implemented in one of our sample apps. On the other hand, for the code implementation of doing any action (e.g. cleaning up views) when changing a scene in Unity, it's best that you raise this to the experts in the Unity developer forums as they can better assist you on any concerns on general code implementation in Unity.

Regards,
Ivan Bautista
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages