To help convert advertising more effectively, advertising networks create a unique Advertising ID that can be used to create personalized ads based on web pages visited and other meta-data.

By default, Google shares the Advertising ID with publishers - apps and services - to display personalized advertising, and while we cannot prevent the collection of data in this regard, we can decide whether or not to share the Advertising ID with partners (apps/services).

Note: This setting does not enable or disable advertising, but only turns off personalized advertising.

Android 10 (One UI 2.0)
Step 1:  Open the  Settings
Step 2:  Tap on  Privacy
Step 3:  Tap on  Ads
Step 4:  Enable or disable  Opt out of Ads Personalisation
  1. Open the Settings
  2. Tap on Privacy
  3. Tap on Ads
  4. Enable or disable Opt out of Ads Personalisation

Samsung Instructions