[Unity3d] Admob Unity Plug-in use Google Play Services, support Interstitial

If you Making game with Unity and Looking for “admob integration” solution, this is it

This Admob Plug-in was made from Unity4.3 and Android SDK

///////////////////////////////////////////////////////
VERSION:
at March 25, 2014

1.0
FREE version: Download below attachments

///////////////////////////////////////////////////////
FEATURES:

  • easy to use
  • support banner types
  • support interstitial
  • support align adview
  • support a test device

///////////////////////////////////////////////////////
How to use?

https://www.youtube.com/watch?v=AK9-vW2cNpI

NOTE: the Publisher ID of “the old Admob” is Ad unit ID of “the new Admob”

Banner types:

  1. Import the Admob_VNTIS_1.0_FREE.unitypackage

  2. Drag and drop the AdmobVNTISObject prefab (locate at Assets\AdmobVNTIS) to your scene

  3. In the Inspector of AdmobVNTISObject, fill your Admob Publisher ID

  4. Fill your test device ID (just 1) for test, otherwise leave blank

  5. Choose your Advertisement Size (type)

  6. Add rules to align Adview
    6.1 Expand the Advertisement Rules
    6.2 Set Size : the numbers of alignment rules you need
    6.3 Set rule on each Elements

  7. Build & run on device => Done

Interstitial:

  1. Import the Admob_VNTIS_1.0_FREE.unitypackage

  2. Drag and drop the AdmobVNTISInterstitialObject prefab (locate at Assets\AdmobVNTIS) to your scene

  3. In the Inspector of AdmobVNTISInterstitialObject, fill your Admob Publisher ID

  4. Fill your test device ID (just 1) for test, otherwise leave blank

  5. Check Show Interstitial On Load

  6. Build & run on device => Done

Manually load and show Interstitial ad:

  1. Do from step 1 to 4 as instruction above (uncheck Show Interstitial On Load)
  2. Use other object, try to gain access to AdmobVNTIS_Interstitial script component of AdmobVNTISInterstitialObject and call methods you want: bool isInterstitialLoaded(), void displayInterstitial(), void loadInterstitial()

Example:

https://www.youtube.com/watch?v=zjnU89vtcnU

a CubeObject has script:

public class AdmobVNTIS_Interstitial_Demo : MonoBehaviour {
public AdmobVNTIS_Interstitial x; // <<< drag and drop AdmobVNTISInterstitialObject in Hierachy (not from Assets) to here
void OnMouseDown (){
[INDENT]if(x.isInterstitialLoaded()){ //check if the interstitial ad is loaded[/INDENT]
[INDENT][INDENT]x.displayInterstitial(); //display the ad
x.loadInterstitial(); //load the ad for the next display[/INDENT][/INDENT]
[INDENT]}[/INDENT]
}
}

Result: touch the CubeObject, the insterstitial will show
Remember: ad must be loaded before display. However, AdmobVNTISInterstitialObject on start will load the first ad, so you can call displayInterstitial() then. Next times, you need to call loadInterstitial() first.

GOOD LUCK

////official support topic, visit
http://forum.unity3d.com/threads/236156-Admob-Unity-Plug-in-use-Google-Play-Services-support-Interstitial

Nice. Was searching for one. Thanks.

sisusisu