This study evaluated the effectiveness of salvage pembrolizumab in advanced gastric cancer (AGC) patients based on HER2 expression. Here, ERBB2 is linked to gastric cancer.