com.google.ads.mediation.admob
Class AdMobAdapterExtras

java.lang.Object
  extended by com.google.ads.mediation.admob.AdMobAdapterExtras
All Implemented Interfaces:
NetworkExtras

public class AdMobAdapterExtras
extends Object
implements NetworkExtras

AdMob Adapter Extra Parameters.


Constructor Summary
AdMobAdapterExtras()
           
AdMobAdapterExtras(AdMobAdapterExtras original)
          Copy constructor.
 
Method Summary
 AdMobAdapterExtras addExtra(String key, Object value)
          Adds an extra ad request parameter.
 AdMobAdapterExtras clearExtras()
          Clears the extra ad request parameters.
 Map<String,Object> getExtras()
          Gets the extra ad request parameters.
 boolean getPlusOneOptOut()
          Gets the publisher +1 opt out bit.
 boolean getUseExactAdSize()
          Gets the exact AdSize bit.
 AdMobAdapterExtras setExtras(Map<String,Object> extras)
          Sets the extra ad request parameters.
 AdMobAdapterExtras setPlusOneOptOut(boolean plusOneOptOut)
          Sets the publisher +1 opt out bit.
 AdMobAdapterExtras setUseExactAdSize(boolean useExactAdSize)
          Sets the exact AdSize bit.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdMobAdapterExtras

public AdMobAdapterExtras()

AdMobAdapterExtras

public AdMobAdapterExtras(AdMobAdapterExtras original)
Copy constructor.

Parameters:
original - Original AdMobAdapterExtras instance to copy
Method Detail

setPlusOneOptOut

public AdMobAdapterExtras setPlusOneOptOut(boolean plusOneOptOut)
Sets the publisher +1 opt out bit. If this bit is set, the ads returned will not contain the +1 widget (Default: false).

Parameters:
plusOneOptOut - true if the publisher desires to opt out of showing the +1 widget on ads in their application.

getPlusOneOptOut

public boolean getPlusOneOptOut()
Gets the publisher +1 opt out bit. If this bit is set, the ads returned will not contain the +1 widget.


setUseExactAdSize

public AdMobAdapterExtras setUseExactAdSize(boolean useExactAdSize)
Sets the exact AdSize bit. If this bit is set, the AdSize provided by the publisher is used without modification. Otherwise a best-fit match is used to find the closest standard AdSize. DO NOT SET THIS FLAG UNLESS YOU HAVE DIRECT-SOLD ADS IN UNUSUAL SIZES.

Parameters:
useExactAdSize - true if the publisher desires to use a precisely specified AdSize, false to use the best-fit size.

getUseExactAdSize

public boolean getUseExactAdSize()
Gets the exact AdSize bit. If this bit is set, the AdSize provided by the publisher is used without modification. Otherwise a best-fit match is used to find the closest standard AdSize.


getExtras

public Map<String,Object> getExtras()
Gets the extra ad request parameters.

See Also:
addExtra(String, Object)

setExtras

public AdMobAdapterExtras setExtras(Map<String,Object> extras)
Sets the extra ad request parameters.

Parameters:
extras - the new map of values to send with the ad request.
See Also:
addExtra(String, Object)

clearExtras

public AdMobAdapterExtras clearExtras()
Clears the extra ad request parameters.

See Also:
addExtra(String, Object)

addExtra

public AdMobAdapterExtras addExtra(String key,
                                   Object value)
Adds an extra ad request parameter.

Parameters:
key - the key of the extra to add.
value - the value of the extra to add.
See Also:
setExtras(Map)