C# Class admob.Admob

ファイルを表示 Open project: unity-plugins/Unity-Admob Class Usage Examples

Public Methods

Method Description
Instance ( ) : Admob
initAdmob ( string bannerID, string fullID ) : void
isInterstitialReady ( ) : bool
isRewardedVideoReady ( ) : bool
loadInterstitial ( ) : void
loadRewardedVideo ( string rewardedVideoID ) : void
removeBanner ( string instanceName = "defaultBanner" ) : void
removeNativeBanner ( string instanceName = "defaultNativeBanner" ) : void
setForChildren ( bool v ) : void
setTesting ( bool v ) : void
showBannerAbsolute ( AdSize size, int x, int y, string instanceName = "defaultBanner" ) : void
showBannerRelative ( AdSize size, int position, int marginY, string instanceName = "defaultBanner" ) : void
showInterstitial ( ) : void
showNativeBannerAbsolute ( AdSize size, int x, int y, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
showNativeBannerRelative ( AdSize size, int position, int marginY, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
showRewardedVideo ( ) : void

Private Methods

Method Description
_kminitAdmob ( string bannerid, string fullid, AdmobAdCallBack callback ) : void
_kmisInterstitialReady ( ) : bool
_kmisRewardedVideoReady ( ) : bool
_kmloadInterstitial ( ) : void
_kmloadRewardedVideo ( string rewardedVideoID ) : void
_kmremoveBanner ( string instanceName ) : void
_kmremoveNativeBanner ( string instanceName ) : void
_kmsetForChildren ( bool v ) : void
_kmsetTesting ( bool v ) : void
_kmshowBannerAbsolute ( int width, int height, int x, int y, string instanceName ) : void
_kmshowBannerRelative ( int width, int height, int position, int marginY, string instanceName ) : void
_kmshowInterstitial ( ) : void
_kmshowNativeBannerAbsolute ( int width, int height, int x, int y, string nativeID, string instanceName ) : void
_kmshowNativeBannerRelative ( int width, int height, int position, int marginY, string nativeID, string instanceName ) : void
_kmshowRewardedVideo ( ) : void
onAdmobEventCallBack ( string adtype, string eventName, string msg ) : void
preInitAdmob ( ) : void

Method Details

Instance() public static method

public static Instance ( ) : Admob
return Admob

initAdmob() public method

public initAdmob ( string bannerID, string fullID ) : void
bannerID string
fullID string
return void

isInterstitialReady() public method

public isInterstitialReady ( ) : bool
return bool

isRewardedVideoReady() public method

public isRewardedVideoReady ( ) : bool
return bool

loadInterstitial() public method

public loadInterstitial ( ) : void
return void

loadRewardedVideo() public method

public loadRewardedVideo ( string rewardedVideoID ) : void
rewardedVideoID string
return void

removeBanner() public method

public removeBanner ( string instanceName = "defaultBanner" ) : void
instanceName string
return void

removeNativeBanner() public method

public removeNativeBanner ( string instanceName = "defaultNativeBanner" ) : void
instanceName string
return void

setForChildren() public method

public setForChildren ( bool v ) : void
v bool
return void

setTesting() public method

public setTesting ( bool v ) : void
v bool
return void

showBannerAbsolute() public method

public showBannerAbsolute ( AdSize size, int x, int y, string instanceName = "defaultBanner" ) : void
size AdSize
x int
y int
instanceName string
return void

showBannerRelative() public method

public showBannerRelative ( AdSize size, int position, int marginY, string instanceName = "defaultBanner" ) : void
size AdSize
position int
marginY int
instanceName string
return void

showInterstitial() public method

public showInterstitial ( ) : void
return void

showNativeBannerAbsolute() public method

public showNativeBannerAbsolute ( AdSize size, int x, int y, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
size AdSize
x int
y int
nativeBannerID string
instanceName string
return void

showNativeBannerRelative() public method

public showNativeBannerRelative ( AdSize size, int position, int marginY, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
size AdSize
position int
marginY int
nativeBannerID string
instanceName string
return void

showRewardedVideo() public method

public showRewardedVideo ( ) : void
return void