Device Identifiers

Last Update:

Chartboost identifiers explained: expected formats, use, and support.


Identifier for Advertising

IFA is also referred to as IDFA. They are the same thing.

Sent in field:

  • ifa

Format:

  • Hexadecimal representation of the IFA data from the device
  • Dashes are not inserted
  • 32 characters long

Platform:

  • iOS

Supported by:

  • Chartboost iOS SDK v3.0.7 and above
  • Callbacks
  • Server-to-Server integration

How Do I Get My IFA? (iOS version 6.0+)

  1. Link AdSupport.framework (Build Phases -> Link Binary With Libraries)
  2. Add these lines of code to an app and run it on an iOS device – you'll see the IFA printed in the log:
// Import these

#import <CommonCrypto/CommonDigest.h>
#import <AdSupport/AdSupport.h>

// Print IFA (Identifier for Advertising) in Output section. Add to applicationDidBecomeActive. iOS 6+ devices only. 
NSString* ifa = [[[NSClassFromString(@"ASIdentifierManager") sharedManager] advertisingIdentifier] UUIDString];
ifa = [[ifa stringByReplacingOccurrencesOfString:@"-" withString:@""] lowercaseString];
NSLog(@"IFA: %@",ifa);

Alternatively, you may be able to find your device IFA by using a third-party app called The Identifiers.

Does use of the Chartboost SDK comply with Apple's IDFA policies?

The Chartboost SDK respects the Limit Ad Tracking setting and Apple's limitations on the usage of IDFA to:

  1. Serve advertisements within an app
  2. Attribute an app installation to a previously served advertisement
  3. Attribute an action taken within an app to a previously served advertisement

Please continue using the Chartboost SDK with confidence, and for any questions or concerns, contact us.


Google Advertising ID (GAID)

Sent in field:

  • gaid

Format:

  • 32 characters, plus 4 dashes (e4fe9bde-caa0-47b6-908d-ffba3fa184f2, for example)
  • Lower-case letters

Platform:

  • Android

Supported by:

How do I get my GAID?

  • On your Android device, open the Google Settings app.
  • Select Ads.
  • Your advertising ID appears at the bottom.


Android ID

Sent in field:

  • uuid

Format:

  • Should not be hashed or manipulated in any way
  • 16 characters long

Platform:

  • Android

Supported by:

  • All Chartboost Android SDK versions
  • Server-to-Server integration
  • Callbacks

How Do I Get My Android ID?

  1. Import android.provider.Settings.Secure;
  2. Add these lines of code to an app and run the project on an Android device; you'll see the Android ID printed in the log:
//Import code
import android.provider.Settings.Secure;

//Print Android ID in log
String android_id = Secure.getString(getBaseContext().getContentResolver(),Secure.ANDROID_ID);
Log.e(TAG, android_id);

UDID

Sent in field:

  • uuid

Format:

  • Should not be hashed or manipulated in any way
  • 36 characters long

Platform:

  • iOS only

Supported by:

  • Chartboost SDK v3.1.1 and below (UDID removed in v3.2)
  • Server-to-Server integration
  • Callbacks