Summary: Fields | Ctors | Methods | Inherited Methods | [Expand All]
public abstract class

# NativeAdMapper

extends Object

java.lang.Object
↳ | com.google.android.gms.ads.mediation.NativeAdMapper

Known Direct Subclasses NativeAppInstallAdMapper, NativeContentAdMapper
NativeAppInstallAdMapper | Mapping class for AdMob native app install ads.
NativeContentAdMapper | Mapping class for AdMob native content ads.

## Class Overview

Base mapping class for AdMob native ads.

## Summary

Fields
protected Bundle | mExtras |
protected boolean | mOverrideClickHandling |
protected boolean | mOverrideImpressionRecording |

Public Constructors
| NativeAdMapper()

Public Methods
final Bundle | getExtras() Returns a bundle of extras passed in setExtra method.
final boolean | getOverrideClickHandling() Returns true if the ad network does click handling on its own.
final boolean | getOverrideImpressionRecording() Returns true if the ad network does impression tracking on its own.
void | handleClick(View view) Subclasses should implement this method if the network requires the developer to explicitly handle click events of views rendered to screen.
void | recordImpression() Subclasses should implement this method if the network requires the developer to explicitly record an impression of a view rendered to screen.
final void | setExtras(Bundle extras) Sets a bundle of extras containing attributes that are not already attributes of the Google native ad object.
final void | setOverrideClickHandling(boolean overrideClickHandling) Set to true if the ad network does click handling on its own.
final void | setOverrideImpressionRecording(boolean overrideImpressionRecording) Set to true if the ad network does impression tracking on its own.
void | trackView(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.
void | untrackView(View view) 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
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Fields

#### protected Bundle mExtras

#### protected boolean mOverrideClickHandling

#### protected boolean mOverrideImpressionRecording

## Public Constructors

#### public NativeAdMapper ()

## Public Methods

#### public final Bundle getExtras ()

Returns a bundle of extras passed in setExtra method.

#### public final boolean getOverrideClickHandling ()

Returns true if the ad network does click handling on its own.

#### public final boolean getOverrideImpressionRecording ()

Returns true if the ad network does impression tracking on its own.

#### public void handleClick (View view)

Subclasses should implement this method if the network requires the developer to explicitly handle click events of views rendered to screen.

#### public void recordImpression ()

Subclasses should implement this method if the network requires the developer to explicitly record an impression of a view rendered to screen.

#### public final void setExtras (Bundle extras)

Sets a bundle of extras containing attributes that are not already attributes of the Google native ad object.

#### public final void setOverrideClickHandling (boolean overrideClickHandling)

Set to true if the ad network does click handling on its own.

#### public final void setOverrideImpressionRecording (boolean overrideImpressionRecording)

Set to true if the ad network does impression tracking on its own.

#### public void trackView (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.

#### public void untrackView (View view)

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.