You can create ads targeting people by customer lists. One of the data sources you can use are mobile advertiser IDs. Please read our guide Targeting by Customer Lists before using mobile advertiser IDs.
You can use Apple's and Android's Advertising Identifier or Facebook User IDs to create customer lists. These IDs are called mobile advertiser IDs. In this guide we will explain how you can get these IDs and how you can use then when creating custom audiences for your app ads.
Guide: Targeting by Customer ListsIdentify when you want to collect user IDs and how you want to attribute the users. For example instantly when your app launches or when the user takes a certain action, for example making an in-app purchase.
There are several technologies how you can identify a person. These identifiers are called Mobile Advertiser IDs. We support three types of Mobile Advertiser IDs.
See our guides below to get help on the technical implementation:
Once you managed to collect user IDs, store these IDs in a database of your choice.
The Facebook Ads Manager requires you to provide your data as Excel or .csv file. Most database systems offer exports in .csv format. If your system offers exports in JSON format, you need to convert your data first, e.g. using a converter like http://konklone.io/json/.
Follow our guide Targeting by Customer Lists. Use your exported data in step 3 "Import your Customer List".
Targeting by Customer ListsWe support three types of Mobile Advertiser IDs:
ID | Description |
---|---|
Apple's Advertising Identifier (IDFA) | An advertising ID that Apple provides as part of iOS in its ads framework |
Android's Advertising ID | An advertsing ID that Google provides as part of Google Play services. |
Facebook User ID | If people are logged in to your app via Facebook, you can use their Facebook User ID for targeting. |
// This call does NOT require the Facebook SDK for iOS!
#import <AdSupport/ASIdentifierManager.h>
NSString *userId = [[[ASIdentifierManager sharedManager]
advertisingIdentifier] UUIDString];
// Next: Store the user ID in your database
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
- (void)viewDidLoad
{
// Enable profile updates for example in `viewDidLoad`
[FBSDKProfile enableUpdatesOnAccessTokenChange:YES];
}
- (void)yourSelector
{
// Once user is logged in via Facebook Login you can call:
NSString *userId = [FBSDKProfile currentProfile].userID;
// Next: Store the user ID in your database
}
You can also target people by app activity. Using this approach you do not need to manually collect mobile advertiser IDs, store them and import them to the Facebook ads manager.
Next you can take advantage of advanced targeting methods. For example, you can target people who previously used your app, but have not come back to your app within the last 90 days.
Guide: Targeting by Customer Lists