If you want your product to be advertised in only certain countries but not in others, use the excluded countries for Shopping ads [shopping_ads_excluded_country]
attribute. You can use this attribute to override the country targeting settings that you set up in your primary feed.
In this article
When to use
Optional for each product
Depending on your target country, and the language in which your product data is submitted, some of your products may be readily available to show in multiple countries. Use this attribute to stop a product from showing in certain countries, while still allowing it to show in other countries.
Format
Follow these formatting guidelines to make sure Google understands the data you're submitting. Learn when and how to submit your product data in English
Type | String (Unicode characters) |
Limits | 2 characters. Must be an ISO-3166-1 Alpha 2 country code |
Repeated field | Up to 100 times |
File format | Example value |
Text (TSV) | CH, AT |
XML (Feeds) | <g:shopping_ads_excluded_country>CH</g:shopping_ads_excluded_country> |
To format your data for Content API, see the Content API for Shopping resource.
Minimum requirements
These are the requirements you need to meet to show ads for your product. If you don't follow these requirements, your product might show in countries where you do not intend it to show.
- Only use supported ISO-3166-2 Alpha 2 country codes.
Examples
Repeated Fields
Text
For example:
Attribute | Value |
Title [title] |
Millie Wray Skater Dress |
Excluded countries for Shopping ads [shopping_ads_excluded_country] |
AT |
Excluded countries for Shopping ads [shopping_ads_excluded_country] |
CH |
You can also separate each country with a comma ( , ) :
AT, CH
XML
<g:shopping_ads_excluded_country>AT</g:shopping_ads_excluded_country><g:shopping_ads_excluded_country>CH</g:shopping_ads_excluded_country>