playMaker

Author Topic: Unity Ads 2.0 - Not working  (Read 768 times)

Robiwan

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Unity Ads 2.0 - Not working
« on: December 29, 2016, 05:06:59 AM »
I'm having problem with upgrading to Unity Ads 2.0 in Unity 5.4.3

As Unity Ads 1.5x is now deprecated, https://forum.unity3d.com/threads/unity-ads-1-5x-is-now-deprecated.444868/#post-2889937

I was wondering if anyone had gotten Unity Ads 2.0 working with playmaker?

Groo Gadgets

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Re: Unity Ads 2.0 - Not working
« Reply #1 on: December 31, 2016, 05:47:21 PM »
Heya,

I'm using 5.5 with Unity Ads, not sure what version i'm using. Is there an indicator in my project to the version number of the ads i'm using?

If I am using 2.0 then upgrading to Unity 5.5 should be the solution   :D

Phuzz

  • Junior Playmaker
  • **
  • Posts: 94
    • View Profile
    • Bzilla Games
Re: Unity Ads 2.0 - Not working
« Reply #2 on: May 09, 2017, 11:13:29 PM »
Hello,

I finally got Unity Ads 2.0 to work in my project using Unity 5.6, what I did is a work around but it does the job well. Since i am a not a programmer I didn't know the proper code to adjust the existing ecosystem Unity Ads actions but I had found out where the problem was, and here is what I did.

1. Using the built in extension didn't seem to work, so you have to uncheck the "Enable Built In Extention" and download the Unity Ads package from the Asset Store https://www.assetstore.unity3d.com/en/#!/content/66123

2. Download the Unity Ads actions from the Ecosystem, edit the scripts and remove any line that starts with #if or # else. The problem seems to be no connection between these commands and Unity itself, removing them brought the actions back to life.  :)

3. Use the action "Platform dependent event", that's available on the ecosystem to choose which action to trigger whether it is android or iOS incase you are targeting more than one platform. all you have to do is initialize the target platform at the start of the game, later on all ads actions will respond accordingly.

I hope this helps incase it hasn't been figured out yet :)
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Unity Ads 2.0 - Not working
« Reply #3 on: May 10, 2017, 02:27:28 AM »
Hi,

 It's likely because you don't target IOS or Android and/or you haven't enabled  Unity ads in your Project Services.

I tested with 5.6 and it works as is, minus some obsolete warnings and one action that needs to be deleted because not supported anymore.

 I'll update the actions, but you don't need to edit the actions and remove the #IF

Bye,

 Jean

jasperPT

  • Full Member
  • ***
  • Posts: 101
  • I am a VFX Animator teaching myself to make games
    • View Profile
Re: Unity Ads 2.0 - Not working
« Reply #4 on: May 10, 2017, 03:03:43 AM »
Hi Jean,

Can you let us know when the actions have been updated, I am having the same issue and it does not seem to just work out of the box in 5.6 for me even in a clean project with Unity Services ads setup.
(you replied in a previous thread I made on the same topic as well)

Once you have updated the action set I will try again.

Thanks so much for responding so quickly to this by the way, much appreciated.

Phuzz

  • Junior Playmaker
  • **
  • Posts: 94
    • View Profile
    • Bzilla Games
Re: Unity Ads 2.0 - Not working
« Reply #5 on: May 10, 2017, 09:53:02 AM »
Hi,

 It's likely because you don't target IOS or Android and/or you haven't enabled  Unity ads in your Project Services.

I tested with 5.6 and it works as is, minus some obsolete warnings and one action that needs to be deleted because not supported anymore.

 I'll update the actions, but you don't need to edit the actions and remove the #IF

Bye,

 Jean

Strange that I am targeting Android and iOS , it only worked the way I posted earlier after alot of attempts, I will double check now maybe something wrong in my original setup, i will report back, thank you
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Unity Ads 2.0 - Not working
« Reply #6 on: May 11, 2017, 01:06:40 AM »
Hi Jean,

Can you let us know when the actions have been updated, I am having the same issue and it does not seem to just work out of the box in 5.6 for me even in a clean project with Unity Services ads setup.
(you replied in a previous thread I made on the same topic as well)

Once you have updated the action set I will try again.

Thanks so much for responding so quickly to this by the way, much appreciated.

That's odd, I did started on a frehs project and it worked fine, but indeed I did set up UnityAds in my services, switched to IOS/Android.

 I'll let you know when actions are updated. Follow me on twitter, I'll also announce it there. https://twitter.com/JeanAtPlayMaker

 Bye,

 Jean

jasperPT

  • Full Member
  • ***
  • Posts: 101
  • I am a VFX Animator teaching myself to make games
    • View Profile
Re: Unity Ads 2.0 - Not working
« Reply #7 on: May 14, 2017, 02:14:35 PM »
Hey Jeanfabre

I did in fact get it to work in a clean project over the weekend, so have transferred everything across to that project.

In my old project I was having trouble as unity would not install unityads by default (turning off and on unity ads in services) so I had to try and download the asset from the asset store, but that seemed to conflict with the playmaker actions for some reason.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Unity Ads 2.0 - Not working
« Reply #8 on: May 15, 2017, 01:45:47 AM »
Hi,

 That's very odd indeed. You should file a report to Unity explaining what you did, maybe there is a logical reasons for this or a hack they know.

Bye,

 Jean