It's certainly not doing well in the U.S. (total only about $75 million so far): http://www.boxofficemojo.com/franchises/chart/?id=transformers.htm
But it was a big hit in China ($197 million): http://variety.com/2017/film/news/transformers-the-last-knight-box-office-international-china-1202477913/
The total profit is reported as being $272 million worldwide, against a budget of $217 million. ($55 million profit): https://en.wikipedia.org/wiki/Transformers:_The_Last_Knight
And they control the narrative for psychological manipulation.
They want to have their cake and eat it too.