Set up an ID rule

For the ID [id] attribute, you're required to submit a unique identifier value for each of your products. If the data provided does not match the product data specification requirements, you can use an ID rule to identify where the unique identifier exists in the primary data source.

The ID rule is a powerful feature that allows you to bulk update your data source to make sure that each of your products has a unique value for the ID [id] attribute. For example, if the column in your spreadsheet with your ID values is labeled "SKU", you may want to map the SKU column to the ID [id] attribute. Or, you may want to concatenate different columns to combine different attribute values into a single, unique ID.

Note: After updating your ID rule, you may not be able to show ads or listings from that data source for several hours.

This article explains how to set up rules for the ID [id] attribute.

On this page


Before you begin

  • Familiarize yourself with attribute rules. The ID rules feature uses the same interface used for other attribute rules, but is processed and applied separately.
  • Learn more about the product data specifications for the ID [id] attribute.
  • Note: ID rules are only supported for non-API data sources.

How to set up ID rules

To create a new rule for the ID attribute:

  1. In your Merchant Center account, select Settings Tools and setting menu icon [Gear] in the left navigation menu.
  2. Select Data sources.
  3. Under the “Product sources” tab, select a product source for which you'd like to refine the ID [id] attribute.
  4. Select the Data source setup tab.
  5. Expand Show advanced options.
  6. Select the pencil icon next to “ID rule”.
  7. Configure your data sources. In most cases, you'll use the "Set to" operator, and enter the attribute name.
    • Example: Set id to: my_first_feed.sku
  8. Add Modifications (optional).
  9. Select Save.

When you've finished setting up your rule, you'll need to reprocess your data source.

  1. Go to the Processing tab.
  2. In the top-right corner, select Re-process data source.
Note: The first re-processing of your data source may result in an error message. In this case, wait one hour, and then re-process the data source.

You may set up ID rules on both your primary and supplemental data sources. If you need to change the ID [id] attribute values in both your primary and supplemental data sources, be sure to make the changes to your primary data source first.

If you reupload the data source file, the ID rules that you set up will still apply. After you set up ID rules, they will always be applied before all other attribute rules are executed.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
10734582419642237841
true
Search Help Center
false
true
true
true
true
true
71525
false
false
true
false
false