Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by saru15 · May 30, 2015 at 04:53 PM · c#unity 5iosads

UnityAds only showing test mode ads and no statistics

Hi I've implemented the unity ads in my latest game and it is live on the appstore link: https://itunes.apple.com/us/app/target-36/id991261199?ls=1&mt=8

but what i'm getting is its only showing the unity test ads not the production ads i'm not getting any statistics also. here is the script that i've using to show the unity ads.

Ads will show every third time your game is over please help me

using UnityEngine; using System.Collections; using UnityEngine.Advertisements;

public class AdManager : MonoBehaviour { [SerializeField] string gameID = "38220";

 void Awake()
 {
     Advertisement.Initialize (gameID, true);
 }

 public void ShowAd(string zone = "")
 {
     #if UNITY_EDITOR
         StartCoroutine(WaitForAd ());
     #endif

     if (string.Equals (zone, ""))
         zone = null;

     ShowOptions options = new ShowOptions ();
     options.resultCallback = AdCallbackhandler;

     if (Advertisement.isReady (zone))
         Advertisement.Show (zone, options);
 }

 void AdCallbackhandler (ShowResult result)
 {
     switch(result)
     {
     case ShowResult.Finished:
         Debug.Log ("Ad Finished. Rewarding player...");
         break;
     case ShowResult.Skipped:
         Debug.Log ("Ad skipped. Son, I am dissapointed in you");
         break;
     case ShowResult.Failed:
         Debug.Log("I swear this has never happened to me before");
         break;
     }
 }

 IEnumerator WaitForAd()
 {
     float currentTimeScale = Time.timeScale;
     Time.timeScale = 0f;
     yield return null;

     while (Advertisement.isShowing)
         yield return null;

     Time.timeScale = currentTimeScale;
 }

}

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
9
Best Answer

Answer by HeikkiTunkelo · Jun 01, 2015 at 03:51 PM

The second parameter on the initialization controls the test mode:

  void Awake()
  {
      Advertisement.Initialize (gameID, true);
  }

You can control the test mode in three ways:

  1. You initialize ads in your game with testmode parameter (which you have done) => This will show test ads in all devices for testing purposes

  2. You can override this (never show test-ads or always show test ads) in Unity Ads admin

  3. Or you can show test-ads to specific devices

You can control the options 2 & 3 here: (go to games -> Click on your game -> Monetization settings -> Advanced settings -> Ad Test mode

What you should do now is: Go to your UnityAds account and select "Force Off" option in the Ad Test mode. The value should be updated to the ad-delivery within 15 minutes.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image karanvariya · Mar 20, 2018 at 10:49 AM 1
Share

Thanks.this work.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Unity ads are working in editor but not on android device 2 Answers

Chartboost adds are not showing up on android 0 Answers

Unity C# lean script not working properly 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges