In-fiber acousto-optic interaction is used to characterize the refractive index changes at the C band in a single-mode ytterbium-doped optical fiber under 980 nm pumping. The transmission notch created by the acoustic-induced coupling between the core mode and a cladding mode shifts to longer wavelengths when the pump is delivered to the fiber. The electronic contribution to the refractive index change is quantified from the wavelength shift. Using a time-resolved acousto-optic method, we investigate the distribution of pump absorption, and the resulting refractive index change profile, along sections of ytterbium-doped fiber exceeding 1 m long under different pump power levels. (C) 2015 Optical Society of America