Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

IOS Ads not Displaying yet Audio Present,IOS Ads Not Displaying Yet Audio Present

$
0
0
I've become incredibly frustrated with the ad implementation system in unity. I think I finally have it figured out except I can't see the video ad, only hear the audio. It's being recorded as an ad view in analytics, but is not visible to the user. I believe it may be rendering behind my other sprites, but have not been able to rectify this by manipulating the z axis or changing the layer. Any help would be greatly appreciated. Below is the code snipped I copied from the website. I'm using the latest 2019.1 f2 version of unity and the 3.03 ad services version from the asset store. I am building to an iOS device, the preview looks fine in the editor. using UnityEngine.Monetization; public class scoreKeeper : MonoBehaviour { string gameId = "3130668"; bool testMode = true; public string placementId = "video"; public void ShowAd() { StartCoroutine(ShowAdWhenReady()); } private IEnumerator ShowAdWhenReady() { while (!Monetization.IsReady(placementId)) { yield return new WaitForSeconds(0.25f); } ShowAdPlacementContent ad = null; ad = Monetization.GetPlacementContent(placementId) as ShowAdPlacementContent; if (ad != null) { ad.Show(); } },I've become incredibly frustrated with the ad implementation system in unity. I think I finally have it figured out except I can't see the video ad, only hear the audio. It's being recorded as an ad view in analytics, but is not visible to the user. I believe it may be rendering behind my other sprites, but have not been able to rectify this by manipulating the z axis or changing the layer. Any help would be greatly appreciated. Below is the code snipped I copied from the website. I'm using the latest 2019.1 f2 version of unity and the 3.03 ad services version from the asset store and am building to my iOS device. In the editor the ad preview looks fine. using UnityEngine.Monetization; public class scoreKeeper : MonoBehaviour { string gameId = "3130668"; bool testMode = true; public string placementId = "video"; public void ShowAd() { StartCoroutine(ShowAdWhenReady()); } private IEnumerator ShowAdWhenReady() { while (!Monetization.IsReady(placementId)) { yield return new WaitForSeconds(0.25f); } ShowAdPlacementContent ad = null; ad = Monetization.GetPlacementContent(placementId) as ShowAdPlacementContent; if (ad != null) { ad.Show(); } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles