Saturday, 17 November 2018

Admob Scripts For C#

How to setup Admob?

1. Register Admob account at https://www.google.com/admob/
2. Go to "App" and select your chosen app
3. If you don't have any app yet. Select "Add App" and fill the form.
4. After adding app, under "Ad units" and select "Add Ad Unit"
5. In Add Ad Unit tab, choose your Ads (Banner, Interstitial or Rewarded)

Here is the example :


6. After that select "App Settings" and Link your App in Google Play

Here is the example :


7. Now you all set



Let's make a scripts to implement your Ads.

Here are the scripts :

AdBanner



AdInterstitial


Don't forget to use your own AdUnit ID and attach it's script to any related "Buttons" to ShowAd
Banner show by itself and Yes, I tested with HideBanner or DestroyBanner in my script and turned out Banner never appear. (Do hope people would "fixed" my script)

p/s : Still working on Rewarded Video Ad script.

Note : Visual Studio + Unity3D

No comments:

Post a Comment