Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
2
Question by aleexaib · Apr 08, 2016 at 07:17 PM · unity 5renderingadsserviceunityads

Unity ads not showing rewarded video ad.

Hi, I am using unity ads from service window, normal add ir working fine but when it comes to rewarded ad it is not popping up.

 Debug.Log(Advertisement.IsReady("rewardedVideoZone"));

this line always return a false value.

This is my configuration in service window. alt text

And this is the code for showing rewarded ad.

  public void ShowRewardedAd()
       {
           Debug.Log(Advertisement.IsReady("rewardedVideoZone"));
         if (Advertisement.IsReady("rewardedVideoZone"))
         {
           var options = new ShowOptions { resultCallback = HandleShowResult };
           Advertisement.Show("rewardedVideoZone", options);
         }
       }
     
       private void HandleShowResult(ShowResult result)
       {
         switch (result)
         {
           case ShowResult.Finished:
             Debug.Log("The ad was successfully shown.");
             //
             // YOUR CODE TO REWARD THE GAMER
             // Give coins etc.
             break;
           case ShowResult.Skipped:
             Debug.Log("The ad was skipped before reaching the end.");
             break;
           case ShowResult.Failed:
             Debug.LogError("The ad failed to be shown.");
             break;
         }
       }

Any help will be highly appreciated.

capture.png (55.2 kB)
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 sam61 · Apr 08, 2016 at 07:47 PM

@aleexaib please use

Advertisement.IsReady("rewardedVideo")

and

Advertisement.Show("rewardedVideo", options)

I pushed a change that'll fix these in the documentation. Sorry for the hassle.

Comment
Add comment · Show 6 · 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 IvanRoyLoewen · Apr 09, 2016 at 06:09 PM 0
Share

this worked for me! thank you.

avatar image aleexaib · Apr 09, 2016 at 06:58 PM 0
Share

@sam61 It worked, thank you so much for your quick response, really appreciated. But why unity will do such a blunder.

avatar image K97 · Jun 04, 2016 at 12:13 PM 0
Share

Thank you!

avatar image victor-soares655 · Aug 08, 2016 at 07:20 PM 0
Share

It's still wrong in Services tab > ADS > Code Samples > Rewarded :s

Thank you for the answer. :)

avatar image evance · Aug 15, 2016 at 02:42 PM 0
Share

Worked for me too.Thanks!. After trying all options. Unity should update this. I thought my app had bugs, spent like 3 days trying to debug.

Show more comments

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

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity switches scenes when Ad is closed. 0 Answers

Unity Ads when Internet not available in starting game , how i can iInitialize, in during game when internet be available? 0 Answers

Problems with revenue after getting 5000+ impressions 0 Answers

Unity Ads not showing in editor (dummy ad placement is not showing too) as well as in the build. 2 Answers

Disabling button when Ads not available? 0 Answers


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