# Trying to retrieve advertising Id

**URL:** <https://forums.unrealengine.com/t/trying-to-retrieve-advertising-id/147459>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [July 14, 2020, 12:25pm UTC](https://forums.unrealengine.com/t/trying-to-retrieve-advertising-id/147459 "2020-07-14T12:25:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bri\_Black](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bri\_Black](https://forums.unrealengine.com/u/Bri_Black)\
**Post date:** [July 14, 2020, 12:25pm UTC](https://forums.unrealengine.com/t/trying-to-retrieve-advertising-id/147459/1 "2020-07-14T12:25:43Z")

</div>

Hi everyone,

I am trying to access the device’s advertising Id by using the already existing GetUniqueAdvertisingId() functions located in AndroidPlatformMisc.h and IOSPlatformMisc.h.  
Turns out I can succesfully see the advertising ID (IDFA) on IOS, but i keep getting an empty string on Android.

I also saw in the iOS section of project settings an “Enable Advertising Identifier (IDFA)” flag, which I can’t find in the Android settings so I was wondering if a similar setting had to be enabled somehow in order to make everything work correctly…

Has anyone succeeded in doing this? Any help will be appreciated 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![BetaFury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/betafury/32/1205905_2.png) [@BetaFury](https://forums.unrealengine.com/u/BetaFury)\
**Post date:** [October 23, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/trying-to-retrieve-advertising-id/147459/2 "2024-10-23T23:32:47Z")

</div>

Did you ever solve this?
