[Mobile] How can I get IDFA / GAID?

Hi Unreal Engine users.
Now I’m developing a mobile game with UE4 and wondering how I can get IDFA / GAID of the mobile device?
I need to pass those IDs to an ad tracking service to get attribution data.
If it’s difficult to get those IDs, how do you guys get attribution data?