- Home /
Ads show up in editor but not during play test on iPhone
Hello, so my ad viewer script is on a button and when it's pressed, the ad shows up in my editor and says everything is working properly. When I build the game to my iPhone and test it on the device, nothing happens. Is there some configuration in Xcode i'm missing? Here is the code:
     string store_id = "2997880";
     public string placementID = "RoundEnd";
 
     void Start()
     {
 
         Monetization.Initialize (store_id, true);
 
     }
     public void ShowAd() {
         
         if (Monetization.IsReady("RoundEnd"))
         {
             ShowAdPlacementContent ad = null;
 
             ad = Monetization.GetPlacementContent (placementID) as ShowAdPlacementContent;
 
             if (ad != null) {
                 ad.Show ();
 
             }
     }
 
 }
 
 }
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by EvanCheddar · Jan 26, 2019 at 04:12 AM
For some inexplicable reason it started working on my last play test.
Your answer
 
 
             Follow this Question
Related Questions
Why does object movement get saved to scene editor? 2 Answers
Unity Lock Up and Mouse Clicking Issue 1 Answer
Editor crashes when I press play 1 Answer
[Simple yet problematic] Array looses all the variables when I hit "Play" 2 Answers
Can I get some profile output inside unity iphone's editor itself? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                