Elements g:custom_label_0–4#
Basic information#
These are up to five custom labels named:
g:custom_label_0g:custom_label_1g:custom_label_2g:custom_label_3g:custom_label_4
You can use them for filters in Google Shopping campaigns (in Merchant Center). The labels typically store values used for segmenting the feed by price (price ranges), availability (stock levels), margin (margin tiers), collection (e.g. spring/summer vs. autumn/winter), and similar criteria. You can store colour, year of manufacture, brand/manufacturer/author, category, and anything else that you will later use in Merchant Center to filter products.
Elements related to g:custom_label_0-4 that can also be used in the feed:
- g:availability — product availability status
- g:price — product price
- g:brand — product brand
Frequently asked questions#
- How do I populate a custom label, for example g:custom_label_0, with a specific value?
- Use the Rewrite rule to save a specific value into
g:custom_label_0for a specific product query. - To set different values in
g:custom_label_0for different products, first create product queries on the Products page based on the desired criteria — and then use those queries in the Bulk rewriting by query rule. - You can also use the Bulk rewriting by values rule to set different values in
g:custom_label_0based on the values of another element you already have for products. - You can also bulk-populate custom label values using the Data file import rule, which lets you import values from a CSV file or a Google Sheet.
- Use the Rewrite rule to save a specific value into
- How do I populate a custom label with a value from another element?
- Use the Bulk copy values rule to copy the value from another element — for example, from
PRODUCERtog:custom_label_0. - You can also use the Rewrite rule to save the value of another element (a variable) into
g:custom_label_0, for example:%PRODUCER%.
- Use the Bulk copy values rule to copy the value from another element — for example, from
- How do I store a value calculated from other elements into a custom label?
- Use the Calculation rule to calculate a new value. The formula can include variables from other elements (for example
%g:price%*1.3) and the result can be stored ing:custom_label_0.
- Use the Calculation rule to calculate a new value. The formula can include variables from other elements (for example
- How do I swap two labels, for example exchange the value of g:custom_label_4 with g:custom_label_0?
- Use the pre-built automation available in the left menu of your Google Shopping project: Automations → search for Swap values between two elements and run it.
- How do I hide products in Mergado that have a specific value in a custom label?
- First, create a query on the Products page to find such products. Use the condition equals or contains, for example:
g:custom_label_0 = "sold out". Then on the Rules page, create a new rule, select Hide product as the type, and use the query you created. The rule will hide all products that have the value sold out ing:custom_label_0.
- First, create a query on the Products page to find such products. Use the condition equals or contains, for example:
What Mergado Audit checks for the g:custom_label_0-4 elements#
- The maximum value length in
g:custom_label_0throughg:custom_label_4, which is 100 characters.
If you need help, contact our technical support.