Apps use a variety of methods to determine what ads to show you. Some apps use your location, some apps use your browsing history, and some apps use other information about you.