Android Question [Solved] Admob / advertising id question on how to use

AymanA

Active Member
Licensed User
Reading throught the code snippet on the link below:


I am a little confused if we need to replace the admob unit id with the advertising id or there is no relation between both?

I have checked the google link but still confused about when to use it.

Also researched this topic seems if my app contains ads then I need to use the advertising id? Is that a correct statement?

Thanks for your help!
 

Computersmith64

Well-Known Member
Licensed User
You don't need the advertising id if you're putting ads in your app. You do need your App ID from AdMob & the Ad Unit ID (also from AdMob).

- Colin.
 
Upvote 0

AymanA

Active Member
Licensed User
Thank you so much Colin for your help, really appreciate it!

So just for my info, so what is the purpose of the advertising id in that case?
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Well I think it's generally used by ad SDKs for identifying devices for the purposes of targeted advertising.

- Colin.
 
Upvote 0
Top