This paper deals with some Monge–Ampère type equations involving the gradient that are elliptic in the framework of convex functions. First, we show that such equations may be obtained by minimizing a suitable functional. Moreover, we investigate a P-function associated with the solution to a boundary value problem of our generalized Monge–Ampère equation in a bounded convex domain. It will be shown that this P-function attains its maximum value on the boundary of the underlying domain. Furthermore, we show that such a P-function is actually identically constant when the underlying domain is a ball. Therefore, our result provides a best possible maximum principles in the sense of L. E. Payne. Finally, in case of dimension 2, we prove that this P-function also attains its minimum value on the boundary of the underlying domain. As an application, we will show that the solvability of a Serrin’s type overdetermined problem for our generalized Monge–Ampère type equation forces the underlying domain to be a ball.