监控离线数据诊断信息
使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。
使用 Google Ads API 检索线下数据诊断信息,其中包含有关转化数据导入和调整流程总体运行状况的信息。
如需检索账号的最新线下数据诊断信息,请使用以下资源之一:
账号级诊断
如需检索账号级转化上传诊断信息,请使用以下 GAQL 查询:
SELECT customer.id, offline_conversion_upload_client_summary.alerts, offline_conversion_upload_client_summary.client, offline_conversion_upload_client_summary.daily_summaries, offline_conversion_upload_client_summary.job_summaries, offline_conversion_upload_client_summary.last_upload_date_time, offline_conversion_upload_client_summary.pending_event_count, offline_conversion_upload_client_summary.pending_rate, offline_conversion_upload_client_summary.status, offline_conversion_upload_client_summary.success_rate, offline_conversion_upload_client_summary.successful_event_count, offline_conversion_upload_client_summary.total_event_count FROM offline_conversion_upload_client_summary
此查询会针对近期导入中使用的每种类型的客户端返回单独的 OfflineConversionUploadClientSummary
行。例如,如果您最近同时使用 Google Ads API 和 Google Ads 界面进行了导入,则结果会包含 GOOGLE_ADS_API
和 GOOGLE_ADS_WEB_CLIENT
的 client
值的单独条目。
转化操作级诊断
如需在转化操作一级检索转化上传诊断信息,请使用以下 GAQL 查询:
SELECT offline_conversion_upload_conversion_action_summary.conversion_action_name, offline_conversion_upload_conversion_action_summary.alerts, offline_conversion_upload_conversion_action_summary.client, offline_conversion_upload_conversion_action_summary.daily_summaries, offline_conversion_upload_conversion_action_summary.job_summaries, offline_conversion_upload_conversion_action_summary.last_upload_date_time, offline_conversion_upload_conversion_action_summary.pending_event_count, offline_conversion_upload_conversion_action_summary.status, offline_conversion_upload_conversion_action_summary.successful_event_count, offline_conversion_upload_conversion_action_summary.total_event_count FROM offline_conversion_upload_conversion_action_summary WHERE offline_conversion_upload_conversion_action_summary.conversion_action_id = < INSERT CONVERSION ACTION ID >
与账号级诊断类似,此查询会针对近期导入中使用的每种类型的客户端返回单独的 OfflineConversionUploadConversionActionSummary
行。例如,如果您最近同时使用 Google Ads API 和 Google Ads 界面进行了导入,则结果会包含 GOOGLE_ADS_API
和 GOOGLE_ADS_WEB_CLIENT
的 client
值的单独条目。
如何解读这些摘要
每个 OfflineConversionUploadClientSummary
或 OfflineConversionUploadConversionActionSummary
都有一个 status
字段,用于反映 client
的导入总体健康状况。它还包含以下信息:
所有这些字段都包含最近一个完整日历天的导入信息。您可以使用这些信息来评估导入的当前运行状况。
此外,每个 OfflineConversionUploadClientSummary
或 OfflineConversionUploadConversionActionSummary
都包含两种不同类型的报告:
daily_summaries
- 过去 7 天的导入请求的
successful_count
、failed_count
和 pending_count
,按导入date
分组。 job_summaries
最近 7 个导入请求的 successful_count
、failed_count
和 pending_count
,按 job_id
分组。job_id
是 UploadClickConversionsRequest
和 UploadConversionAdjustmentsRequest
的可选字段。您可以将 job_id
设置为小于 2^31
的非负数,也可以让 Google Ads API 为您的请求分配一个系统生成的作业 ID。无论您选择哪个选项,UploadClickConversionsResponse
或 UploadConversionAdjustmentsResponse
都会返回 job_id
。
如果您有一个作业或进程通过多个请求导入大量转化,那么分配自己的 job_id
会很有用。如果您将每个请求中的 job_id
设置为相同的值,则可以从 job_summaries
中检索该作业的单个条目。如果您让 Google Ads API 为每个请求的 job_id
分配系统生成的值,则 job_summaries
会为每个请求包含一个单独的条目,这可能会使分析作业的总体运行状况变得更加困难。
如何使用摘要
为确保导入流程按预期记录转化和增强型转化,请定期检索每个账号的摘要。如果任何摘要的 status
不是 EXCELLENT
,请使用 alerts
下的错误列表来指导您修改导入流程,以减少或消除这些错误。
例如:
如果状态为 NEEDS_ATTENTION
,则表示大部分导入操作失败。查看 alerts
下的错误,并修改导入流程以减少或消除这些错误。
如果状态为 NO_RECENT_UPLOADS
,则表示 Google Ads 最近未收到任何针对 client
的导入数据。如果此结果出乎意料,请检查使用相应客户端执行导入的进程。
例如,如果 GOOGLE_ADS_API
的 status
为 NO_RECENT_UPLOADS
,则可能表示使用 Google Ads API 的导入流程最近停止运行。
如需确定是否有特定导入日期或作业发送了大量无法处理的事件,请检查 daily_summaries
和 job_summaries
的 successful_count
、failed_count
和 pending_count
。 处于待处理状态的任何事件可能需要长达 24 小时才能完成。
如需详细了解如何改进线下数据诊断,请访问帮助中心。
限制
在检索导入摘要时,请注意以下事项:
只有当 searchStream
或 search
请求的 customer_id
与您最近用于导入转化的客户相同时,Google Ads API 才会返回线下数据诊断信息。
例如,使用跨账号转化跟踪的客户账号可能不包含任何诊断信息。不过,您可以发送一个请求,其中 customer_id
与您在导入中使用的经理账号的 customer_id
相匹配,从而检索诊断信息。
Google Ads 会将增强型潜在客户转化数据导入中的 CLICK_NOT_FOUND
错误视为警告。因此,如果 alerts
包含此错误的条目,相应操作仍会被视为成功,并包含在 successful_event_count
中。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-26。"],[[["\u003cp\u003eThe Google Ads API allows retrieval of offline data diagnostics, offering insights into the health of your conversion uploads and adjustments.\u003c/p\u003e\n"],["\u003cp\u003eYou can access these diagnostics at both the account level and the conversion action level using specific GAQL queries.\u003c/p\u003e\n"],["\u003cp\u003eDiagnostics encompass data like total events, successful events, pending events, and alerts on errors, helping assess the upload process.\u003c/p\u003e\n"],["\u003cp\u003eDaily and job summaries are included, offering a detailed view of upload request performance over the past 7 days.\u003c/p\u003e\n"],["\u003cp\u003eRegularly review these summaries to ensure smooth conversion tracking, addressing any alerts to optimize the upload process for better results.\u003c/p\u003e\n"]]],[],null,["# Monitor offline data diagnostics\n\n| **Note:** For enhanced conversions for leads imports, use the [enhanced conversions for leads diagnostics report](//support.google.com/google-ads/answer/15249267) in the Google Ads UI to monitor your import health.\n\nUse the Google Ads API to retrieve\n[offline data diagnostics](//support.google.com/google-ads/answer/13812240),\nwhich contain information about the overall health of your conversion import and\nadjustment processes.\n\nTo retrieve the latest offline data diagnostics for your account, use\none of the following resources:\n\n- [`offline_conversion_upload_client_summary`](/google-ads/api/fields/v21/offline_conversion_upload_client_summary) aggregates import diagnostics at the account level.\n- [`offline_conversion_upload_conversion_action_summary`](/google-ads/api/fields/v21/offline_conversion_upload_conversion_action_summary) aggregates import diagnostics at the conversion action level.\n\nAccount level diagnostics\n-------------------------\n\nTo retrieve account level conversion upload diagnostics, use the following\nGAQL query: \n\n SELECT\n customer.id,\n offline_conversion_upload_client_summary.alerts,\n offline_conversion_upload_client_summary.client,\n offline_conversion_upload_client_summary.daily_summaries,\n offline_conversion_upload_client_summary.job_summaries,\n offline_conversion_upload_client_summary.last_upload_date_time,\n offline_conversion_upload_client_summary.pending_event_count,\n offline_conversion_upload_client_summary.pending_rate,\n offline_conversion_upload_client_summary.status,\n offline_conversion_upload_client_summary.success_rate,\n offline_conversion_upload_client_summary.successful_event_count,\n offline_conversion_upload_client_summary.total_event_count\n FROM offline_conversion_upload_client_summary\n\nThis query returns separate\n[`OfflineConversionUploadClientSummary`](/google-ads/api/reference/rpc/v21/OfflineConversionUploadClientSummary)\nrows for each type of client used in recent imports. For example, if you\nrecently imported using both the Google Ads API and the Google Ads UI, the results\ncontain separate entries for the `client` values of `GOOGLE_ADS_API` and\n`GOOGLE_ADS_WEB_CLIENT`.\n\nConversion action level diagnostics\n-----------------------------------\n\nTo retrieve conversion upload diagnostics at the conversion action level, use\nthe following GAQL query: \n\n SELECT\n offline_conversion_upload_conversion_action_summary.conversion_action_name,\n offline_conversion_upload_conversion_action_summary.alerts,\n offline_conversion_upload_conversion_action_summary.client,\n offline_conversion_upload_conversion_action_summary.daily_summaries,\n offline_conversion_upload_conversion_action_summary.job_summaries,\n offline_conversion_upload_conversion_action_summary.last_upload_date_time,\n offline_conversion_upload_conversion_action_summary.pending_event_count,\n offline_conversion_upload_conversion_action_summary.status,\n offline_conversion_upload_conversion_action_summary.successful_event_count,\n offline_conversion_upload_conversion_action_summary.total_event_count\n FROM offline_conversion_upload_conversion_action_summary\n WHERE offline_conversion_upload_conversion_action_summary.conversion_action_id = \u003c INSERT CONVERSION ACTION ID \u003e\n\nSimilar to account level diagnostics, this query returns separate\n[`OfflineConversionUploadConversionActionSummary`](/google-ads/api/reference/rpc/v21/OfflineConversionUploadConversionActionSummary)\nrows for each type of client used in recent imports. For example, if you\nrecently imported using both the Google Ads API and the Google Ads UI, the results\ncontain separate entries for the `client` values of `GOOGLE_ADS_API` and\n`GOOGLE_ADS_WEB_CLIENT`.\n\nHow to interpret these summaries\n--------------------------------\n\nEach `OfflineConversionUploadClientSummary` or\n`OfflineConversionUploadConversionActionSummary` has a `status` field, that\nreflects the [overall health](//support.google.com/google-ads/answer/13812240#2)\nof imports for the `client`. It also contains the following information:\n\n- The count of total events received.\n- The count of successfully processed events.\n- The count of pending events (events that are still being processed).\n- An `alerts` field, that provides a summary of errors, grouped by [`OfflineConversionError`](/google-ads/api/reference/rpc/v21/OfflineConversionError).\n\nAll of these fields contain information from the most recent full calendar day\nof imports. Use this information to assess the *current* health of your imports.\n\nIn addition, each `OfflineConversionUploadClientSummary` or\n`OfflineConversionUploadConversionActionSummary` contains two different\ntypes of reports:\n\n`daily_summaries`\n: A `successful_count`, `failed_count`, and `pending_count` of import requests\n from the last 7 days, grouped by import `date`.\n\n`job_summaries`\n\n: The `successful_count`, `failed_count`, and `pending_count` of the 7 most\n recent import requests, grouped by `job_id`. The `job_id` is an optional field\n of [`UploadClickConversionsRequest`](/google-ads/api/reference/rpc/v21/UploadClickConversionsRequest) and\n [`UploadConversionAdjustmentsRequest`](/google-ads/api/reference/rpc/v21/UploadConversionAdjustmentsRequest). You can either set the\n `job_id` to a non-negative number less than `2^31` or let the Google Ads API assign a\n system-generated job ID to your request. Regardless of which option you\n choose, the [`UploadClickConversionsResponse`](/google-ads/api/reference/rpc/v21/UploadClickConversionsResponse) or\n [`UploadConversionAdjustmentsResponse`](/google-ads/api/reference/rpc/v21/UploadConversionAdjustmentsResponse) returns the `job_id`.\n\n One scenario where assigning your own `job_id` is useful is when you have a\n single job or process that imports a large number of conversions using\n multiple requests. If you set the `job_id` on each of those requests to the\n same value, then you can retrieve a single entry for the job from\n `job_summaries`. If instead you let the Google Ads API assign a system-generated\n value to the `job_id` of each request, the `job_summaries` contains a separate\n entry for each request, which could make analyzing the overall health of your\n job more challenging.\n\nHow to use summaries\n--------------------\n\nTo ensure your import processes are recording conversions and enhancements as\nexpected, periodically retrieve the summaries for each of your accounts. If the\n`status` of any summary is not `EXCELLENT`, use the list of errors under\n`alerts` to guide you through modifying your import process to reduce or\neliminate those errors.\n\nFor example:\n\n- If the status is `NEEDS_ATTENTION`, then a significant portion of your\n import operations failed. Review the errors under `alerts` and modify your\n import process to reduce or eliminate those errors.\n\n- If the status is `NO_RECENT_UPLOADS`, then Google Ads has not received any recent\n imports for the `client`. If this is unexpected, then review the processes\n that perform imnports using that client.\n\n For example, if the `status` for `GOOGLE_ADS_API` is `NO_RECENT_UPLOADS`, that\n could indicate that your import process that uses the Google Ads API stopped running\n recently.\n- To determine if there was a specific import date or job that sent a large\n number of events that failed to process, check the `successful_count`,\n `failed_count`, and `pending_count` of `daily_summaries` and `job_summaries`.\n Any events in a pending state may take up to 24 hours\n to complete.\n\nMore information on how to improve offline data diagnostics can be found in\nthe [Help center](//support.google.com/google-ads/answer/13812240#4).\n\nRestrictions\n------------\n\nKeep the following in mind when retrieving import summaries:\n\n- The Google Ads API only returns offline data diagnostics if the\n [`customer_id`](/google-ads/api/reference/rpc/v21/SearchGoogleAdsStreamRequest#customer_id) of the\n `searchStream` or `search` request is the same customer you used recently to\n import conversions.\n\n For example, a client account that uses cross-account conversion tracking may\n not contain any diagnostics. However, you can retrieve diagnostics by sending\n a request where the `customer_id` matches the `customer_id` of the manager\n account you use in imports.\n- Google Ads treats `CLICK_NOT_FOUND` errors from [enhanced conversions for\n leads](/google-ads/api/docs/conversions/enhanced-conversions/leads) imports as warnings. As\n a result, if `alerts` contains an entry for this error, the corresponding\n operations are still considered successful and are included in the\n `successful_event_count`."]]