问题标签 [google-reporting-api]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
google-reporting-api - 如何使用程序(c# nodejs)通过 Google 报告 API 获取“应用程序使用活动”报告
如何通过 Google 报告 API 获取“应用程序使用活动”报告
“应用使用活动”位于管理控制台\报告下
php - 如何通过 Google Reporting API V4 访问一个会话/用户的完整推荐路径
如何通过 Google Reporting API V4访问一个会话/用户的完整推荐路径?在这种情况下,在 PHP 中。
例如,我们在 Google 的 Reporting API V4 文档中找到了以下代码。(https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php)
这部分很有趣:
维度和指标资源管理器 ( https://developers.google.com/analytics/devguides/reporting/core/dimsmets )
引用 URL 的路径(例如 document.referrer)。如果有人在他们的网页上放置了指向该属性的链接,则这是包含引用链接的页面的路径。
完整的引用 URL,包括主机名和路径。
我假设我必须以这种方式获取所需的维度/指标:
或者
这是正确的方法吗?如果没有,还有其他方法可以做到这一点吗?
还有一个问题:使用此指标/维度发出请求时:
Google 如何知道从哪个会话获取推荐路径?
python - Google Reports API -reports.customerUsageReports.get 问题
我在使用 Google Reports API 时遇到了一些问题。我运行文档中提供的示例代码以获取 reports.activities.list 数据没有问题,但是当我更改程序以尝试提取完整的域数据 (reports.customerUsageReports.get) 时,我收到一条错误消息,指出“ “资源”对象没有属性“使用”。
我对 auth 没有任何问题,并已根据需要将程序中的 api 范围更改为https://www.googleapis.com/auth/admin.reports.usage.readonly。
我正在运行以下代码段来尝试访问数据
google-analytics - gapi batchGet 有两个指标
我使用以下代码调用 Analytics Reporting API V4 batchGet 方法:
使用单个指标时,结果是正确的,但我需要使用两个指标查询 API,这就是错误发生的时间。此消息记录在控制台中:
使用两个或更多指标进行查询的正确方法是什么?在查询资源管理器中https://ga-dev-tools.appspot.com/query-explorer/这种查询是可能的。
提前致谢。
google-admin-sdk - Google 报告电子邮件日志搜索 API
在管理面板中,可以转到报告并运行电子邮件日志搜索。我无法为此找到 API(希望是 RESTful)。谁能指出我正确的方向?我知道有电子邮件审核日志,但这不是我想要的。审核过程需要审核特定邮箱,而我正在寻找组织级别的搜索。谢谢。
c# - 需要使用 C# 和 Reports API 从用户使用报告中返回“gmail_used_quota_in_mb”
我正在使用 C# 上的 .NET 客户端库来构建一个用于特定目的的小型应用程序。
我需要返回 'gmail_used_quota_in_mb' 和 'total_quota_in_mb' 和 'used_quota_in_mb' 的值
基于此页面(https://developers.google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-accounts),我应该在我的请求的输出中获取参数应用程序,但是我没有得到这些值...
我正在使用以下代码进行操作:
在 Parameters[] 数组中,我得到 46 个项目,它们都不是我正在寻找的上述 3 个参数之一......
我从以下页面获取了大部分代码,并对其进行了调整以满足我对 UsageReport 的需求: https ://developers.google.com/admin-sdk/reports/v1/quickstart/dotnet
我非常感谢任何帮助,因为我主要是一名系统工程师,并且正在从事 G Suite 迁移项目,并且需要使该应用程序能够完成数据迁移的关键部分。
编辑(额外细节):这是我从输出中得到的所有参数......
账户:admin_set_name=xxxxx 账户:is_disabled= 账户:disabled_reason= 账户:first_name=xxxxx 账户:is_2sv_enforced= 账户:is_2sv_enrolled= 账户:is_delegated_admin= 账户:is_less_secure_apps_access_allowed= 账户:is_super_admin= 账户:is_suspended= 账户:last_name=xxxxx 账户:num_authorized_apps = accounts:num_roles_assigned= accounts:num_security_keys= accounts:creation_time= accounts:last_login_time= accounts:last_sso_time= accounts:user_has_overridden_name= docs:num_owned_google_documents_created= docs:num_owned_google_documents_edited= docs:num_owned_google_documents_trashed= docs:num_owned_google_documents_viewed= docs:num_owned_google_drawings_created= docs:num_owned_google_drawings_edited= docs :num_owned_google_drawings_trashed= 文档:num_owned_google_drawings_viewed= docs:num_owned_google_forms_created= docs:num_owned_google_forms_edited= docs:num_owned_google_forms_trashed= docs:num_owned_google_forms_viewed= docs:num_owned_google_presentations_created= docs:num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited= docs:num_owned_other_types_trashed= docs:num_owned_other_types_viewed=num_owned_google_forms_created= docs:num_owned_google_forms_edited= docs:num_owned_google_forms_trashed= docs:num_owned_google_forms_viewed= docs:num_owned_google_presentations_created= docs:num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited= docs:num_owned_other_types_trashed= docs:num_owned_other_types_viewed=num_owned_google_forms_created= docs:num_owned_google_forms_edited= docs:num_owned_google_forms_trashed= docs:num_owned_google_forms_viewed= docs:num_owned_google_presentations_created= docs:num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited= docs:num_owned_other_types_trashed= docs:num_owned_other_types_viewed=num_owned_google_forms_trashed= docs:num_owned_google_forms_viewed= docs:num_owned_google_presentations_created= docs:num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed=文档:num_owned_items_viewed= 文档:num_owned_other_types_created= 文档:num_owned_other_types_edited= 文档:num_owned_other_types_trashed= 文档:num_owned_other_types_viewed=num_owned_google_forms_trashed= docs:num_owned_google_forms_viewed= docs:num_owned_google_presentations_created= docs:num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed=文档:num_owned_items_viewed= 文档:num_owned_other_types_created= 文档:num_owned_other_types_edited= 文档:num_owned_other_types_trashed= 文档:num_owned_other_types_viewed=num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited=文档:num_owned_other_types_trashed= 文档:num_owned_other_types_viewed=num_owned_google_presentations_edited= docs:num_owned_google_presentations_trashed= docs:num_owned_google_presentations_viewed= docs:num_owned_google_spreadsheets_created= docs:num_owned_google_spreadsheets_edited= docs:num_owned_google_spreadsheets_trashed= docs:num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited=文档:num_owned_other_types_trashed= 文档:num_owned_other_types_viewed=num_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited= docs:num_owned_other_types_trashed= docs:num_owned_other_typesviewnum_owned_google_spreadsheets_viewed= docs:num_owned_items_created= docs:num_owned_items_edited= docs:num_owned_items_trashed= docs:num_owned_items_viewed= docs:num_owned_other_types_created= docs:num_owned_other_types_edited= docs:num_owned_other_types_trashed= docs:num_owned_other_typesview
谢谢
google-apps-script - 我无法使用 CustomerUsageReport api 获取 docs:num_docs 的值
我正在使用 Google Apps 脚本来获取有关我的 Google 域上的活动的一些信息,并且它可以与 Google 在他的 QuickStart 项目中提供的脚本一起正常工作,但我无法获取某些参数的值,例如 'docs:num_docs'、'accounts :apps_total_licenses' 或 'accounts:apps_used_licenses'。我总是得到一个“未定义”的回应。这是脚本,请您告诉我哪里出了问题。谢谢。
javascript - Google Core Reporting API v4 使用服务帐户进行身份验证
我正在从 Google Core Reporting API v3 迁移到 v4。在 Google Docs 中,我找不到如何使用服务帐户令牌进行身份验证的方法,就像在 v3 中使用 Javascript 一样。这在v4中可能吗?
rest - 获取按过去 X 天的指标排序的维度的热门谷歌分析项目
例如,我想按会话数排序过去 30 天内访问量最大的三个页面。
因此,对于每一天,我希望ga:pagePath
每天按ga:sessions
. 这可能在单个查询中吗?
此查询应返回 90 项,ga:pagePath
每天 3 项。
作为另一个例子,是否可以获得三个最快的加载页面(ga:pageLoadTime)而不是每天访问量最大的页面?对于排序度量,这不需要 ASC,而是 DESC 排序。
如有必要,我可以使用 v4 API。