You are here: Developers > OpenX Mobile Android SDK > Request parameters

Request parameters

Last updated on October 4, 2017

You can use UserParameters to pass ad call request parameters.

OpenX Mobile Android SDK provides the following types of parameters:

You can manually set custom parameters using setUserParameters() on AdView and send it through the corresponding load().


//Create an object of UserParameters.
UserParameters params = new UserParameters();
params.setUserGender(UserParameters.OXMGender.FEMALE);
params.setCountry("USA");
params.setState("California");
params.setZipCode("94403");
params.setCity("SanMateo");
 
//Set UserParameters on AdView.
adView.setUserParameters(params);

OXSettings

Field Description

Default

defaultDomain

If set, controls the initial value of domain for all newly created AdViews. Useful if the same domain is in use throughout your app.

Null

defaultAdUnitId

If set, controls the initial value of adUnitID for all newly created AdViews. Useful if the same domain is in use throughout your app.

Null

defaultAutoRefreshDelay

Controls the initial value of autoRefreshDelay for all newly created OXMAdViews in seconds.

60

logLevel

Controls the type of messages of the internal logger. Options are:

  • DEBUG - this is the noisiest level.
  • ERROR
  • WARN
  • NONE

NONE

sendMRAIDSupportParams

If true, the SDK sends "af=3,5", indicating support for MRAIDMobile Rich Ad Interface Definitions, a type of API framework for interfacing between an ad creative and native mobile capabilities..

true

secureRequestsEnabled

If true, the SDK will use HTTPS instead of HTTP.

false

Feedback form