Download Android Apps and Games
AppBrain | Docs
  • Apps
  • Statistics
  • Docs
  • Developers
  • Get SDK
  • Sign up
  • Log in

General

  • Introduction
  • Privacy policy
  • About AppBrain
  • HTML widgets
  • Embeddable Android app widgets

Publishers

  • AppBrain SDK
    • Getting started
    • Ad unit overview
    • Banners
    • Interstitial
    • ListView ads
    • Extra features
    • Integration with other SDKs
    • Integration policy
    • Javadoc
      • AdId
      • AdListAdapter
      • AdListAdapter.AdLayoutCreator
      • AdOptions
      • AdOptions.ScreenType
      • AdService
      • AdService.BorderSize
      • AdService.ReturnToAppConfig
      • AdvertiserService
      • AppBrain
      • AppBrainBanner
      • AppBrainBanner.BannerSize
      • AppBrainInitProvider
      • AppBrainUserData
      • AppBrainUserData.Gender
      • BannerListener
      • InterstitialBuilder
      • InterstitialListener
      • InterstitialListener.InterstitialError
      • KeepClass
      • ReferrerReceiver
      • RemoteSettings
  • Resources
  • Terms of service
  • FAQ

Advertisers

  • Resources
  • Terms of service
  • FAQ

Intelligence

  • Insights
  • Subscriptions
  • SDK downloads
  • Phone downloads
  • Terms of service

AppBrain API

  • Using the AppBrain API
  • API specification
  • Pricing
  • Promotion campaigns
  • Reporting
  • AppLinks TOS
Search

AppBrainUserData

public class AppBrainUserData

Class to hold data about a user. It has a builder-like pattern so you can chain calls like:

AppBrain.getAds().setUserData(AppBrainUserData.create().setGender(gender).setLocation(location));

All fields are optional, so you can set any combination of them.

Author

AppBrain

Methods

public AppBrainUserData addKeyword(String keyword)

Add a keyword. This can be anything relevant to the context of the user.

One example could be a word game with multiple categories “animals”, “sports”, “countries” and the keyword is then the last category the user played. Another example could be an app in which the user can type search queries, and the keyword can be the last search query of the user.

public AppBrainUserData addKeywords(Collection<String> keywords)

Add a collection of keywords relevant to the context of the user. See addKeyword(String).

public static AppBrainUserData create()
Returns

a new AppBrainUserData instance.

public Date getBirthDate()
Returns

the value set by setBirthDate(Date).

public Gender getGender()
Returns

the value set by setGender(Gender).

public Set<String> getKeywords()
Returns

all keywords added by addKeyword(String) or addKeywords(Collection).

public Location getLocation()
Returns

the value set by setLocation(Location).

public AppBrainUserData setBirthDate(Date date)

Allows you to set the user’s age. For young users COPPA compliance will be enabled automatically.

public AppBrainUserData setGender(Gender gender)

Allows you to set the user’s gender. Gender.UNKNOWN is the default.

public AppBrainUserData setLocation(Location location)

Set a recently retrieved location of the user (acquired from the android LocationManager or Google Play Service’s LocationClient).

Android App Monetization by AppBrain
Interested in monetizing your app?
Monetize my app

AppBrain is a directory focused on discovering great apps and games. We give statistics, rankings and search options that Google Play and the App Store don't have. All trademarks are owned by their respective owners. AppBrain doesn't offer APKs or binaries, and always lets users install the official version from Google Play or the App Store.

More apps

  • Top Android apps being viewed
  • View Cashguard-Easy Cash Online
  • Speed Cleaner - Junk file clea
  • Taller - Maximize your height

Android Statistics

  • Android statistics
  • Google Play Developer stats
  • Trending Android Apps
  • Top popular Apps
  • Buy the best Android phone

About AppBrain

  • Contact
  • Privacy
  • Documentation
  • DMCA takedowns
  • Articles
  • Monetization tips: Understanding your eCPM
© 2010-2026 - AppBrain