Hello, guys.
I'm using UNITY 2019.2.17f1. My Ads campaign for rewards is working perfectly. Although the Dashboard is giving me Green Light for the Banner, that is not working on the production environment. The code to set the Banner is pretty straightforward:
using UnityEngine.Advertisements;
public class BannerAds : MonoBehaviour
{
#if UNITY_IOS
private string gameId = "xxxxxxx";
#elif UNITY_ANDROID
private string gameId = "xxxxxxx";
#endif
[SerializeField] string placementId = "banner";
[SerializeField] bool testMode = false;
// Start is called before the first frame update
void Start()
{
Advertisement.Banner.SetPosition(BannerPosition.BOTTOM_CENTER);
Advertisement.Initialize(gameId, testMode);
StartCoroutine(ShowBannerWhenReady());
}
IEnumerator ShowBannerWhenReady()
{
while(!Advertisement.IsReady(placementId))
{
yield return new WaitForSeconds(0.5f);
}
Advertisement.Banner.Show(placementId);
}
I followed the procedure on this [Unity Link][1].
[1]: https://unityads.unity3d.com/help/unity/integration-guide-unity
Now, I'm checking that this is an old issue. Do any of you have a solution?
I'm located in Canada, which means that campaigns for North-America apply for me. So, there should be any campaign for this.
↧