Pembrolizumab has been approved for the first-line treatment of patients with advanced gastric cancer (GC) and gastroesophageal junction (GEJ) cancer. However, the results of several clinical trials are not entirely consistent, and the dominant population of first-line immunotherapy for advanced GC/GEJ still needs to be precisely determined.