Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

Where can I put Ad admob ID?

$
0
0
Can you help me Where can I put Ad admob ID? using System; using UnityEngine; /// /// Advertising sample. /// This is a reference/sample script for implementing ads in your mobile game. /// For our Google Play version we used Chartboost. /// public class AdvertisingSample: MonoBehaviour { public bool forceShowInterstitial = false; // bool/toggle so we can check and force an interstitial at certain moments in the game public bool hasInterstitial = false; // is an interstitial cached? public bool hasRewardedVideo = false; // is a rewarded video cached? void Awake(){ Scripts.advertising = this; } void OnEnable() { // Do stuff } void Start() { // Do stuff // E.g. Cache video/interstitials, setup delegates, whatnot... CacheInterstitial(); CacheVideo(); // Register me Scripts.advertising = this; } public void CacheInterstitial(){ hasInterstitial = true; } public void ShowInterstitial(){ Debug.Log("[AdvertisingSample] ShowInterstitial called"); } public void CacheVideo(){ hasRewardedVideo = true; } public void ShowVideo(){ Debug.Log("[AdvertisingSample] ShowVideo called"); } }

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>