@José ******
There's no such thing as a tourist visa on arrival. The ONLY way to get a tourist visa is if you apply at a Thai embassy before you travel to Thailand.
If you are talking about 30 days then you are talking about visa exempt. That is NOT a tourist visa. It's not a visa at all. Look at the name "visa exempt." It means you don't have a visa, you are exempt from needing a visa.
You can either apply for a tourist visa before you travel, or apply for an extension inside of Thailand.
The tourist visa is cheaper than an extension in Thailand and you won't have to spend a day traveling to immigration, waiting in line, filling in forms etc.