- Home /
LeadBolt Ads For Android
I have downloaded sample project demo scene of LeadBolt Ad.
That Scene Works Perfectly and showing LeadBolt Ads In Banner ..
Now for that , Script which i am using has below code :
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
using System;
public class CallJavaCode : MonoBehaviour {
void OnGUI ()
{
if (GUI.Button(new Rect (60, 125, 200, 100), "Click to get Ads"))
{
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject>("currentActivity");
using(AndroidJavaObject adsClassI = new AndroidJavaObject("com.unity3d.wrapper.i.IWrapper", jo))
{
//988252279 banner
//716330258 unlocker
//324021230 audio
adsClassI.Call("loadLeadboltAds", "988252279", 0);
}
using(AndroidJavaObject adsClassX = new AndroidJavaObject("com.unity3d.wrapper.x.XWrapper", jo))
{
//932367527 notification
//138930168 icon
adsClassX.Call("loadLeadboltAds", "138930168", 1);
}
}
}
}
My Problem is that , the code 988252279 which is used for LeadBolt Ad if i write some another code for different ad instead of this code, then its not working.
I don't want to show ad of Leadbolt.. Then what should i need to do?
Please help me and suggest me some solution regarding this issue. And If I am Going In Wrong Direction then also let me know..
Thanks in advance for your support..
Prime 31 is good plugin for $$anonymous$$erboards and Achievements in game following link for that plugin you can buy this from unity assets store. http://prime31.com/
ok thanx.. But I want solution regarding $$anonymous$$Bolt Plugin..
Just to clarify: you have already set up your ads on the $$anonymous$$bolt website, but when you try to use the ad ID codes they give you, they don't work?
Answer by Swordmaster2552 · Mar 02, 2014 at 07:53 AM
All of your LeadBolt ads are going to show the default LeadBolt banner or logo until you move your app out of testing mode. Once your app goes live, different, real ads will be displayed.