In this paper, we give a new characterization of Carleson measures for the generalized Bergman spaces. We show first that this problem is equivalent to a T(1)-type problem. Using an idea of Verdera (see [V]), we introduce a sort of curvature in the unit ball adapted to our kernel. We establish a good λ inequality which then yields the solution of this T(1)-type problem.