Setting an Advertising Identifier in the App
Setting the advertiser ID in the app is really a two step process, first retrieving the advertiser ID, and then sending it to the Experience Cloud. Links are found below for performing these steps.
-
Retrieve the ID
-
Send it into the Experience Cloud using the setAdvertisingIdentifier method in the SDK
- Information for using
setAdvertisingIdentifier
is in the documentation for both iOS and Android.
- Information for using
// iOS (Swift) example for using setAdvertisingIdentifier:
ACPCore.setAdvertisingIdentifier([AdvertisingId]) // ...where [AdvertisingId] is replaced by the actual advertising ID
DCS Error Messaging for Incorrect IDs
When an incorrect Global Device ID (IDFA, GAID, etc) is submitted in realtime to Audience Manager, an error code will be returned on the hit. Following is an example of an error returned because the ID is sent in as an Apple IDFA, which should only contain upper case letters, and yet there is a lower case ‘x’ in the ID.
Please see the documentation for the list of error codes.
Onboarding Global Device IDs
In addition to realtime submission of Global Device IDs, you are also able to “onboard” (upload) data against the IDs as well. This process is the same as when you are onboarding data against your customer IDs (typically via key/value pairs), but you would simply use the proper Data Source IDs, so that the data is assigned to the global device ID. Documentation about the onboarding process can be found in the documentation. Just remember to use the global data source ID, depending on the platform that you are using.
If incorrect Global Device IDs are submitted through the onboarding process, the errors will show in the Onboarding Status Report.
Following is a sample of an error that would come through that report: