WHY GAMBLING GAME ADS ON TV EVERYDAY IN TAIWAN?

Is gambling legal in Taiwan? If not, why gambling game ads is legal?