Admob with javascript
Hi
i have a game in unity 3d developped by Javascript and i wont to make interstitial(admob) in a specific action like when the player was die
when i download package admob i found using c# but i need show admob in javascript script
some one help me please ?
Answer by spinnerbox · Sep 23, 2015 at 03:01 PM
I am not skilled with Ads in Unity, but I guess this is what you are looking for: https://developers.google.com/admob/games#unity
You can use both C# and JS in the same project and they will work just fine as long as you don't mix both in the same file.
My guess is, you will need to edit some access credentials of your game, like Andoid App ID etc... into this C# plugin.
Here is another helpful topic: http://answers.unity3d.com/questions/10856/cant-find-namespace-accessing-javascript-from-c-or.html You can reference C# functions from JavaScript(UnityScript)
Answer by ugameplayer111 · Apr 20, 2017 at 08:31 AM
All c# and js is the same this is the c# demo https://github.com/unity-plugins/Unity-Admob/blob/master/AdmobPluginRes/admobdemo.cs
Your answer
Follow this Question
Related Questions
Variables not showing up in Inspector (JavaScript) 2 Answers
Help with variables 1 Answer
Javascript Animation Playing Error 1 Answer
One Shot Sound After Countdown JS 1 Answer