AdUnit class

Describes an AdMob ad unit.

Constructors

AdUnit({String? adFormat, List<String>? adTypes, String? adUnitId, String? appId, String? displayName, String? name})
AdUnit.fromJson(Map json_)

Properties

adFormat String?
AdFormat of the ad unit.
getter/setter pair
adTypes List<String>?
Ad media type supported by this ad unit.
getter/setter pair
adUnitId String?
The externally visible ID of the ad unit which can be used to integrate with the AdMob SDK.
getter/setter pair
appId String?
The externally visible ID of the app this ad unit is associated with.
getter/setter pair
displayName String?
The display name of the ad unit as shown in the AdMob UI, which is provided by the user.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
Resource name for this ad unit.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited