Packagecom.distriqt.extension.admob.unityads
Classpublic final class AdMobUnityAds
InheritanceAdMobUnityAds Inheritance flash.events.EventDispatcher

This class represents the AdMobUnityAds extension.



Public Properties
 PropertyDefined By
  implementation : String
[read-only] The implementation currently in use.
AdMobUnityAds
  instance : AdMobUnityAds
[static] [read-only] The singleton instance of the AdMobUnityAds class.
AdMobUnityAds
  isSupported : Boolean
[static] [read-only] Whether the current device supports the extensions functionality
AdMobUnityAds
  nativeVersion : String
[read-only] The native version string of the native extension.
AdMobUnityAds
  service : AdMobUnityAds
[static] [read-only] The singleton instance of the AdMobUnityAds class.
AdMobUnityAds
  version : String
[read-only] The version of this extension.
AdMobUnityAds
Public Methods
 MethodDefined By
  
Constructor You should not call this directly, but instead use the singleton access
AdMobUnityAds
  
dispose():void
Disposes the extension and releases any allocated resources.
AdMobUnityAds
  
setConsent(granted:Boolean):void
Pass consent information to the Unity Ads SDK.
AdMobUnityAds
  
setUSPrivacyConsent(granted:Boolean):void
AdMobUnityAds
Public Constants
 ConstantDefined By
  EXT_CONTEXT_ID : String = com.distriqt.admob.UnityAds
[static]
AdMobUnityAds
  VERSION : String = 5.0.0
[static]
AdMobUnityAds
Property Detail
implementationproperty
implementation:String  [read-only]

The implementation currently in use. This should be one of the following depending on the platform in use and the functionality supported by this extension:


Implementation
    public function get implementation():String
instanceproperty 
instance:AdMobUnityAds  [read-only]

The singleton instance of the AdMobUnityAds class.


Implementation
    public static function get instance():AdMobUnityAds

Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
isSupportedproperty 
isSupported:Boolean  [read-only]

Whether the current device supports the extensions functionality


Implementation
    public static function get isSupported():Boolean
nativeVersionproperty 
nativeVersion:String  [read-only]

The native version string of the native extension.


Implementation
    public function get nativeVersion():String
serviceproperty 
service:AdMobUnityAds  [read-only]

The singleton instance of the AdMobUnityAds class.


Implementation
    public static function get service():AdMobUnityAds

Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
versionproperty 
version:String  [read-only]

The version of this extension.

This should be of the format, MAJOR.MINOR.BUILD


Implementation
    public function get version():String
Constructor Detail
AdMobUnityAds()Constructor
public function AdMobUnityAds()

Constructor You should not call this directly, but instead use the singleton access

Method Detail
dispose()method
public function dispose():void

Disposes the extension and releases any allocated resources. Once this function has been called, a call to init is neccesary again before any of the extensions functionality will work.

setConsent()method 
public function setConsent(granted:Boolean):void

Pass consent information to the Unity Ads SDK. Should you choose to pass consent information to the Unity Ads SDK manually, it is recommended that this code is called prior to requesting ads via the Google Mobile Ads SDK.

Parameters

granted:Boolean

setUSPrivacyConsent()method 
public function setUSPrivacyConsent(granted:Boolean):void

Parameters

granted:Boolean

Constant Detail
EXT_CONTEXT_IDConstant
public static const EXT_CONTEXT_ID:String = com.distriqt.admob.UnityAds

VERSIONConstant 
public static const VERSION:String = 5.0.0