Special Admob Decumentation

shape
shape
shape
shape
shape
shape
shape
shape

Get our package link

Documentation

Import package to unity project

  1. Open the Ngadmob -> prefabs -> MyPrefabs (Insert this prefabe to star scene your project on BuildSetting) Dont remove anything in prefabs
  2. Then Lets Coding

Get our package link

Set the link adunit

this sample link you can use this to try example https://dl.dropboxusercontent.com/s/pd3w1biuzm4moe6/test.json

To change the link you can do on prefabs or programaticaly

// Set on inspector

//Set programaticaly

void Start()
     {
         //change url script
         ApplicationNgadmob.Demo.Instance.Url = "URL";
     }

Show Banner

  • Set banner to active (two methode on inspector and programaticaly)

//on inspector unity

You can set with open inspectore of MyPrefabs on your scene

//by programaticaly

To showing banner or hide banner ( show when your scene need banner and hide when your scene not want to show banner)

void Start()
     {
         //programaticaly set value
         //TheMobs.instance.bannerActive = true;
         //TheMobs.instance.positionBanner = GoogleMobileAds.Api.AdPosition.Top;  

         //To showing banner
         TheMobs.instance.ShowBanner();

         //To hide banner
         TheMobs.instance.HideBanner();
}

Show Interstitial

void Start()
     {    
//To show banana interstitial (place this call to your script)
    TheMobs.instance.BananaInterstitial();

}

Show Reward

void Start()
{
    //To show reward and set reward to user
    //if you forget to SetReward user will not get the reward;
    TheMobs.instance.SetReward += Instance_SetReward;
    TheMobs.instance.BananaReward();

}

private void Instance_SetReward()
{
    //Get Reward user
}

Thank you to use our package don’t forget to make a coffe before;

Get our package link

Leave a Reply

Your email address will not be published. Required fields are marked *