Conversion Value Rules

Conversion value rules let you define actions that will modify the value of a conversion based on the following dimensions of an impression:

  • Audience membership
  • Physical location or location of interest
  • Device

You can use the Google Ads API to define conversion value rules, combine them into a conversion value rule set, and then apply the rule set to your entire Google Ads account or a specific campaign. Segments in the Google Ads API reports provide breakdowns so you can compare the original, unadjusted, and adjusted portions of your conversion values.

Create rules

The first step in using conversion value rules is to create at least one ConversionValueRule, which consists of:

  • The conditions that determine when the rule is applied
  • The action to take when the rule is applied

Rule conditions

Define the conditions of a ConversionValueRule with the following fields:

audience_condition
Applies the rule to impressions associated with one or more audiences. Specify the resource names of each user list or user interest with the user_lists or user_interests fields. To retrieve the resource names of available user lists or user interests, issue a searchStream or search request of GoogleAdsService where the FROM clause of the query is user_list or user_interest, respectively.
If an audience_condition contains multiple user lists or user interests, an impression will match the rule if the impression is associated with any of the user lists or user interests.
device_condition
Applies the rule if the device of the impression matches any of the specified device_types. Only device types in ValueRuleDeviceType are permitted.
geo_location_condition
Applies the rule to impressions where the location information matches any of the specified geo_target_constants for the geo_match_type, and does not match any of the excluded_geo_target_constants for the excluded_geo_match_type. Consult the location targeting guide for how to retrieve location resource names.

You can specify at most two of audience_condition, device_condition, or geo_location_condition on each ConversionValueRule. A rule with no conditions specified applies to all impressions that do not meet the conditions of a more specific rule.

Rule action

A rule must have a single action, which consists of an operation and a value. The action defines how to adjust the conversion value of a conversion that satisfies the rule's conditions. The available operations are as follows.

ADD
Adds the value to the original value of the conversion. The value must be greater than 0.
MULTIPLY
Multiplies the original value of the conversion by the specified value. The value must be greater than or equal to 0.5 and less than or equal to 10.
SET
Sets the conversion value to the specified value. The value must be greater than 0. This action is only available to allowlisted accounts.

Other rule attributes

In addition to conditions and an action, a ConversionValueRule has the following attributes.

owner_customer
The resource name of the Customer that owns the rule. Use this to determine if a rule is defined within the account or one of its manager accounts.
status
The status of the rule. You can pause a rule by setting this field to PAUSED, and enable a paused rule by setting this field to ENABLED.

Creating a rule set

Once you have at least one ConversionValueRule, you can create a ConversionValueRuleSet, which consists of:

conversion_value_rules
The resource names of the rules to include in the set.
dimensions

A list of ValueRuleSetDimension enum values that indicates which conditions the rules in the set can utilize. For example, if dimensions contains GEO_LOCATION and DEVICE, you can add rules with geo_location_condition or device_condition to the set, but you cannot add a rule with audience_condition.

This list cannot be empty, and can contain at most two entries.

In addition, the first entry in this list determines which value appears for segments.conversion_value_rule_primary_dimension in reports.

attachment_type

Set this value to CUSTOMER to create a rule set that applies to the entire account, or CAMPAIGN to create a rule set for a specific campaign.

campaign

If the attachment_type of the rule set is CAMPAIGN, set this to the resource name to which the rule set applies.

Similar to rules, a rule set also has an owner_customer and a status. However, the status of a rule set is read-only and derived from its rules as follows:

  • If every rule referenced by conversion_value_rules has a status of PAUSED, then the conversion value rule set status will be PAUSED.
  • Otherwise, the conversion value rule set status will be ENABLED.

Removing rules and rule sets

  • A ConversionValueRuleSet must have at least one conversion value rule that is either PAUSED or ENABLED.

  • Removing a ConversionValueRule that is referenced in the conversion_value_rules of a PAUSED or ENABLED ConversionValueRuleSet will fail.

  • Removing a ConversionValueRuleSet does not change the status of each ConversionValueRule referenced by the set.

  • Once a ConversionValueRuleSet is removed, search and searchStream requests for the conversion_value_rule_set resource will no longer return the removed set.

Reporting

The metrics.conversions_value and metrics.all_conversions_value fields, as well as fields derived from those metrics, reflect modifications made by conversion value rule sets. In addition, you can include segments.conversion_value_rule_primary_dimension in your query for more information regarding how rules were applied. The possible values for that segment are as follows:

NO_RULE_APPLIED
Values for conversions where no rule was applied.
ORIGINAL
The original value of conversions where a rule was applied.
GEO_LOCATION, DEVICE, or AUDIENCE
The value of conversions after a rule was applied, grouped by the first entry in the rule set's dimensions collection.