如何在 Google 衡量协议中使用广告 ID [英] How to use the Advertising ID in the Google Measurement Protocol

查看:20
本文介绍了如何在 Google 衡量协议中使用广告 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎(您在屏幕截图中看到)ate"参数必须与广告 ID 一起发送(如果广告定位为 ON,则 ate=1;如果广告定位为 ate=0,则定位为 OFF),以便 Google Analytics 考虑广告 ID.

这个实现已经过测试,我可以确认它有效.

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 what is the parameter to be used in the Google Measurement Protocol to transfer that advertising ID the Google endpoint and get demographic insights in my GA dashboards (on https://analytics.google.com/).

Do I have to send it with the client id ("cid")?

Or, to make it simple, what is the parameter used by the SDK on iOS and Android?

解决方案

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.

这篇关于如何在 Google 衡量协议中使用广告 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆