I am integrating UnityADS, and I pc works fine even connect the phone via the Remote Unit, but when I generate the apk and install on your phone, not working.
Want ads shown even more pressing the button to exit the game, and after the end of the game show the video display.
As I say the PC works well as it is easy to implement, but with the apk, no.
Can someone help me out?.
Thank you.
Sorry if my English is not good.
Hello Rasmus-unity, as I said on the phone, with the apk, not shown, and if PC.
I followed the tutorial they have on their website here: https://unity3d.com/es/learn/tutorials/modules/beginner/live-training-archive/integrating-ads
In the PC shown in the video as well, it not if you ask me is a snapshot, as seen on the PC. If so, it’s like in the tutorial.
I have a button, which causes change of scene, the game, the score screen when the player wants to stop playing, and that’s when I want the announcement mueste before changing scene and show the scene scoring .
It is how I want it to work, and work (only pc).
I forgot to say that installed on the phone, what it does is it returns to the game screen, without going through the score.
Jo part of the code that have changed, the rest is the same as the tutorial (changing the ID clear jjj).
You dont call Advertisement.Show() in that code. How do you expect it to work if you’re not showing any ads.
Also, your method of waiting for ad to finish via co-routine is aweful. But if youre new to coding, no biggie. The proper way is to hook into ad events.
Hello, JamesLeeNZ, if I am new to this. But I tell you that since only part of the code, the rest is the same as the tutorial link I put previously, as I should work the same.
Tell you also that ads are shown, but only on the PC, and Unity Remote. The problem comes when I think the apk file and install it on the phone.
If I do not have either the code, which would be the right way to do ?.
And I tell you that I have followed the tutorial, and if you want I leave the complete code.
If that still gives problems, take a look at the Android logs (e.g. using “adb logcat” from command line) to see if you get any information from there (network problems etc). If it works, you need to figure out why the code in your game doesn’t show ads. But given your code sample above using coroutines, I think you might be able to simplify your code for showing ads.
I have reviewed the documentation you mention me, and see that there are errors to implement only the code. I leave it in the image.
I tried it with a new project, which explains unity-nikkolai, here: Issues in migrating to 5.2 - Unity Services - Unity Discussions
I have also put the sample code that comes from the tab Unity - Services, and anyway, I always get the same mistakes.
I thought it was easy, but I think in the end I have to leave, I’ve tried everything, and nothing.
Go into Unity Ads Services, setup whats required there. You might need to log into the UnityAds Website/dashboard and setup your game as supporting ads there. I did it a few weeks ago, but I cant remember if the support section built into Unity took care of that part.
in your code put this somewhere.
if(Advertisment.IsReady())
Advertisement.Show();
Thats it. There more if you want the callback, but for starters, it doesnt get much harder than that. If you turn on Test Mode in Ad Services you will see ads on pc.
If you are that easy, so I got a little tired, and it seems I’m stupid.
The issue is also that has changed in the version of Unity, which is what I have.
I put the code, Ctrl + C and Ctrl + V, the example is Unity, and nothing gives me a lot of mistakes.
I’ll see if I can import the project to 4.6 I already miss tests and doing well.
Hola, MaestroMMT, ya he resuelto.
Hay cambios en el panel de control de la ADS, yo y mi sĂłlo funciona con el ID de la nueva pieza.
Tuve que crear un nuevo proyecto y poner los nuevos valores en el cĂłdigo.
El tutorial que he dicho al principio, y he tomado sĂłlo lo que es “verdad”, la lĂnea 14
Advertisement.Initialize (“xxxxxxx”, true);
usted ha puesto su.
Hello nikkolai and thank you for your time and your nice code, I will use it
Finaly, I found my mystake after a day searching. Both Android and IOS platforms were selected in unity ads service, and you should select only one to see it works.
Futhermore, I imported ads package from the asset store whereas unity ads was already included in 5.2 (I had a .jar conflict with the existing solution)
@MaestroMMT You should be able to have both platforms checked in the Settings section of Ads in the Services window without any issues. It just indicates which platforms should include the built in API.
If you are using the built in Unity Ads API, you should remove the Unity Ads asset package contents from your project.