Encouraging people to vaccinate is a challenging endeavor, but one which has tremendous public health benefits. Doing so requires overcoming barriers of awareness, availability, and (sometimes) vaccine hesitancy. Here we focus on nudging people to vaccinate through online advertising. We conducted a pre-registered online ads campaign encouraging people to vaccinate against three diseases: influenza, human papillomavirus, and herpes zoster. Ads were shown to ~69,000 people and were compared to similar ads shown to 8.6 million people. Outcome measures were clicks on ads and future searches for relevant terms. We find that ads have two main effects: First, a congruence effect whereby ads increase the likelihood of clicks and future searches by up to 116% in people who express an interest in the disease or the vaccine. Most commercial vaccine advertising is aimed entirely at this population. Second, we observed a priming effect, where ads shown to people who were searching for terms unrelated to the vaccine could be encouraged to click on them (odds ratios of 7.5–33.0) and, more often, search for the vaccine later (hazard ratios of 6.9–157.3). We provide analysis for optimizing vaccine advertising campaign budgets to balance the two populations. These findings demonstrate that digital advertising campaigns should consider not just advertising to direct keywords or to individuals that look exactly like existing customers, but consider tangential keywords that draw a wider target population who are likely earlier in their conversion funnel, thus increasing the number of people who vaccinate and maximizing vaccines uptake.