Google merchant question about multiple destinations (API)

31 views
Skip to first unread message

Nicolas (TrevorStoreCL spA)

unread,
Jun 7, 2024, 7:41:37 PMJun 7
to Google Content API for Shopping
Greetings!
I'm currently implementing Google Merchant to post our products on the Google products page. I've developed a solution that seems to work, but it may not be optimal. Our business sells alcoholic beverages, and the prices vary depending on the target country.

At present, I haven't found a way to post a single product with different prices for each country. Therefore, I've been posting multiple products with the same title, description, and image, but with different IDs to identify them by country.

We currently have a relatively small number of products and sell to 7–8 countries depending on the seller's preference. As a result, for each product, we have to create 7 to 8 entries in Google Merchant.

I'm using the googleapis package in Node.js to send the products, following the descriptions in the code. However, the documentation on the Google page is not entirely clear or understandable to me. All products are automatically sent to Merchant once a seller publishes their bottle.

Is there a way to create a single product and define different prices for each country instead of making a lot of requests and creating multiple entries?

Thank you for your assistance.


Code:
        const requestBody: content_v2_1.Schema$Product | undefined = {
            adult: false,
            brand: skuBrand?.name || 'no brand available',
            channel: 'online',
            contentLanguage: languageToUse,
            description: sku.description || 'No description available',
            externalSellerId: userId,
            googleProductCategory,
            imageLink: sku.mainImageUrl || globals.noImagePlaceholder,
            price: {
                currency: 'EUR',
                value: price.toString()
            },
            productDetails: [
                {
                    attributeName: 'Subcategory',
                    attributeValue: sku.subCategory
                },
                {
                    attributeName: 'Brand Name',
                    attributeValue: skuBrand?.name || 'no brand available'
                },
                {
                    attributeName: 'Country of Origin',
                    attributeValue: skuBrand?.countryOfOrigin || 'unknown'
                },
                {
                    attributeName: 'Capacity',
                    attributeValue: sku.bottleSizeInMl + ' ml'
                },
                {
                    attributeName: 'Alcohol Content',
                    attributeValue: sku.volumeInPercent! / 10 + '%'
                }
            ],
            shipping: [
                {
                    country: targetCountry,
                    price: {
                        currency: 'EUR',
                        value: (0).toString()
                    }
                }
            ],
            title: sku.name,
            offerId: productId,
            targetCountry: targetCountry,
            availability: 'in stock',
        }Captura de pantalla 2024-06-07 114523.png
Reply all
Reply to author
Forward
0 new messages