I would divide the ball into cylinders centred on the axis of the ball. Then the charge will be the charge density multiplied by the area of the end of the cylinder, and the dipole will be the charge multiplied by the length of the cylinder.
Something like this. This is a cross section so you're seeing the top and bottom slices through a cylindrical shell of inner radius $x$ and thickness $dx$