Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Earning a reward when the ad is watched...

Discussion in 'Unity Ads & User Acquisition' started by ShazBang, Feb 3, 2015.

  1. ShazBang

    ShazBang

    Joined:
    Nov 3, 2014
    Posts:
    21
    Hello everybody, I just came here to ask if any of you guys could help me out with adding an ad for coin kind of deal in my android app.

    I haven't created the store menu yet, but I have the ads in my game ready to go. How could I make the user watch an ad and earn a coin?

    I'm thinking of creating a separate scene and when you click a button on the menu it will take you to that scene where the ad is displayed. each time the player visits that scene I would give them a coin or something... sound good?

    If you guys have any ideas that would work please let me know :)

    Also, does the user need to watch the full video in order for me to gain profit or just until the "skip" button appears?

    Thanks.
     
    Salazar likes this.
  2. SuperNoctiz

    SuperNoctiz

    Joined:
    Jan 24, 2014
    Posts:
    20
    I'm actually in need of something similar, so if you don't mind I borrow your thread :D
    I'll share what I know so far, which is little but it could give you any idea.
    I know this refers to ad placements, but I'm lost as to how to implement or change the default one, I don't think that FAQ gives enough details on how to use it properly.

    Your idea of making a different scene so the player can watch an ad, IMO is unecessary ;)
     
  3. Ericmatheus

    Ericmatheus

    Joined:
    Aug 11, 2014
    Posts:
    68
    I want to know how much ads the people watched and i want to know when and how use UnityAds.canShow(),i don't know how answer you sorry,kkk,well i know something like this i don't if help you...

    switch (result)
    {
    case ShowResult.Finished:
    tx.text = ("Thank you for watching");
    break;
    case ShowResult.Skipped:
    tx.text = ("Please watch full ads next time");
    break;
    case ShowResult.Failed:
    tx.text = ("Some error ocurred");
    break;
    }
     
    Salazar likes this.
  4. Salazar

    Salazar

    Joined:
    Sep 2, 2013
    Posts:
    235
    Hello,

    -Here is a sticky forum thread , about up and running unity ads in 10 steps.
    - In this thread there is production ready scripts. If you look into
    Code (CSharp):
    1. public static void HandleShowResult (ShowResult result)
    2.     {
    3.         switch (result)
    4.         {
    5.         case ShowResult.Finished:
    6.             Debug.Log("The ad was successfully shown.");
    7.             break;
    8.         case ShowResult.Skipped:
    9.             Debug.Log("The ad was skipped before reaching the end.");
    10.             break;
    11.         case ShowResult.Failed:
    12.             Debug.LogError("The ad failed to be shown.");
    13.             break;
    14.         }
    15.     }
    This is where you define how to behave against user-ad interaction.
    If you still cant implement your coins after reading that documentation, feel free to ask..

    Users must watch full video. If they skip the video dont give them anything =)
    Regards,
     
    unity-nikkolai likes this.
  5. SuperNoctiz

    SuperNoctiz

    Joined:
    Jan 24, 2014
    Posts:
    20
    unity-nikkolai likes this.