Packagecom.distriqt.extension.adverts
Classpublic class RequestConfiguration
InheritanceRequestConfiguration Inheritance Object

RequestConfiguration is an object that collects targeting information to be applied globally.



Public Methods
 MethodDefined By
  
RequestConfiguration
  
[static]
RequestConfiguration
  
Set a maximum ad content rating for ad requests
RequestConfiguration
  
setTagForChildDirectedTreatment(tagForChildDirectedTreatment:int):RequestConfiguration
Indicate whether you want Google to treat your content as child-directed when you make an ad request For purposes of the Children's Online Privacy Protection Act (COPPA), there is a setting called "tag for child-directed treatment".
RequestConfiguration
  
Mark your ad requests to receive treatment for users in the European Economic Area (EEA) under the age of consent.
RequestConfiguration
  
https://developers.google.com/admob/android/test-ads#add_your_test_device_programmatically
RequestConfiguration
  
toJSONString():String
RequestConfiguration
  
toObject():Object
RequestConfiguration
  
toString():String
RequestConfiguration
Public Constants
 ConstantDefined By
  MAX_AD_CONTENT_RATING_G : String = G
[static]
RequestConfiguration
  MAX_AD_CONTENT_RATING_MA : String = MA
[static]
RequestConfiguration
  MAX_AD_CONTENT_RATING_PG : String = PG
[static]
RequestConfiguration
  MAX_AD_CONTENT_RATING_T : String = T
[static]
RequestConfiguration
  MAX_AD_CONTENT_RATING_UNSPECIFIED : String
[static]
RequestConfiguration
  TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE : int = 0
[static] Indicate that you don't want your content treated as child-directed for purposes of COPPA
RequestConfiguration
  TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE : int = 1
[static] Indicate that you want your content treated as child-directed for purposes of COPPA
RequestConfiguration
  TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED : int = -1
[static] Don't indicate how you would like your content treated with respect to COPPA
RequestConfiguration
  TAG_FOR_UNDER_AGE_OF_CONSENT_FALSE : int = 0
[static] Indicate that you want the ad request to not receive treatment for users in the European Economic Area (EEA) under the age of consent
RequestConfiguration
  TAG_FOR_UNDER_AGE_OF_CONSENT_TRUE : int = 1
[static] Indicate that you want the ad request to receive treatment for users in the European Economic Area (EEA) under the age of consent
RequestConfiguration
  TAG_FOR_UNDER_AGE_OF_CONSENT_UNSPECIFIED : int = -1
[static] Indicate that you have not specified whether the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent
RequestConfiguration
Constructor Detail
RequestConfiguration()Constructor
public function RequestConfiguration()



Method Detail
fromObject()method
public static function fromObject(data:Object):RequestConfiguration

Parameters

data:Object

Returns
RequestConfiguration
setMaxAdContentRating()method 
public function setMaxAdContentRating(contentRating:String):RequestConfiguration

Set a maximum ad content rating for ad requests

Parameters

contentRating:String

Returns
RequestConfigurationRequestConfiguration instance for chaining calls
setTagForChildDirectedTreatment()method 
public function setTagForChildDirectedTreatment(tagForChildDirectedTreatment:int):RequestConfiguration

Indicate whether you want Google to treat your content as child-directed when you make an ad request For purposes of the Children's Online Privacy Protection Act (COPPA), there is a setting called "tag for child-directed treatment". By setting this tag, you certify that this notification is accurate and you are authorized to act on behalf of the owner of the app. You understand that abuse of this setting may result in termination of your Google account.

Parameters

tagForChildDirectedTreatment:int

Returns
RequestConfigurationRequestConfiguration instance for chaining calls
setTagForUnderAgeOfConsent()method 
public function setTagForUnderAgeOfConsent(tagForUnderAgeOfConsent:int):RequestConfiguration

Mark your ad requests to receive treatment for users in the European Economic Area (EEA) under the age of consent.

Parameters

tagForUnderAgeOfConsent:int

Returns
RequestConfigurationRequestConfiguration instance for chaining calls
setTestDeviceIds()method 
public function setTestDeviceIds(testDeviceIds:Array):RequestConfiguration

https://developers.google.com/admob/android/test-ads#add_your_test_device_programmatically

Parameters

testDeviceIds:Array

Returns
RequestConfigurationRequestConfiguration instance for chaining calls
toJSONString()method 
public function toJSONString():String

Returns
String
toObject()method 
public function toObject():Object

Returns
Object
toString()method 
public function toString():String

Returns
String
Constant Detail
MAX_AD_CONTENT_RATING_GConstant
public static const MAX_AD_CONTENT_RATING_G:String = G

MAX_AD_CONTENT_RATING_MAConstant 
public static const MAX_AD_CONTENT_RATING_MA:String = MA

MAX_AD_CONTENT_RATING_PGConstant 
public static const MAX_AD_CONTENT_RATING_PG:String = PG

MAX_AD_CONTENT_RATING_TConstant 
public static const MAX_AD_CONTENT_RATING_T:String = T

MAX_AD_CONTENT_RATING_UNSPECIFIEDConstant 
public static const MAX_AD_CONTENT_RATING_UNSPECIFIED:String

TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSEConstant 
public static const TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE:int = 0

Indicate that you don't want your content treated as child-directed for purposes of COPPA

TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUEConstant 
public static const TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE:int = 1

Indicate that you want your content treated as child-directed for purposes of COPPA

TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIEDConstant 
public static const TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED:int = -1

Don't indicate how you would like your content treated with respect to COPPA

TAG_FOR_UNDER_AGE_OF_CONSENT_FALSEConstant 
public static const TAG_FOR_UNDER_AGE_OF_CONSENT_FALSE:int = 0

Indicate that you want the ad request to not receive treatment for users in the European Economic Area (EEA) under the age of consent

TAG_FOR_UNDER_AGE_OF_CONSENT_TRUEConstant 
public static const TAG_FOR_UNDER_AGE_OF_CONSENT_TRUE:int = 1

Indicate that you want the ad request to receive treatment for users in the European Economic Area (EEA) under the age of consent

TAG_FOR_UNDER_AGE_OF_CONSENT_UNSPECIFIEDConstant 
public static const TAG_FOR_UNDER_AGE_OF_CONSENT_UNSPECIFIED:int = -1

Indicate that you have not specified whether the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent