تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
المقاييس التي تبلغ قيمتها صفرًا في نتائج البحث
عند تنفيذ طلب بحث، قد تصادف مقاييس لقيم صفرية. قد يرجع السبب إلى ما يلي:
الكيانات غير مؤهَّلة للعرض.
من المحتمل أنّه تم إيقافها مؤقتًا ضمن النطاق الزمني للتقرير.
عند استخدام نتائج طلب البحث، غالبًا ما تريد الحصول على معلومات حول مستوى أداء حملاتك. في هذا السياق، قد لا تكون المقاييس التي تبلغ قيمتها صفرًا مرغوبًا فيها. لإنشاء تقرير أكثر فائدة، يمكنك استبعاد المقاييس التي تبلغ قيمتها صفرًا بشكل صريح.
استبعاد المقاييس التي تبلغ قيمتها صفرًا باستخدام دالة منطقية
العبارة الشرطية هي تعبير يتم تقييمه على أنّه TRUE أو FALSE أو UNKNOWN.
ويتم استخدامها في شرط البحث الخاص بعبارات WHERE في لغة طلب البحث في "إعلانات Google".
يوضّح طلب البحث التالي كيفية إزالة المقاييس التي تبلغ قيمتها صفرًا بشكل صريح باستخدام دالة مسند:
استبعاد المقاييس التي تبلغ قيمتها صفرًا من خلال التقسيم
يتم دائمًا استبعاد المقاييس التي تبلغ قيمتها صفرًا عند تقسيم التقرير، شرط أن تكون جميع المقاييس المحدّدة صفرًا (راجِع أدناه).
يتم تقسيم التقرير من خلال تضمين أي حقل segments في طلب البحث. على سبيل المثال، إذا قسّمت تقريرًا حسب segments.date، سيتم تقسيم المقاييس مع صف واحد لكل تاريخ. لا يتم عرض التواريخ التي لا تتضمّن مقاييس في هذا النوع من التقارير.
بالنسبة إلى الاستعلام التالي، لن يتضمّن التقرير صفوف المقاييس التي تبلغ قيمتها صفرًا:
لن يحتوي التقرير الناتج على أي صفوف تكون فيها جميع المقاييس الثلاثة المحدّدة صفرًا.
في الحالات التي تسترد فيها بيانات أقدم من فترة الاحتفاظ، لن يحتوي التقرير الناتج على أي صفوف للبيانات الأقدم من فترة الاحتفاظ. يتم الاحتفاظ بجميع بيانات الحساب لمدة 11 عامًا، بما في ذلك مقاييس الأداء ومعلومات الفوترة والتقارير السابقة.
تاريخ التعديل الأخير: 2025-09-05 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-09-05 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eZero metrics in search results can occur due to entity ineligibility or pausing within the report's date range.\u003c/p\u003e\n"],["\u003cp\u003eYou can exclude zero metrics by using a predicate in the \u003ccode\u003eWHERE\u003c/code\u003e clause of your query to filter for non-zero values.\u003c/p\u003e\n"],["\u003cp\u003eSegmenting your report by fields like \u003ccode\u003esegments.date\u003c/code\u003e automatically excludes rows where all selected metrics are zero.\u003c/p\u003e\n"],["\u003cp\u003eReports will not include rows where all selected metrics are zero or for data older than the 11-year retention period.\u003c/p\u003e\n"]]],[],null,["# Zero Metrics\n\nZero metrics in search results\n------------------------------\n\nWhen you execute a query, you may encounter metrics for entities that\nare zero. This could be because:\n\n- The entities are ineligible for display.\n- They could have been paused within the report's date range.\n\nWith query results, you often want to obtain information about how your\ncampaigns are performing. In this context, zero metrics may not be\ndesirable. To produce a more useful report, you can explicitly exclude zero\nmetrics.\n\nExclude zero metrics with a predicate\n-------------------------------------\n\nA predicate is an expression that evaluates to `TRUE`, `FALSE`, or `UNKNOWN`.\nThey are used in the search condition of the `WHERE` clauses in\n[Google Ads Query Language](/google-ads/api/docs/query/structure).\n\nThe following query demonstrates how to explicitly remove zero metrics with\na predicate: \n\n SELECT\n campaign.id,\n metrics.impressions\n FROM campaign\n WHERE metrics.impressions \u003e 0\n\nExclude zero metrics by segmenting\n----------------------------------\n\nZero metrics are always excluded when segmenting a report, provided all\n*selected* metrics are zero (see [below](#rows_returned)).\n\nSegmenting a report is done by including any `segments` field in the search\nquery. For example, if you segment a report by `segments.date`, metrics are\nbroken down with one row for each date. Dates with no metrics are not returned\nin such a report.\n\nFor the following query, the report won't include zero metric rows: \n\n SELECT\n campaign.name,\n metrics.impressions,\n segments.date\n FROM campaign\n WHERE segments.date DURING LAST_30_DAYS\n\nReturned rows with zero metrics\n-------------------------------\n\nRows whose selected metrics are all zero won't be returned.\n\nFor example: \n\n SELECT\n ad_group_criterion.criterion_id,\n metrics.impressions,\n metrics.clicks,\n metrics.conversions,\n segments.date\n FROM keyword_view\n WHERE segments.date BETWEEN \u003cdate1\u003e AND \u003cdate2\u003e\n\nThe resulting report won't contain any rows in which all three selected metrics\nare zero.\n\nIn situations where you retrieve data older than the\n[retention period](//ads-developers.googleblog.com/2024/10/new-data-retention-policy-for-google-ads.html),\nthe resulting report won't contain any rows for data older than the retention\nperiod. All account data, including performance metrics, billing information\nand historical reports, are retained for a period of 11 years."]]