Expand my Community achievements bar.

How to Remove GAID and IDFA from IdentityMap After Using setAdvertisingIdentifier API in AEP Mobile SDK?

Avatar

Level 2

One of the customer is using setAdvertisingIdentifier API which updates the identityMp with GAID and IDFA for iOS and android respectively in the subsequest xdm events. the removeIdentity method will not remove the idfa and GAID values. Does anyone know if we would like to remove GAID and IDFA from identityMap, what shall be the way for it?

2 Replies

Avatar

Moderator

From the AI Assistant:

 

To remove GAID (Google Advertising ID) and IDFA (Identifier for Advertisers) from the IdentityMap after using the setAdvertisingIdentifier API in AEP Mobile SDK, you can follow the steps outlined in the provided documents. Here's a comprehensive guide to help you achieve this:12

  1. Use the Identity.removeIdentity API:

    • You can utilize the Identity.removeIdentity API to remove the identity from the stored client-side identity map. This will stop sending the identifier to the Edge Network. However, it's important to note that using this API does not remove the identifier from the server-side identity graph.
  2. Navigate to the App Code:

    • Within your Xcode Project navigator, locate the relevant sections where you can add the necessary code to remove identities. This typically involves accessing the Luma > Luma > Utils > MobileSDK and Luma > Luma > Views > General > LoginSheet sections in the Xcode Project navigator.
  3. Implement the Code:

    • Add the provided code snippets to the appropriate functions and sections within your Xcode project. This will allow you to remove the identities associated with GAID and IDFA from the IdentityMap after using the setAdvertisingIdentifier API in the AEP Mobile SDK.1
  4. Validate with Identity Graph:

    • Once the changes are implemented, you can validate the removal of GAID and IDFA from the IdentityMap by confirming the identity capture in the Platform's identity graph viewer. This will ensure that the removal process was successful.32

By following these steps, you can effectively remove GAID and IDFA from the IdentityMap after using the setAdvertisingIdentifier API in the AEP Mobile SDK.1

Avatar

Administrator

@AnkitAg3 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni