Skip to content

Manager Ad object

d.eshenko edited this page Feb 9, 2023 · 16 revisions

⚡ Before you start
Make sure you have correctly Privacy Regulations.

Implementation by UnityEditor | Script C#


To display ads, you must initialize the mediation manager with a unique Manager ID.
This needs to be done only once for each manager, ideally on first scene.

Issue
If you are working with Facebook Audience Network then you must set Facebook Data Processing Options, but the Manager Ad Object does not provide such possibilities. Please use Script C# implementation.

  1. Add an GameObject to your scene using GameObject > Create Empty in the Unity Editor.
  2. Add Component CleverAdsSolutions/Initialize Manager Ad Object in the inspector to new GameObject.
  3. Select Manager ID from settings asset for each runtime platform.
  4. Invoke a Initialize() method to begin initialization.

image

  • Initialize On Awake
    Automatically invoke the Initialize() method on the component awake.
  • OnInitialized
    The Unity event will be invoked when the Mediation Manager is initialized and ready.

🔗 Done! What’s Next?

Clone this wiki locally