User Targeting

The SDK provides methods for the publisher to set specific information about the user in order to serve more relevant ads. Convenient accessors are available that allow the setting of gender, age, ethnicity, etc. Values left unspecified are left out of the targeting data.

User targeting data should be set after initialization and prior to making ad requests, but may be changed at any time.

RequestMetadata.Builder builder = new RequestMetadata.Builder();

builder.setUserAge(<USER AGE>);
builder.setUserIncome(<USER INCOME>);
builder.setUserEducation( <USER EDUCATION>);

RequestMetadata requestMetadata = builder.build();
Please see the API documentation for other user targeting parameters and specifics.
val builder = RequestMetadata.Builder()

builder.setUserAge(<USER AGE>)
builder.setUserIncome(<USER INCOME>)
builder.setUserEducation( <USER EDUCATION>)

val requestMetadata = builder.build()
Please see the API documentation for other user targeting parameters and specifics.
VASRequestMetadataBuilder *builder = [[VASRequestMetadataBuilder alloc] initWithRequestMetadata:[VASAds sharedInstance].requestMetadata];

builder.userAge = <USER AGE>;
builder.userIncome = <USER INCOME>;
builder.userEducation = <USER EDUCATION>;

[VASAds sharedInstance].requestMetadata = [builder build];
Please see the API documentation for other user targeting parameters and specifics.
let builder = VASAdsRequestMetadataBuilder(withRequestMetadata:self.metadata)

builder.userAge = <USER AGE>
builder.userIncome = <USER INCOME>
builder.userEducation = <USER EDUCATION>

let metadata = builder.build()
Please see the API documentation for other user targeting parameters and specifics.