Playmaker Forum

PlayMaker Help & Tips => Unity Services => Topic started by: Orjax on May 13, 2017, 10:16:15 PM

Title: Unity ads not supported in editor [SOLVED]
Post by: Orjax on May 13, 2017, 10:16:15 PM
Unity ads do not work in editor, stuck in "show ad" state.
In my game I set it up just like the tutorial, (I have another game and they work fine)   

It gets stuck in the "show ad" state,  it does not give a failed or not ready event.
So I started with a "is ad ready" then move to show ad,  It got stuck there too, no event is sent.

So then I put a "Is supprted" action,  and it sends not supported event. (see screenshots)

when I enabled ads it auto gave me IDs for android and IOS, I am in Android build platform.  Test build is enabled, not sure why the test ad doesn't show.

I downloaded the unity ads asset from the store, (then watched a tutorial saying not to)  It didnt work, so I deleted the plugin in project (android and IOS ads)
still didnt work,  Deleted Unity ads in project.  still no. Tried all the settings I can think of.  Researched, didn't find what I need. 

The only event I can get is "not supported" but not sure why.
Please help,  thank you, :-)

Cant attach screenshots,
Title: Re: Unity ads not supported in editor
Post by: Orjax on May 13, 2017, 10:28:23 PM
here is a couple screenshots
Title: Re: Unity ads not supported in editor
Post by: Orjax on May 13, 2017, 10:29:34 PM
and of the not supported event.
Title: Re: Unity ads not supported in editor
Post by: jeanfabre on May 15, 2017, 02:40:10 AM
Hi,

 It's likely a problem of setup, another member mentionned some issues with the project not turning on UnityAds in the services.

 Can you try on a fresh project with the latest version of Unity and PlayMaker? Also make sure you are on android or IOS platform ( I can see from the screenshot you are, but don't forget on your fresh project)

Bye,

 Jean
Title: Re: Unity ads not supported in editor
Post by: Orjax on May 16, 2017, 12:22:05 PM
I made a fresh project, put to android, and it worked.  Added a FPS deleted old camera,  and did everything else I did in original project,  I could not repeat the problem i'm having.  Not sure what is wrong, or why it doesnt' work in my project.

Maybe I should copy my stuff to a new project.  I've put a lot of work into it.  Which folders do I copy? Assets, project settings, library?

I dont want to copy whatever setup is wrong though.  thanks for the help.
Title: Re: Unity ads not supported in editor
Post by: Orjax on May 16, 2017, 02:05:13 PM
So i copied assets, project settings and and library to a new project.  Still had the same problem. I started messing with my new copied project.

When I removed the "project settings" folder and opened project again, then the ads worked, but it messed up some other stuff. 

Which file in project settings can I remove to reset the ads stuff? And not affect other stuff?

Thank you,
Title: Re: Unity ads not supported in editor (SOLVED)
Post by: Orjax on May 16, 2017, 03:38:26 PM
After messing around a lot, I found it.

I went to my original project   ProjectSettings folder and deleted the
UnityConnectSettings.asset   when I opened my project I enabled ads and it works.

Not sure what happened when I turned on ads the first time,...  but resetting the projectsettings unityconnectsettings.asset worked for me!

Ok back to my game,    Thank you jeanfabre 
Title: Re: Unity ads not supported in editor [SOLVED]
Post by: jeanfabre on May 17, 2017, 02:14:26 AM
Hi,

 Excellent. The Unity service is sometime capricious indeed.

 Bye,

 Jean