hi
I dont now what happend with unity ads .
I want to update a game from me but now the ads are no more works also empty project dont works and this dont work on 5.50f3 and 5.3.6f1 nothing working?
Have someone a solution ?
Here is my code for my ads
code
using UnityEngine;
using UnityEngine.Advertisements;
public class UnityAdsInitializer : MonoBehaviour
{
[SerializeField]
private string
androidGameId = "",
iosGameId = "";
[SerializeField]
private bool testMode;
void Start()
{
string gameId = null;
#if UNITY_ANDROID
gameId = androidGameId;
#elif UNITY_IOS
gameId = iosGameId;
#endif
if (Advertisement.isSupported && !Advertisement.isInitialized)
{
Advertisement.Initialize(gameId, testMode);
}
}
}
using UnityEngine;
using System.Collections;
using UnityEngine.Advertisements;
public class test : MonoBehaviour {
// Use this for initialization
void Start () {
Advertisement.Show();
}
// Update is called once per frame
void Update () {
Advertisement.Show();
}
}