Basic information
The g:availability
element contains information about whether the product is in stock. This is a mandatory element in the feed for Google Shopping. Possible availability values are:
in_stock
= the product is in stock, customers can order it, and orders can be shipped.out_of_stock
= the product is no longer available for order, orders are not accepted.preorder
= the product has not yet been released on the market, but can already be pre-ordered. This status requires the mandatory inclusion of the g_availability_date element, specifying the date when this brand new product will be launched on the market.backorder
= the product is currently out of stock, but can still be ordered as a backorder. This status requires the mandatory inclusion of the g_availability_date element, specifying the date when the product will be available again.
Elements related to g:availability
that can also be used in the feed:
- g:availability_date - availability date of the product
- g:custom_label_0-4 - custom labels for creating filters in Google Shopping campaigns
FAQ
-
How do I filter products with a specific g:availability status, such as out_of_stock, in Mergado?
- On the Products page, create a query to find such products. In the query, use the condition “equals” or “contains,” for example:
g:availability = "out_of_stock"
.
- On the Products page, create a query to find such products. In the query, use the condition “equals” or “contains,” for example:
-
How to segment products by availability in g:availability?
- On the Products page, create four queries for each
g:availability
status. In the selections, use the condition “equals” or “contains,” for example:g:availability = "in_stock"
, etc.
You can then use these selections in rules, most often of the Bulk rewriting by query type, which allow you to set different values for an element within a single rule, for example,g:custom_label_0-4
.
- On the Products page, create four queries for each
-
How do I correct values in g:availability if they don’t have underscores in in stock and out of stock?
- Use a Find and Replace rule to replace the space with an underscore in the
g:availability
element. Enter a single space in the Find field. Enter the underscore character in the Replace field:_
The rule will correct the values as follows:in stock
→in_stock
out of stock
→out_of_stock
- Use a Find and Replace rule to replace the space with an underscore in the
-
How do I fill the g:availability element with a value from another element?
- Use the Bulk copy values rule to copy the value from another element, for example from AVAILABILITY to the
g:availability
element. - You can also use the Rewrite rule to store a value from another element (a so-called variable) in the
g:availability
element, for example:%AVAILABILITY%
.
- Use the Bulk copy values rule to copy the value from another element, for example from AVAILABILITY to the
-
What g:availability status should I use when a product is temporarily out of stock?
- Use
backorder
and at the same time you must fill in theg:availability_date
element with the date when the product will be back in stock.
- Use
-
What g:availability status should I use when the product is sold out and will not be back in stock?
- Use
out_of_stock
.
- Use
-
When do I need to specify the g:availability_date element with a specific date along with g:availability?
- For the statuses
backorder
andpreorder
. - For
backorder
, this is the date when the product will be available again (back in stock). - For
preorder
, this is the date when the product will go on sale (when it will be launched and will be in stock).
- For the statuses
-
How do I hide products in Mergado that have a specific value in g:availability, such as out_of_stock?
- First, create a query on the Products page to find such products. In the selection, use the condition “equals” or “contains,” for example:
g:availability = "out_of_stock"
, and then add a new rule on the Rules page, select the type Hide product, and use the selection you created. The rule will hide all products that have the value out_of_stock ing:availability
.
- First, create a query on the Products page to find such products. In the selection, use the condition “equals” or “contains,” for example:
-
How do I hide products in Mergado that have a value other than in_stock in g:availability?
- First, create a query on the Products page to find such products. In the query, use the condition “not equal to” or “does not contain,” for example:
g:availability != "in_stock"
, and then add a new one on the Rules page, select the type Hide product and use the one you created as the query. The rule will hide all products that do not have the value in_stock ing:availability
.
- First, create a query on the Products page to find such products. In the query, use the condition “not equal to” or “does not contain,” for example:
Help with the g:availability element
If you have any further questions about the g:availability
element, please post your question below in the thread or send it to technical support email.
What Mergado Audit checks for the g:availability element
- Whether the
g:availability
element is missing or empty for products. - Whether the
g:availability
element contains any unauthorized values; it can only contain: in_stock, out_of_stock, preorder, or backorder.
Try Mergado Audit XML feed for Google Shopping and if any of these errors in the
g:availability
element apply to you, you can fix the feed for Google Shopping in Mergado Editor.
If you need help, just contact our technical support.