Device Identifiers

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 the field Format Platform Supported by
ifa
  • Hexadecimal representation of the IFA data from the device
  • Dashes are not inserted
  • 32 characters long
iOS
  • All Chartboost iOS SDKs
  • Callbacks
  • Server-to-Server integration

How Do I Get My IFA? ๐Ÿ”—

  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 the 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 the field Format Platform Supported by
gaid
  • 32 characters, plus 4 dashes (e.g. e4fe9bde-caa0-47b6-908d-ffba3fa184f2)
  • Lower-case letters and numbers
Android
  • All Chartboost Android SDKs
  • Server-to-Server integration
  • Callbacks

How do I get my GAID? ๐Ÿ”—

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

UDID ๐Ÿ”—

Sent in the field Format Platform Supported by
uuid
  • Should not be hashed or manipulated in any way
  • 36 characters long
iOS Only
  • Server-to-Server integration
  • Callbacks