SHANGHAI—China, it turns out, didn’t deliberately intend to snub President Obama, although the strained protocol when he landed in Hangzhou for a G-20 meeting of world leaders over the weekend made it look that way.

“This is our country! This is our airport!” an agitated Chinese official snapped at a White House aide in a tarmac row over arrangements for the traveling press corps after Air Force One touched down.

China...