Force Manual Initialization of Unity Ads

Hi there,

How can i force manual Initialization Unity Ads in Unity3D 5.6.1+?

Reason behind it is that i have several games using 1 base code, and intend to manually initialize the ADS sdk using runtime ad ids.

Please advise
Thanks

Hi,

You can still use the asset store package (https://www.assetstore.unity3d.com/en/#!/content/66123) with Unity 5.6, and thereby control initialization of Ads.

In the Ads service window, just make sure you disable the “Enable builtin Ads extension” in the Ads part of Service window, under Advanced section.

/Rasmus

Thanks, so if i understood correctly.
I emable Ads from Services Tab and uncheck “enable built-in ads extension” and then ill have to manually initialize the ads?

Correct, you should in Services window:

  1. Still have Ads enabled (as you are using ads in your game)
  2. Disable the “enable built-in ads extension” checkbox under Advanced section in Ads
  3. Import Ads SDK asset store package from Unity Asset Store - The Best Assets for Game Making

Then you can control initialization yourself in game.

/Rasmus

1 Like

Thanks :slight_smile:

@rasmus-unity Is still same proccedure in 2020 ? Can’t find the “enable built-in ads extension”

These days manual initialization is used for all scenarios. I’m bit further away from Ads SDK team these days, but I believe this was required as part of the whole packages strategy in Unity, which is to decouple packages from Unity core (rather than having hard references)

So you just use the usual Advertisement.Initialize() method in your code.

Hope it answers your question.

Thanks,
Rasmus