rocket
نقدّم لك
Merchant API
التي تحلّ رسميًا محلّ Content API في Shopping.
updateالاطّلاع على آخر الأخبار
بشأن الميزات الجديدة وإصلاحات الأخطاء وتحديثات الإصدارات من Merchant API
point_of_sale
تعرَّف على كيفية إدارة نشاطك التجاري ومنتجاتك على Google وكيفية الحصول على إذن وصول آلي إلى البيانات والإحصاءات والميزات الفريدة على نطاق واسع.
ابدأ استخدام Merchant API اليوم.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
ملخّص
يمكنك استخدام فلاتر المستودع لاستبعاد منتجات معيّنة من "حملة Shopping". ولاستبعاد منتجات من "حملات Shopping الذكية"، استخدِم معايير سلبية لمجموعات بيانات المتجر بدلاً من ذلك.
يمكنك إنشاء فلتر مستودع استنادًا إلى قيمة واحدة أو أكثر من حقول مثل التصنيف المخصّص (0-4) أو نوع المنتج. عند تطبيق فلتر مستودع على حملة، لا يتم الإعلان إلا عن العروض التي تتطابق مع الفلتر. يمكنك إنشاء فلتر مستودع في واجهة مستخدم "إعلانات Google".
تستخدِم الخطوات الواردة في هذا القسم التصنيف المخصّص كمثال. يمكنك أيضًا إجراء ذلك باستخدام سمات الخلاصة الأخرى المتوافقة، مثل نوع المنتج أو العلامة التجارية أو فئة المنتجات من Google.
تتّبع الفلاتر منطق AND. لن تظهر لك سوى النتائج التي تتطابق مع جميع المعايير في الفلتر.
الخطوات اليدوية
في ما يلي مثال على الخطوات اليدوية باستخدام السمة التصنيف المخصّص:
يجب ضبط قيمة campaign_criterion_operation على create.
اضبط product_custom_attribute.index على 0 (يتم دعم 0-4).
اضبط product_custom_attribute.value على القيمة التي تريدها للتصنيف المخصّص.
اضبط الحقل campaign على resource_namecampaign_criterion الذي أنشأته في الخطوة السابقة.
يمكن أن يتراوح طول قيم التصنيف المخصّص بين حرف واحد و100 حرف، ويمكن أن يصل عدد القيم الفريدة إلى 1,000 قيمة على مستوى الحساب لكلّ سمة تصنيف مخصّص (يصل إجمالي عدد التصنيفات إلى 5,000 تصنيف).
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eUse inventory filters to include or exclude specific products from Shopping campaigns, ensuring only relevant offers are advertised.\u003c/p\u003e\n"],["\u003cp\u003eFilters can be created based on attributes like Custom label, Product type, Brand, or Google product category, utilizing 'AND' logic for precise targeting.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage inventory filters manually through the Google Ads UI or automatically via the Google Ads API using listing scopes.\u003c/p\u003e\n"],["\u003cp\u003eCustom labels offer flexibility, allowing up to 1,000 unique values per attribute for refined product categorization within campaigns.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided resources for detailed instructions, examples, and further information on implementing inventory filters effectively.\u003c/p\u003e\n"]]],[],null,["# Filter products\n\nSummary\n-------\n\nYou can use inventory filters to exclude certain products from a Shopping\ncampaign.To exclude products from Smart Shopping Campaigns, use [negative\ncriteria for listing groups](/google-ads/shopping/full-automation/articles/t20) instead.\n\nYou can create an [inventory filter](https://support.google.com/google-ads/answer/2382954) based on one or more values from\nfields like **Custom label (0-4)** or **Product type** . When you apply an\ninventory filter to a campaign, only offers that match the filter are\nadvertised. You can create an inventory filter in the [Google Ads UI](https://ads.google.com/).\n\nThe steps in this section use **Custom label** as an example. You can also do\nthis with other supported feed attributes, like Product type, Brand, or\nGoogle product category.\n| **Key Term:** In the Google Ads API, inventory filters are referred to as *listing\n| scopes*.\n\nFilters follow `AND` logic. You only see results that match all of the\ncriteria in your filter.\n\nManual steps\n------------\n\nHere's an example of the manual steps, using the attribute **Custom label**:\n\n1. [Link Merchant Center to Google Ads](/google-ads/shopping/full-automation/articles/t15).\n2. Sign in to the [Google Ads account](https://ads.google.com/).\n3. Click an existing campaign that uses your Merchant Center products, or [create a new one](/google-ads/shopping/full-automation/articles/t18).\n4. Click **Settings** in the left sidebar.\n5. Expand the **Additional settings** dropdown menu.\n6. Click **Inventory filter**.\n7. In the boxes shown:\n 1. Select **Custom label 0** . **Custom label 0-4** are supported.\n 2. Enter a value for the custom label.\n8. To filter by multiple values, click **AND** and repeat the preceding step.\n\nAutomatic steps\n---------------\n\nYou can only apply one listing scope per campaign. Each listing scope can\ninclude multiple product filters.\n\nHere's an example of the automatic steps, using `product_custom_attribute` as an\nexample:\n\n1. Make sure you've successfully created a campaign and have a campaign ID.\n2. Call [`MutateCampaignCriteriaRequest`](/google-ads/api/reference/rpc/latest/MutateCampaignCriteriaRequest) as follows:\n 1. Set the `campaign_criterion_operation` to `create`.\n 2. Set the `product_custom_attribute.index` to `0` (`0`-`4` are supported).\n 3. Set the `product_custom_attribute.value` to your desired value for the custom label.\n 4. Set the `campaign` field to the `resource_name` of the `campaign_criterion` you created in the preceding step.\n\n[Custom label](https://support.google.com/merchants/answer/6324473) values can be 1 to 100 characters in length, and there can\nbe up to 1,000 unique values account-wide for each custom label attribute (up to\n5,000 labels total).\n\nSee the [Google Ads Shopping example](https://github.com/googleads/google-ads-python/blob/main/examples/shopping_ads/add_listing_scope.py) for examples of other kinds of inventory\nfilters and more detail."]]