Niche theory is a foundational ecological concept that explains the distribution of species in natural environments. Identifying the dimensions of any organism’s niche is challenging because numerous environmental factors can affect organism viability. We used serial invasion experiments to introduce Ruegeria pomeroyi DSS-3, a heterotrophic marine bacterium, into a coastal phytoplankton bloom on 14 dates. RNA-sequencing analysis of R. pomeroyi was conducted after 90 min to assess its niche dimensions in this dynamic ecosystem. We identified similar to 100 external conditions eliciting transcriptional responses, which included substrates, nutrients, metals and biotic interactions such as antagonism, resistance and cofactor synthesis. The peak bloom was characterized by favourable states for most of the substrate dimensions, but low inferred growth rates of R. pomeroyi at this stage indicated that its niche was narrowed by factors other than substrate availability, most probably negative biotic interactions with the bloom dinoflagellate. Our findings indicate chemical and biological features of the ocean environment that can constrain where heterotrophic bacteria survive.