Our study findings might contribute to the development of novel therapeutic strategies for bovine mycoplasmosis that target PGE2 and the PD-1/PD-L1 pathway. Here, CD274 is linked to Mycoplasmoides infection.