playMaker

Author Topic: [SOLVED] I would like to know how to set up a UnityAds.  (Read 23081 times)

jongkook

  • Playmaker Newbie
  • *
  • Posts: 34
[SOLVED] I would like to know how to set up a UnityAds.
« on: December 28, 2015, 06:56:00 AM »
I would like to know how to set up an UnityAds using the services included in Unity.
When user click the button the movie is being played
After viewing the video advertising that would like to set the coin as a reward.
Unity version 5.3.1
« Last Edit: December 31, 2015, 06:44:43 AM by jongkook »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: I would like to know how to set up a UnityAds.
« Reply #1 on: December 29, 2015, 04:37:49 PM »
Hi,

 Are you able to show an ad properly already?

If you are not, the actions are available on the Ecosystem



WARNING: do not follow the Unit doc when it says you need to download a package from the asset store, Unity 5.3 comes with Unity ads as is, so you don't need anything extra from Unity for ads to work if you are on 5.3

-- use "UnityAdsInitialize" at the beginning of your scene ( use the GameId from the Unity setup on the Cloud inspector)



-- use "UnityAdsShowAd" when you want to show an ad

-- the other "UnityAdsXXX" are for more granular control over ads, and not mandatory for the minimum setup.



If you are already setup, then it's a question of using the action "UnityAdsShowAd" properly, and using the 3 different event you can get when showing an ad:

-- Skipped
-- Success
-- Failed

obviously, you only want to reward your user if this action fires the "Success" event.

 Does that make sense?

Let me know if you need more clarification.

Bye,

 Jean

jongkook

  • Playmaker Newbie
  • *
  • Posts: 34
Re: I would like to know how to set up a UnityAds.
« Reply #2 on: December 30, 2015, 04:59:08 AM »
I was wondering how to do this in the playmaker editor.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: I would like to know how to set up a UnityAds.
« Reply #3 on: December 31, 2015, 05:12:56 AM »
Hi,

 Here's a screenshot ( thanks Alex :) ) on a basic setup.

 Let us celebrate new eves, and early next week, I'll do a video and sample from start to finish on how to integrate UnityAds, ok?




Bye,

 Jean
« Last Edit: December 31, 2015, 08:43:43 AM by Alex Chouls »

jongkook

  • Playmaker Newbie
  • *
  • Posts: 34
Re: I would like to know how to set up a UnityAds.
« Reply #4 on: December 31, 2015, 06:39:55 AM »
Thank you. The test results are good.

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #5 on: January 11, 2016, 11:12:39 AM »
Hi. How far are you with the video? ;)

Thx in advance.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #6 on: January 11, 2016, 11:38:08 AM »
Hi,

 Pushing the sample on the Ecosystem likely tomorow morning, with the video :)

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #7 on: January 13, 2016, 02:05:45 AM »

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #8 on: January 13, 2016, 11:18:35 AM »
Thx a lot for the tutorial. I have one question. I don´t build on IOS. Only Android.
do I also have to choose IL2CPP at scripting backend for android? Because if I choose IL2CPP then Unity say that it is unsupported for android. In unity editor it seems to work. but not on device. it says ad ready but fails on device too. tried it in testmode and without testmode.

Pls could you help?

sry for my english ;)

thx in advance

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #9 on: January 13, 2016, 11:38:24 AM »
Hi,

 Unfortunatly I don't own an android device, so I can't test in this case. I am pretty sure Unity Ads works on Android, but may require specific player settings indeed.

if you deploy without il2cpp does it work?

 Bye,

 Jean

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #10 on: January 13, 2016, 11:57:16 AM »
normaly i build with Mono2x and everything works except unity ads. if i try build with il2cpp then after 3/4 of the buildprocess unity says "invalid NDK version - unable to detect NDK version, please pick a different folder.

someone else may have an android device and an idea how this works? ;)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #11 on: January 13, 2016, 12:49:17 PM »
Hi,

 Well, then do't use ILC2PP on android, maybe IL2CPP is only mandatory when distributing for the IOS app store.

 Bye,

 Jean

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #12 on: January 13, 2016, 05:09:29 PM »
but with mono2x it also don´t works

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #13 on: January 14, 2016, 01:16:00 AM »
Hi,

 Ah ok, sorry about the confusion. Can you try a project without PlayMaker that feature ads ( you have code sample in the ads doc). If that doesn't work still, then you should contact Unity, else, we'll look further.

Bye,

 Jean

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
Re: [SOLVED] I would like to know how to set up a UnityAds.
« Reply #14 on: January 14, 2016, 08:34:32 AM »
Ok. I installed the newest unity version and made project without playmaker. enabled unity ads and choose the code snippet from here http://unityads.unity3d.com/help/monetization/integration-guide-unity#showing-an-ad-placement

This works on my android device without problems.

then i installed playmaker 1.8 and ecosystem to this project. downloaded your sample from ecosystem. and this give me the fail event on my device and no ads.

UnityVersion: 5.3.1f1
Playmaker: 1.8.0f40
« Last Edit: January 14, 2016, 08:41:12 AM by Weedsh »