【发布时间】:2019-01-18 01:51:58
【问题描述】:
我需要通过 google API 生成它:
<!-- Global Site Tag (gtag.js) - Google AdWords: GOOGLE_CONVERSION_ID -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-GOOGLE_CONVERSION_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'AW-GOOGLE_CONVERSION_ID');
</script>
不是通过https://adwords.google.com 网络界面, 但通过类似https://api.adwords.google.com
所以我对这个 (https://api.adwords.google.com) URL 做了一些 POST/PUT 请求
并得到响应 AW-GOOGLE_CONVERSION_ID 或完整脚本
【问题讨论】:
标签: google-api ads google-ads-api gtag.js