Class AdRequest

com.yandex.mobile.ads

public class AdRequest

This class contains settings for getting a targeted ad.

To create a request, use the AdRequest.Builder class.

Nested Classes

Methods

AdRequest.Builder builder()

Returns an object of the AdRequest.Builder class without any parameters for a targeted ad request.

boolean equals(final Object o)
String getAge()

Returns the age of the user that was entered in the app.

String getContextQuery()

Returns the search query that the user entered in the app.

List< String > getContextTags()

Returns a list of tags produced by the app.

String getGender()

Returns the gender of the user that was entered in the app.

Location getLocation()

Returns the user location.

Map< String, String > getParameters()

Returns a list of additional parameters.

int hashCode()

Method Detail

builder

public static AdRequest.Builder builder ()

Returns an object of the AdRequest.Builder class without any parameters for a targeted ad request.

Returns:

An object of the AdRequest.Builder class.

equals

public boolean equals (final Object o)

getAge

public String getAge ()

Returns the age of the user that was entered in the app.

Returns:

User age.

getContextQuery

public String getContextQuery ()

Returns the search query that the user entered in the app.

Returns:

The search query that the user entered in the app.

getContextTags

public List< String > getContextTags ()

Returns a list of tags produced by the app.

The list depends on which screen the user is on.

Returns:

A list of tags produced by the app.

getGender

public String getGender ()

Returns the gender of the user that was entered in the app.

Returns:

The gender of the user.

getLocation

public Location getLocation ()

Returns the user location.

Returns:

User location.

getParameters

public Map< String, String > getParameters ()

Returns a list of additional parameters.

Returns:

List of additional parameters.

hashCode

public int hashCode ()