This study aimed to investigate the dynamics of programmed death-ligand 1 (PD-L1) expression, spatial heterogeneity, and binding affinity of FDA-approved anti-PD-L1 antibodies (avelumab and atezolizumab) in gastric cancer. Additionally, we determined how PD-L1 glycosylation impacts antibody accumulation in gastric cancer cells. Dynamic PD-L1 expression was examined in NCIN87 gastric cancer cells. Comparative binding studies of avelumab and atezolizumab were conducted in gastric cancer models, both in vitro and in vivo. Antibody uptake in tumors was visualized through positron emission tomography (PET) imaging. PD-L1 glycosylation status was determined via Western blot analyses before and after PNGase F treatment. Consistent findings revealed time-dependent PD-L1 induction in NCIN87 gastric cancer cells and spatial heterogeneity in tumors, as shown by PET imaging and immunofluorescence. Avelumab displayed superior binding affinity to NCIN87 cells compared to atezolizumab, confirmed by in vivo PET imaging and ex vivo biodistribution analyses. Notably, PD-L1 glycosylation at approximately 50 kDa was observed, with PNGase F treatment inducing a shift to 35 kDa in molecular weight. Tissue samples from patient-derived xenografts (PDXs) validated the presence of both glycosylated and deglycosylated PD-L1 (degPD-L1) forms in gastric cancer. Immunofluorescence microscopy and binding assays demonstrated enhanced avelumab binding post-deglycosylation. This study provides an understanding of dynamic and spatially heterogeneous PD-L1 expression in gastric cancer. Anti-PD-L1 immunoPET was able to visualize gastric tumors, and PD-L1 glycosylation has significant implications for antibody recognition. These insights contribute to demonstrating the complexities of PD-L1 in gastric cancer, holding relevance for refining PD-L1 imaging-based approaches.