I used Steamdb and got the sub of the key purchased from the US since I own the game already. This was the linked sub from the extension's error message.

I see it has restrictions, but is there a way to see what countries are blocked rather than which ones are allowed? I also tried feeding the list of 2 letter country codes into an AI to ask what country codes were missing and it fed me a response that was inaccurate, so just want to double check with other actual people before I make my giveaway.

Countries I think that are missing: China, India, Russia, Turkey, Ukraine, and any other CIS country. Does that look right?

I would appreciate if someone more experienced with region cross checking would verify my current list of countries.

1 month ago

Comment has been collapsed.

Countries I think that are missing: China, India, Russia, Turkey, Ukraine, and any other CIS country. Does that look right?

Yes. You could have easier gotten there by looking at the other subs, because there is one for China, one for Russia + former CIS countries and one for South America, no sub for Turkey currently (or just not known to SteamDB yet).

1 month ago
Permalink

Comment has been collapsed.

So I need to add Latin American countries to the list of what to block from the giveaway. Got it.

1 month ago
Permalink

Comment has been collapsed.

There are 63 country codes from SteamGifts country list (244) that isn't included in SteamDB country list (187). SG and SteamDB use different sets of country code so the number is off.
I can see that part of SEA isn't included.

DZ AR AM AZ BH BD BY BZ BT BO BR CL CN CO EC EG SV GE GT GY HN IN ID IQ JO KZ KW KG LB LY SA MY MX MD MA NP NI OM PK PS PA PY PE PH QA RU SA ZA LK SD SR TW TJ TH TN TR TM UA UY UZ VE VN YE

The code I use to get the list, run at https://www.steamgifts.com/giveaways/new:

const steamdbRestrictedCountries = prompt('SteamDB restricted countries (2-letter code):').split(' ');
let countries = '';

document.querySelectorAll('[data-input="country_item_string"] .form_list_item_summary_name').forEach((country) => {
    const countryCode = country.textContent.match(/[A-Z]{2}/)[0];
    if (!steamdbRestrictedCountries.includes(countryCode)) {
        if (!countries) {
            countries = countryCode;
        } else {
            countries += " " + countryCode;
        }
    }
})
alert(countries);
1 month ago
Permalink

Comment has been collapsed.

Dang, that is a lot of countries to disable. Is the best way to make a giveaway just selecting all available countries, and then going alphabetically and checking off the countries that aren't allowed?

Presets only get a small portion of the way since I don't think I can use multiple presets at once.

1 month ago
Permalink

Comment has been collapsed.

The games I did giveaway only have a handful of restricted countries, so I pick them manually.

I update the JavaScript code above to handle this situation.
To use it, navigate to the create new giveaway page, press Select All so all countries are checked, then open browser developer console (shortcut F12), run the code, and input the SteamDB country codes when prompted.
The code will toggle the check state of countries that aren't in the input country list.


Additional details about the Region Restricted section, depend on what SteamDB says:
If it says "This package can NOT be activated in the following countries", press Select None before running the code.
If it says "This package can only be activated in the following countries", press Select All before running the code.

const steamdbRestrictedCountries = prompt('SteamDB restricted countries (2-letter code):').split(' ');
// list countries that aren't included in SteamDB
let countries = '';

document.querySelectorAll('[data-input="country_item_string"] .form_list_item_summary_name').forEach((country) => {
    const countryCode = country.textContent.match(/[A-Z]{2}/)[0];
    if (!steamdbRestrictedCountries.includes(countryCode)) {
        if (!countries) {
            countries = countryCode;
        } else {
            countries += ' ' + countryCode;
        }
        // toggle countries
        country.parentElement.parentElement.click();
    }
})
alert(countries);

There is discrepancy between SG and SteamDB so please take it with a grain of salt.

1 month ago*
Permalink

Comment has been collapsed.

Appreciate your help. I tested some of the notable countries that need to be disabled and it was correct for all of them. Will double-check again all 60+ countries when I make the giveaway later this week.

1 month ago
Permalink

Comment has been collapsed.

🤔

javascript:(function(){const steamdbRestrictedCountries=prompt('SteamDB restricted countries (2-letter code):').split(' ');let countries='';document.querySelectorAll('[data-input="country_item_string"] .form_list_item_summary_name').forEach((country)=>{const countryCode=country.textContent.match(/[A-Z]{2}/)[0];if(!steamdbRestrictedCountries.includes(countryCode)){if(!countries){countries=countryCode;}else{countries+=' '+countryCode;}country.parentElement.parentElement.click();}});alert(countries);})();

If it's Firefox, I wonder if I can register this one line as a Bookmarklet, and then after selecting the option with region restrictions when creating the GA, I can select it and then put in the two letters of the country?

Sorry if I'm wrong.

View attached image.
View attached image.
1 week ago*
Permalink

Comment has been collapsed.

That's also worked for me, thank you!

1 week ago
Permalink

Comment has been collapsed.

I have these two bookmarklets, though I haven't checked whether they still work:
https://www.steamgifts.com/discussion/kNYwh/suggestion-region-restricted-ga-better-functionality#2xtQjFa

1 week ago
Permalink

Comment has been collapsed.

I've given away three copies of this game, never even knew it had region locks. I'm in USA and my winners were in USA, Austria and Poland so I guess I just got lucky.

1 month ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.