java.lang.Object | |
↳ | com.google.android.gms.ads.mediation.NativeAdMapper |
![]() |
Base mapping class for AdMob native ads.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mAdChoicesContent | |||||||||||
mExtras | |||||||||||
mOverrideClickHandling | |||||||||||
mOverrideImpressionRecording |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the view being used as AdChoices content.
| |||||||||||
Returns a bundle of extras passed in setExtra method.
| |||||||||||
Returns true if the ad network does click handling on its own.
| |||||||||||
Returns true if the ad network does impression tracking on its own.
| |||||||||||
Subclasses should implement this method if the network requires the developer to explicitly
handle click events of views rendered to screen.
| |||||||||||
Returns true if the current ad has video content.
| |||||||||||
Subclasses should implement this method if the network requires the developer to explicitly
record an impression of a view rendered to screen.
| |||||||||||
Set a view to be used as AdChoices content.
| |||||||||||
Sets a bundle of extras containing attributes that are not already attributes of the Google
native ad object.
| |||||||||||
Set to true if the current ad has video content.
| |||||||||||
Set mediated view that displays media.
| |||||||||||
Set to true if the ad network does click handling on its own.
| |||||||||||
Set to true if the ad network does impression tracking on its own.
| |||||||||||
This method is deprecated.
Use
trackViews(View, Map instead.
| |||||||||||
Subclasses should implement this method if the network requires the developer to prepare state
for recording an impression and/or click before a view is rendered to screen.
| |||||||||||
Subclasses should implement this method if the mediated network's SDK offers a way to stop
tracking a native ad view for the ad mapped by this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the view being used as AdChoices content.
Returns | |
---|---|
View |
Returns a bundle of extras passed in setExtra method.
Returns | |
---|---|
Bundle |
Returns true if the ad network does click handling on its own.
Returns | |
---|---|
boolean |
Returns true if the ad network does impression tracking on its own.
Returns | |
---|---|
boolean |
Subclasses should implement this method if the network requires the developer to explicitly handle click events of views rendered to screen.
Parameters | |
---|---|
view |
View |
Returns true if the current ad has video content.
Returns | |
---|---|
boolean |
Subclasses should implement this method if the network requires the developer to explicitly record an impression of a view rendered to screen.
Set a view to be used as AdChoices content.
Parameters | |
---|---|
adChoicesContent |
View |
Sets a bundle of extras containing attributes that are not already attributes of the Google native ad object.
Parameters | |
---|---|
extras |
Bundle |
Set to true if the current ad has video content.
Parameters | |
---|---|
hasVideoContent |
boolean |
Set mediated view that displays media. This is the View provided by the mediated SDK to display video content for the ad.
Parameters | |
---|---|
mediaView |
View |
Set to true if the ad network does click handling on its own.
Parameters | |
---|---|
overrideClickHandling |
boolean |
Set to true if the ad network does impression tracking on its own.
Parameters | |
---|---|
overrideImpressionRecording |
boolean |
This method is deprecated.
Use trackViews(View, Map
instead.
Subclasses should implement this method if the network requires the developer to prepare state for recording an impression and/or click before a view is rendered to screen.
Parameters | |
---|---|
view |
View |
Subclasses should implement this method if the network requires the developer to prepare state for recording an impression and/or click before a view is rendered to screen.
Parameters | |
---|---|
containerView |
View : The container View for the ad. |
clickableAssetViews |
Map : The Map of clickable asset names to corresponding View . |
nonclickableAssetViews |
Map : The Map of non-clickable asset names to corresponding
View .
Find the asset name constants in |
Subclasses should implement this method if the mediated network's SDK offers a way to stop tracking a native ad view for the ad mapped by this object.
Parameters | |
---|---|
view |
View |