Generally speaking.......in acid problems in the stomach..........95% are due to too much acid and 5% to too little acid ( figures may not be accurate, but you get the picture)
Now, the 5% or less of too little acid (hypochlorhydria) is almost entirely secondary to other diseases in the stomach.
Don't Google.
Do as your GP has suggested,,,,,,,,Ranitidine is the correct treatment.