RequestInfo
The RequestInfo
is the information for request the ad. Please set the RequestInfo before loadAd
Public constructors
Public methods
void
void
Set the timeout for this ad request.
void
void
void
Public methods
setPlacement
void setPlacement(String placement)
Set the placement for this ad request.
Parameters
placement
String: the placement.
setTimeout
void setTimeout(String placement)
Parameters
timeout
long: the timeout.
Ad response would be returned within specified timeout period (only works for loadAdAsync. The timeout value is meaningless if you use loadAdInstant ).
setLocalExtra
void setLocalExtra(JSONObject object)
Send more information to custom event if necessary.
Parameters
object
JSONObject: the jsonObject you would like to pass to different customevent.
setTargeting
void setTargeting(String key, List<CETargeting> ceTargetingList)
Set the contextual targeting rules on specific key.
Parameters
key
String: the key for targeting.
ceTargetingList
List<CETargeting>: the rules for targeting.
addTargeting
void addTargeting(String key, CETargeting ceTargetingList)
Append the contextual targeting rules on specific key.
Parameters
key
String: the key for targeting.
ceTargeting
CETargeting: the rule for targeting.
Last updated