Cele konwersji są uporządkowane według hierarchii. Cele klienta określają domyślne cele dla całego konta, a cele kampanii zastępują cele klienta w przypadku kampanii o specyficznych wymaganiach dotyczących określania stawek i optymalizacji.
Proces zarządzania celami wygląda tak:
Utwórz ConversionAction.
Gdy utworzysz działanie powodujące konwersję, Google Ads automatycznie wykona te czynności:
Tworzy CustomerConversionGoal dla category i origin działania powodującego konwersję, jeśli jeszcze nie istnieje.
Tworzy CampaignConversionGoal dla każdej kampanii oraz category i origin działania powodującego konwersję, jeśli jeszcze nie istnieją.
Konfiguruje atrybut biddable obiektów CustomerConversionGoal i CampaignConversionGoal zgodnie z różnymi regułami, które zostaną omówione w dalszej części tej serii przewodników.
Aktualizuj CustomerConversionGoalobiekty utworzone automatycznie przez Google Ads, aby były zgodne z Twoimi celami. Ustaw wartość biddable na true, aby określać stawki i optymalizować je pod kątem ConversionActions z użyciem category i origin celu, a w przeciwnym razie false. Google Ads automatycznie stosuje te aktualizacje w każdej kampanii, w której nie zostały przez Ciebie wyraźnie zaktualizowane cele kampanii ani zastosowane cele niestandardowe.
Jeśli masz kampanię z unikalnymi celami, które różnią się od celów na poziomie klienta, skonfiguruj ją CampaignConversionGoal, wykonując co najmniej 1 z tych kroków:
Użyj operacji update, aby zmodyfikować atrybut biddable dowolnych obiektów CampaignConversionGoal, w których cel powinien różnić się od celów na poziomie klienta.
Jeśli skonfigurowanie celów kampanii za pomocą opcji category i origin nie wystarczy, użyj do ustalania stawek i optymalizacji konkretnych działań powodujących konwersję, tworząc CustomConversionGoal i aktualizując ConversionGoalCampaignConfig kampanii.
W wyniku tych update operacji Google Ads zapewnia, że goal_config_level kampanii ConversionGoalCampaignConfig jest ustawiony na CAMPAIGN i przestaje stosować CustomerConversionGoal aktualizacje do obiektów CampaignConversionGoal kampanii.
Jeśli chcesz przywrócić w kampanii cele na poziomie klienta, ustaw wartość goal_config_level na CUSTOMER.
Google Ads modyfikuje CampaignConversionGoal, aby dopasować je do CustomerConversionGoal, i dopóki goal_config_level pozostaje ustawione na CUSTOMER, stosuje wszelkie zmiany w CustomerConversionGoal do CampaignConversionGoal kampanii. Kampania przestanie używać wszystkich CustomConversionGoals.
Wymagania dotyczące zmiany
Podczas modyfikowania obiektu CustomerConversionGoal lub CustomConversionGoalcustomer_id w żądaniu musi być zgodny z identyfikatorem konta klienta konwersji Google Ads na Twoim koncie.
Natomiast podczas modyfikowania obiektu CampaignConversionGoal lub ConversionGoalCampaignConfig wartość customer_id w żądaniu musi być zgodna z wartością customer_id zasobu Customer na koncie Google Ads.
Ustawienia działań powodujących konwersję
Cele są uporządkowane według category i origin, ale możesz ustawić atrybut primary_for_goal każdego ConversionAction, aby określić jego rolę w ustalaniu stawek i sposób, w jaki konwersje powiązane z działaniem będą wyświetlane w raportach.
Jeśli primary_for_goal to true:
Google Ads uwzględnia działanie powodujące konwersję w określaniu stawek na podstawie atrybutu biddablecelów klienta i kampanii dla działania powodującego konwersjęcategory oraz origin.
Google Ads uwzględnia konwersje i wartości konwersji działania powodującego konwersję w kolumnach Konwersje i Wszystkie konwersje.
Jeśli primary_for_goal to false:
Google Ads nie uwzględnia działania powodującego konwersję w określaniu stawek ani w kolumnie Konwersje, chyba że używasz go w CustomConversionGoal. Konwersje i wartości konwersji działania powodującego konwersję nadal będą dostępne w raportach w kolumnie Wszystkie konw. i powiązanych z nią polach.
Działania powodujące konwersję, w przypadku których wartość primary_for_goal jest ustawiona na true, są wyświetlane w interfejsie Google Ads jako Główne działanie wykorzystywane do optymalizacji ustalania stawek, a w pozostałych przypadkach jako Dodatkowe działanie niewykorzystywane do optymalizacji ustalania stawek.
[null,null,["Ostatnia aktualizacja: 2025-08-26 UTC."],[[["\u003cp\u003eConversion goals streamline conversion action organization for efficient optimization towards advertising objectives, grouping them by category and origin.\u003c/p\u003e\n"],["\u003cp\u003eCustomer goals establish default account-wide goals, while campaign goals allow for campaign-specific bidding and optimization by overriding customer goals.\u003c/p\u003e\n"],["\u003cp\u003eConversion actions with \u003ccode\u003eprimary_for_goal\u003c/code\u003e set to \u003ccode\u003etrue\u003c/code\u003e are included in bidding and reporting metrics like 'Conversions' and 'All conversions'.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Ads automatically creates and manages CustomerConversionGoal, CampaignConversionGoal, and ConversionGoalCampaignConfig objects, allowing only updates through the API.\u003c/p\u003e\n"],["\u003cp\u003eWhen managing conversion actions, utilize the \u003ccode\u003eprimary_for_goal\u003c/code\u003e attribute instead of the deprecated \u003ccode\u003einclude_in_conversions_metric\u003c/code\u003e for bidding and reporting purposes.\u003c/p\u003e\n"]]],[],null,["# Conversion goals\n\n[Conversion goals](//support.google.com/google-ads/answer/10995103) help you\norganize your conversion actions so that you can more easily optimize toward\nyour advertising objectives.\n\nConversion goals are grouped by the unique combinations of\n[`category`](/google-ads/api/reference/rpc/v21/ConversionAction#category)\n(for example, `PAGE_VIEW`), and [`origin`](/google-ads/api/reference/rpc/v21/ConversionAction#origin)\n(for example, `WEBSITE`) in the set of\n[`ConversionActions`](/google-ads/api/reference/rpc/v21/ConversionAction) in your account's\n[Google Ads conversion customer](/google-ads/api/docs/conversions/getting-started#enable_conversion_tracking).\n| **Important:** In the Google Ads UI goal management tabs, the `origin` attribute is labeled **Conversion source** . The Google Ads API uses the term `origin` to differentiate between this attribute and the **Source** field in the UI **Conversion actions** tab.\n| **Important:** You can only set the [`selective_optimization`](/google-ads/api/reference/rpc/v21/Campaign#selective_optimization) field of `Campaign` on an [App campaign](/google-ads/api/docs/app-campaigns/overview). For all other campaign types, use [campaign goals](/google-ads/api/docs/conversions/goals/campaign-goals) to optimize a campaign for specific conversion actions.\n\nGoal management overview\n------------------------\n\nConversion goals are organized in a hierarchy. Customer goals define the\n[default goals](//support.google.com/google-ads/answer/10995103#account_default)\nfor your entire account, while campaign goals override the customer goals for\ncampaigns with specific bidding and optimization requirements.\n\nThe goal management workflow is as follows:\n\n1. Create a `ConversionAction`.\n\n When you create the conversion action, Google Ads automatically performs the\n following steps:\n - Creates a [`CustomerConversionGoal`](/google-ads/api/reference/rpc/v21/CustomerConversionGoal) for the conversion action's `category` and `origin` if one doesn't already exist.\n - Creates a [`CampaignConversionGoal`](/google-ads/api/reference/rpc/v21/CampaignConversionGoal) for each campaign and the conversion action's `category` and `origin` if one doesn't already exist.\n - Configures the `biddable` attribute of the `CustomerConversionGoal` and `CampaignConversionGoal` objects according to various rules covered later in this guide series.\n\n | **Note:** Your account already has `CustomerConversionGoal` and `CampaignConversionGoal` objects for your existing conversion actions.\n2. Update the `CustomerConversionGoal` objects that Google Ads created automatically\n to align with your objectives. Set `biddable` to `true` to bid and optimize\n towards `ConversionActions` with the goal's `category` and `origin`, and\n `false` otherwise. Google Ads automatically applies these updates to every\n campaign where you hadn't explicitly updated campaign goals or applied\n custom goals.\n\n3. If you have a campaign with unique goals that differ from your customer-level\n goals, configure its `CampaignConversionGoal` using one or both of the\n following steps.\n\n - Use `update` operations to modify the `biddable` attribute of any\n `CampaignConversionGoal` objects where the goal should differ from the\n customer-level goals.\n\n - If configuring the campaign's goals by `category` and `origin` doesn't\n suffice, use specific conversion actions for bidding and optimization by\n creating a [`CustomConversionGoal`](/google-ads/api/reference/rpc/v21/CustomConversionGoal)\n and updating the campaign's [`ConversionGoalCampaignConfig`](/google-ads/api/reference/rpc/v21/ConversionGoalCampaignConfig).\n\n As a result of the `update` operations, Google Ads ensures that the\n [`goal_config_level`](/google-ads/api/reference/rpc/v21/ConversionGoalCampaignConfig#goal_config_level)\n of the campaign's `ConversionGoalCampaignConfig` is set\n to [`CAMPAIGN`](/google-ads/api/reference/rpc/v21/GoalConfigLevelEnum.GoalConfigLevel#campaign)\n and stops applying `CustomerConversionGoal` updates to the campaign's\n `CampaignConversionGoal` objects.\n\n If you want to transition the campaign back to using customer-level goals,\n set `goal_config_level` to\n [`CUSTOMER`](/google-ads/api/reference/rpc/v21/GoalConfigLevelEnum.GoalConfigLevel#customer).\n Google Ads modifies its `CampaignConversionGoal` to match\n `CustomerConversionGoal` and as long as `goal_config_level` remains set to\n `CUSTOMER`, applies any changes to `CustomerConversionGoal` to the campaign's\n `CampaignConversionGoal`. The campaign in turn stops using any\n `CustomConversionGoals`.\n | **Key Point:** Since Google Ads automatically creates [`CustomerConversionGoal`](/google-ads/api/reference/rpc/v21/CustomerConversionGoal), [`CampaignConversionGoal`](/google-ads/api/reference/rpc/v21/CampaignConversionGoal), and [`ConversionGoalCampaignConfig`](/google-ads/api/reference/rpc/v21/ConversionGoalCampaignConfig) objects in your account, you can only *update* those objects. The Google Ads API doesn't support creating or removing those objects.\n\nMutate requirements\n-------------------\n\nWhen mutating a `CustomerConversionGoal` or `CustomConversionGoal` object,\nthe `customer_id` of the request must match the ID of your account's\n[Google Ads conversion customer account](/google-ads/api/docs/conversions/getting-started#enable_conversion_tracking).\n\nIn contrast, when mutating a `CampaignConversionGoal` or\n`ConversionGoalCampaignConfig` object, the `customer_id` of the request must\nmatch the `customer_id` of your Google Ads account's `Customer` resource.\n\nConversion action settings\n--------------------------\n\nAlthough goals are organized by `category` and `origin`, you can set the\n[`primary_for_goal`](/google-ads/api/reference/rpc/v21/ConversionAction#primary_for_goal) attribute\nof each `ConversionAction` to indicate the role it should play in bidding and\nhow the action's conversions will [appear in reports](//support.google.com/google-ads/answer/11461796).\n\nIf `primary_for_goal` is `true`:\n\n- Google Ads includes the conversion action in bidding based on the `biddable` attribute of customer and campaign goals for the conversion action's `category` and `origin`.\n- Google Ads includes the conversion action's conversions and conversion values in [**Conversions**](/google-ads/api/fields/v21/campaign#metrics.conversions) and [**All\n conversions**](/google-ads/api/fields/v21/campaign#metrics.all_conversions).\n\nIf `primary_for_goal` is `false`:\n\n- Google Ads doesn't include the conversion action in bidding or **Conversions**\n unless you use the conversion action in a `CustomConversionGoal`. You can\n still find the conversion action's conversions and conversion values in\n [**All conv.**](/google-ads/api/fields/v21/campaign#metrics.all_conversions) and its related\n fields in reports.\n\n See the\n [campaign goals guide](/google-ads/api/docs/conversions/goals/campaign-goals#custom_goals)\n for more information about custom conversion goals.\n\nConversion actions with `primary_for_goal` set to `true` appear in the Google Ads UI\nas **Primary action used for bidding optimization** , otherwise they appear as\n**Secondary action not used for bidding optimization**.\n| **Important:** The [`include_in_conversions_metric`](/google-ads/api/reference/rpc/v21/ConversionAction#include_in_conversions_metric) attribute of `ConversionAction` is deprecated. When managing your conversion actions, set the `primary_for_goal` attribute instead, and transition any of your reporting or application logic that relies on `include_in_conversions_metric` to use `primary_for_goal`."]]