How to use the Advertising ID in the Google Measurement Protocol

前端 未结 2 1723
不知归路
不知归路 2021-01-14 19:31

This post replies very well to the question \"How to get Advertising ID in android?\"...

but not how to use it.

I would like to know

2条回答
  •  花落未央
    2021-01-14 20:03

    It appears that the name of the parameter is "adid" for Android (and not "aaid"), as demonstrated by the screenshot below (request made by the GA SDK in a demo app).

    It also appears (you see it on the screenshot) that the "ate" parameter must be sent with the advertising ID (ate=1 if the ads targeting is ON ; ate=0 if ads targeting in OFF) for the advertising ID to be taken into consideration by Google Analytics.

    This implementation was tested and I can confirm that it works.

提交回复
热议问题