The following use cases have been documented to save as a guide for using the Google Listings & Ads attribute mapping functionality.
To create an attribute mapping rule, go to Marketing > Google Listings & Ads, and click “Create Attribute Rule” button. A modal window will show and we will select the Target Attribute Brand
Since we want to have a global value for all our products, the brand “Acme”. We can select “Set a fixed value” in the Assign value section. Once there, we can just type Acme in the input box.
Since we want this rule to apply to all the categories, we can leave Categories selector as is “Apply to All categories”
Now we can click on Save rule and the rule will be ready for syncing.
We can check in WooCommerce – Status – Action Scheduler how the re-sync task is pending
For this case, we should first add the Brand “Woo” for that Single Product by going to the Product edition page under WooCommerce -> Products. Then in the Google Listing And Ads section, we should populate the brand for this single product.
Now we can create a new rule exactly as we did in Use Case 1. After saving, this rule will apply to all the product but, since Single Product Google Listings & Ads Attributes has priority, the “Woo” brand in this product will be synced for this product instead of the “Acme” brand in the rules.
Note: Another option for doing this would be to create a new category for this product in assigning a rule ONLY for this category with the value “Woo” and the other rule for ALL the categories with the value “Acme”
A third option for doing this would be to use WooCommerce Brands extension and adding the brands to each product. Then, in the rule use Existing Product Field -> WooCommerce Brands (for ALL the categories)
In case we have WooCommerce Brands installed we can create a new rule, and selecting the target Brands.
Once doing this, we will select Taxonomies – Brands under “Use value from existing product field” selector.
After saving, the rule will automatically get the brand for each product in the syncing task.
If Yoast WooCommerce SEO is installed, we can map MPN or GTIN from Yoast to Google Listings & Ads. For this use case, we’ll be mapping the GTIN. To do this, we’d need to create a new rule and select GTIN as a target dep. After that, we can simply select “Yoast SEO – GTIN” as a field under “Use value from existing product field” selector:
After saving, the rule will automatically get the Yoast SEO defined GTIN for each product in the syncing task.
This use case assumes we have the Size Attribute created in Product > Attributes. Otherwise, the attribute should be created first. We can then create a new rule selecting Size as target attribute. Then, under “Use value from existing product field” selector, we should select Global Attributes – Product Size
In the category selector, we can choose ONLY those categories that are under Clothing
After saving, this rule will get Size attribute per each product under Hoodies or Clothing category on the syncing task.
First, we need to have our categories Women, Men and Kids created in WooCommerce.
We can then create a new Rule, selecting the attribute target Age Group. After that, we will select Adult under the “Select default value” selector.
For the categories selector, we will select “Apply ONLY to these categories” and then select “Men” and “Women”. If we have a lot of categories we can also type the category name in the selector for filtering.
We will save this category and create a new rule selecting Age group as a target. But this time we will select “Kids” under the “Select default value” selector. For the category, we should select ONLY apply to “Kids”.
We can see what all of our rules look like:
So, on each product sync, the Attribute Adult will be “adult” for Men and Women categories, and “kids” for the Kids category.