A guide to investigating digital ad libraries
How to dig into ad libraries from Google, Meta and other platforms to track spending, narratives, campaigns and more
Digital advertising is a half a trillion dollar a year industry and a core element of global marketing and election campaigns. Digital ads are also commonly used in influence operations, scams and cybercrime.
Yet, in my experience, ads are rarely mentioned or taught in OSINT and digital investigative courses. I believe they’re one of the least investigated and most poorly understood aspects of the digital economy. I’ve been trying to change that by giving ad investigation workshops and by drawing attention to tools and techniques in this newsletter. I previously listed free digital ad tools and described a reporting methodology I used while investigating Google’s ad business.
Now I want to introduce you to the easiest way to get started with digital ads: ad libraries. Every digital investigator should know how to dig through digital ad libraries.
Ad library 101
An ad library is a digital repository of recent and/or archived ads that have appeared on a given platform. Meta launched the first digital ad library in 2018. There are now at least 13 digital ad libraries.
The growth is thanks largely to the EU Digital Services Act, which came into effect earlier this year. It requires digital services designated as “Very Large Online Platforms and Search Engines” to create an ad library. It’s why we now have ad libraries for Apple’s App Store, Bing and sites like Booking.com. That’s the good news.
The bad news is that most of the new ad libraries do the bare minimum required by the DSA (or even less). They share data about current and recent ads shown to people in the EU/EEU, but many do not have data for other countries.
An overall source of frustration is that ad libraries are inconsistent and incomplete. Features in one platform’s ad library won’t necessarily be available in another; or ads that meet your search criteria will fail to appear in your results, among other issues. More on that below.
For the most part, ad libraries tell you:
When an ad ran
What the looked like/said
Which platform it ran on
Who the advertiser was, and what other ads they’ve run
Which country(s) it was shown in
In some circumstances you may see:
The destination URL of the ad
The name of the person or entity that paid for the ad
Contact information for the person or entity that paid for the ad
Roughly how much was spent
Additional targeting data such as geography and age group
List of ad libraries
Here’s a list of active ad libraries as of this writing, along with the countries they currently serve:
AliExpress (EU, UK)
Amazon ( EU/EEA)
Alphabet (Global, with exceptions)
Apple App Store (“select European countries”)
Bing (EU/EEA)
Booking.com (EU/EEA)
LinkedIn (Global, with exceptions)
Meta (Global, with exceptions)
Pinterest (EU)
Snapchat (EU)
TikTok (Global, with exceptions including the US)
Zalando (EU/EEA, UK
Twitter/X (EU)
Comparing ad libraries
The problems with ad libraries are outlined in a recent Mozilla report, “Full Disclosure: Stress testing tech platforms’ ad repositories.” They tested 12 ad libraries (all of the above except Amazon) and found that:
none is a fully-functional ad repository and none will provide researchers and civil society groups with the tools and data they need to effectively monitor the impact of VLOs advertisements on Europe’s upcoming elections.
The situation is worse for non-EU/EEA countries. Only Meta, Google and LinkedIn offer access to ads that have run in a wide range of countries. It’s difficult to keep track of the differences between libraries, so I maintain a chart that breaks down some of the key features. (I do my best to keep it up to date.)
A few things to highlight:
Most ad libraries allow you to search for ads by geography, date, and the name of the advertiser or account that placed the ad.
Some libraries let you filter by the ad format (video, text, etc.) and/or by the ad category (election/issues, employment etc).
Several libraries do not allow keyword searches, including Google’s. Yes, the ad library from Google is not searchable by keyword. Hopefully this feature is in development…
Ads that were shown in EU countries may offer additional targeting information.
Some platforms, such as Meta and Google, require advertisers to go through a special registration process if they want to run political/social issue ads. Such ads are archived for a longer period of time (often 7 years), show additional targeting information, and disclose info about who paid for the ad.
For non-political/issues ads, most libraries let you see ads that have run in the past year. Meta, however, only shows ads that are currently active. So when a campaign stops running, the ads disappear from the library.
Some platforms, like TikTok, say they do not accept political ads. Others, like Google, only accept them in certain countries.
Lots of differences and inconsistencies! If it seems confusing that’s because it is.
Ad data
Let’s compare two ads. Here’s a Disney ad on Google that’s not classified as a political/issue ad:
You can see the ad and the entity that ran it. You can also click on the name of the advertiser to see all of its recent ads. Now here’s a political ad from Donald Trump’s campaign:
Notice how much more information you get?
Integrating ad libraries into your workflow
Ad libraries are important if you’re reporting on elections. The workflow is relatively straightforward:
Identify all of the candidates, parties, issues etc. of interest. Make a list of keywords, phrases, entities and accounts.
Search across ad libraries to find ads and accounts
Capture relevant ads and take note of narratives, destination sites etc.
Pivot on ad content, accounts, destination websites and other assets to identify networks and actors of interest
Repeat
This works for any beat or topic. I encourage all reporters and investigators to integrate ad libraries into their workflow. Any person, company, entity could run ads or be the subject of them. Just as you check to see if a person has registered a company or domains, you should see of they run, or are the subject of, digital ads. The same is true for issues, topics and beats: they may be the focus of interesting/newsworthy ads.
As noted above, a first step is to create a list of keywords to use in ad library searches. I suggest brainstorming keywords in the below categories to kickstart the process of coming up with search strings.
Some libraries don’t offer keyword searches. That’s annoying but ok; you can still generate lists of countries and advertiser/entity names and accounts.
Political/issues ads
A final option to note is that Meta and Google offer the ability to conduct detailed searches and analysis of election/issues ads and advertisers. The Meta Spending Report and Google political ad section are worth exploring.
With Google, you also want to access the Insights tab when looking at a political advertiser’s page.
This is the kind of data you see on the Insights tab of Trump’s Google advertiser page:
And here’s the kind of overall data you can see in the Meta Spending Report:
Final advice
Ad libraries are a welcome form of platform transparency. But they’re incomplete and inconsistent. Don’t assume they contain every ad on a given platform, or that a platform is making every political advertiser register. Lots of things slip through the cracks. But that’s an opportunity for investigation and accountability.
Some final tips:
Turn off your ad blockers when using ad libraries
Test and retest keywords
Check frequently because ads disappear
Take screenshots
Take notes as you go
Search, monitor, capture and adapt!
What did I miss? Have other tips to share? Please add them in the comments. This isn’t my last word on ads: I’ll soon highlight a couple of technical tools for ad investigations.
Thanks for reading. You can find me on Threads, Bluesky, Mastodon, and LinkedIn. I’m not very active on Twitter these days.
Thanks for this great summary! When I first started looking at Ad Libraries I found them so confusing, and this guide would've been immensely helpful :)
I wanted to plug in our recent research from Princeton University and the Center for Information Technology Policy (CITP), that could be helpful to your readers as an example of the impact Ad libraries could have and the type of research questions that could be answered using Ad library data and some web scraping knowledge. There was also a concurrent lawsuit submitted. I'm linking both below:
FAccT Paper: Nagaraj Rao, Varun, and Aleksandra Korolova. "Discrimination through Image Selection by Job Advertisers on Facebook." Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency. 2023 : https://arxiv.org/abs/2306.07527
Press Release: https://spia.princeton.edu/news/despite-progress-researchers-find-more-potential-discrimination-facebook-ads
Lawsuit: Meta vs Real Women in Trucking https://prf-law.com/s/Real-Women-in-Trucking-Meta-Charge.pdf
Thanks for the great material! Shared it with my colleagues)
But I have a question - why is there still no ad library for YouTube? Or did I miss something?