You have to replace effect_size by the column including the mean differences and effect_size_standarderror is the column with the corresponding standard errors.
For further information on the metan command in Stata, see: https://www.stata.com/stb/stb44/sbe24/metan.hlp