Hi everybody!
I am trying to reduce the data consumption of my app. I order to do that I disabled the auto initialization with an editor script.
To only initialize unity ads while in wifi or when a specific UI element is active I use this code:
void AdInit()
{
if (Application.internetReachability == NetworkReachability.ReachableViaCarrierDataNetwork)//3g
{
if (Advertisement.isSupported && !Advertisement.isInitialized && changeCanvas.activeSelf)
{
Advertisement.Initialize(gameId, testmode); //load Video
Debug.Log("Ad Initalizing");
}
}
else //wifi or no connection
{
if (Advertisement.isSupported && !Advertisement.isInitialized)
{
Advertisement.Initialize(gameId, testmode); //load Video
Debug.Log("Ad Initalizing");
}
}
}
But I still get around 0.5Mb of data consumption every time I open up the app.
Am I missing something?
Thanks in advance!
↧