[What you need to know to start the day: Get New York Today in your inbox.]

Ever since Amazon decided to withdraw its plans to build a corporate campus in New York City, Mayor Bill de Blasio has been in attack mode.

He criticized Amazon for abandoning New York, characterizing its decision as an example of “the 1 percent dictating to everyone else.” He ridiculed the company for not having the patience to work through community opposition, suggesting on NBC’s “Meet the Press” that it showed the maturity of someone who “took their ball and went home.”

The comments represented an abrupt shift for the mayor, who had helped entice the company to come to Queens, and had recently met in Albany with Gov. Andrew M. Cuomo to strategize how they might help push aside the political hurdles that stood in the company’s way.

Three days after that meeting, Mr. de Blasio got the phone call from an Amazon executive, informing him of the company’s decision.