AdRequest.Builder class

Class for creating a targeted ad request.

Method Description
AdRequest Build() Creates an object of the AdRequest class with data for a targeted ad request.
Builder WithAge(string age) Sets the user's age in the app.
Builder WithContextQuery(string contextQuery) Sets the search query that the user entered in the app.
Builder WithContextTags(List<string> contextTags) Sets a list of tags that describe the current user context.
Builder WithGender(string gender) Sets the user's gender in the app.
Builder WithLocation(Location location) Sets the user location.
Builder WithParameters(Dictionary<string, string> parameters) Specifies a list of additional parameters.
Builder WithAdRequest(AdRequest adRequest) Returns an object of the Builder class created based on the passed object of the AdRequest class.