通过 URL 查询 Google Adsense 数据? [英] Query Google Adsense data by URL?

查看:23
本文介绍了通过 URL 查询 Google Adsense 数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以查询Google Adsense Python API 通过网址?例如,查找特定页面上的广告点击次数?

Is there any way to query data in the Google Adsense Python API by URL? For example, find the number of ad clicks on a specific page?

我找不到文档中列出的直接方法.我看到的唯一可能的解决方法是为每个唯一的 URL 手动创建一个广告频道",然后在每个页面的广告代码中使用该频道 ID,然后通过该频道进行查询.但是,这对于具有数百个页面,更不用说数千个页面的站点而言是不切实际的.您要么需要花费数周的繁琐手动工作来创建渠道以及复制和粘贴广告代码,要么必须构建一个复杂的工具来为每个网址自动化广告渠道.

I can find no direct method listed in the documentation. The only possible workaround I see is to manually create an "Ad Channel" for each unique URL, then use that channel Id in the ad code on each page, and then query by that channel. However, that's not practical for sites with hundreds, much less thousands of pages. You'd either have weeks of tedious manual work creating channels and copy and pasting ad code, or would have to build out a sophisticated tool to automate ad channels for each URL.

我很难相信在 Google 工作的人或使用 Google 工具的人从未想过要找到特定网页的广告价值.

I find it hard to believe no one working at Google nor anyone using Google tools has never wanted to find the ad value of a specific webpage.

是否有更简单或更直接的方法来查找此信息?

Is there a simpler or more direct way to find this information?

推荐答案

您可以使用 URL Channels 声明您要跟踪的特定页面,然后在 API 中您可以在报告中包含 URL_CHANNEL_ID 或 URL_CHANNEL_NAME 维度以按页面细分.

You can use URL Channels to declare the specific pages you want to track, and then in the API you can include the URL_CHANNEL_ID or URL_CHANNEL_NAME dimension in your report to break down by page.

这篇关于通过 URL 查询 Google Adsense 数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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