We present an experimental technique that allows us to determine the zero-field intervals between high-$\ensuremath{\ell}$ states of Rb in a magneto-optical trap, in spite of the fact that we can only control the stray electric field in one direction. The technique is based on measuring a property of the atom that depends on the field, as opposed to its square. This approach allows the determination of the zero-field intervals and the magnitude of the stray field in the uncontrolled perpendicular direction. We use this technique to observe the microwave transitions of rubidium from the
(n+1)d5/2 states to the
ng and
nh states of $27\ensuremath{\le}n\ensuremath{\le}30$. From the observed microwave transitions, we determine the quantum defects of the
ng and
nh states. Using the quantum defects of the
ng and
nh states and the adiabatic core polarization theory, we determine the
Rb+ ionic dipole and quadrupole polarizabilities to be ${\ensuremath{\alpha}}_{d}=9.12(2){a}_{0}^{3}$ and ${\ensuremath{\alpha}}_{q}=14(3){a}_{0}^{5}$, respectively.
We employ doubly resonant two-photon excitation into the
74S Rydberg state to spectroscopically measure the dynamic scalar polarizability, ${\ensuremath{\alpha}}_{0}$, and tensor polarizability, ${\ensuremath{\alpha}}_{2}$, of rubidium
5P3/2. A cavity-generated 1064-nm optical lattice allows us to reach intensities near $2\ifmmode\times\else\texttimes\fi{}{10}^{11}\phantom{\rule{0.28em}{0ex}}\mathrm{W}/{\mathrm{m}}^{2}$, where the atom field is larger than the hyperfine interaction, and magnetic sublevels are well resolved. In the evaluation of the data we use a self-referencing method that renders the polarizability measurement largely free from the intensity calibration of the laser light field. We obtain experimental values ${\ensuremath{\alpha}}_{0}=\ensuremath{-}1149(\ifmmode\pm\else\textpm\fi{}2.5%)$ and ${\ensuremath{\alpha}}_{2}=563(\ifmmode\pm\else\textpm\fi{}4.2%)$, in atomic units. Methods and results are supported by simulations. The results provide an experimental test of atomic-structure calculations used to determine systematic shifts in atomic clocks and to interpret fundamental-physics experiments.