For the Advertiser Identifier there are multiple ways of implementing the Google identifier depending on your application. We
will show an example of what can be done. Of course the most important thing is to set and unset the ID, how
you do that is where the implementation can differ.
Set the identifier. Please note, you will most likely want input from the user, like a switch or button to toggle the setting of the value.
In the example below we used a switch, below is the switch listener.
If you need to unset, you can set the identifier to null.
The user can reset the Google identifier through their device settings.