Developer-provided parameters

Last updated on May 11, 2018

Depending on the app content, you can set the following parameters for the app user. Please check UserParameters.java for the available APIs.

Parameter

Method

Description

additional OpenX parameter

setParameter

If an ad call parameter exists in the OpenX Ad ServerA complete digital advertising platform where publishers sell, manage, and deliver their advertising inventory across all digital formats. but does not exist in OpenX Mobile Android SDK, use this method to add the new parameter by name and set the necessary value.

age

setUserAge

This parameter is deprecated. Use: setParameter(UserParameters.KEY_AGE, age)

custom parameters

setParameters

If multiple ad call parameters exist in the OpenX ad server but do not exist in OpenX Mobile Android SDK, use this method to add the set of key-value pairs for the new parameters.

dma

setDma

This parameter is deprecated. Use:

setParameter(UserParameters.KEY_MARKET_AREA, dma)

eth

setUserEthnicity

This parameter is deprecated. Use:

setParameter(UserParameters.KEY_ETHNICITY, eth)

gen

setUserGender

This parameter is deprecated.

inc

setUserAnnualIncomeInUs

This parameter is deprecated. Use:

userParameters.setParameter(UserParameters.KEY_INCOME, inc);

mar

setUserMaritalStatus

This parameter is deprecated. Use:

userParameters.setParameter(UserParameters.KEY_MARITAL_STATUS, UserParameters.MARITAL_SINGLE);

url

setAppStoreMarketUrl

The URL for the mobile application in Google Play.

For example: https://play.google.com/store/apps/details?id=com.outfit7.talkingtom

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