Ad repository

Also known as: ad library

On this page 7

An ad repository, also called an ad library, is a public, searchable archive of advertisements that an online platform has displayed, together with information on who paid for each ad, when it ran, whom it targeted and how many people it reached. In platform regulation, the term refers above all to the mandatory repository under Article 39 of the Digital Services Act (DSA), which every very large online platform (VLOP) and very large online search engine must operate in the European Union.

The repository exists because online advertising is personalized and ephemeral: two users rarely see the same ads, and a campaign can disappear within hours. Without an archive, regulators, researchers and journalists cannot reconstruct who was targeted with what message, which makes scams, disinformation and discriminatory targeting hard to detect. The ad repository turns that invisible flow into an auditable public record.

What the DSA requires an ad repository to contain

Under the DSA, an ad repository must hold a defined set of data fields for every advertisement presented on the service. The archive must be searchable through a public interface and through APIs, and it must use tools that allow multicriteria queries, so that a researcher can filter by advertiser, period, country or targeting parameter rather than browse ad by ad.

The following table summarizes the mandatory content and the purpose each field serves in public scrutiny of advertising.

FieldWhat it recordsWhy it matters
Ad contentCreative, product, brand and subject matterShows what message was spread
Advertiser on whose behalfNatural or legal person presented as the sourceIdentifies the beneficiary of the ad
PayerPerson who paid, if different from the advertiserExposes intermediaries and hidden sponsors
Presentation periodFirst and last day the ad was shownAllows timeline reconstruction
Targeting parametersWhether targeting was used and the main criteriaReveals microtargeting and exclusions
ReachTotal recipients and breakdown per Member StateMeasures scale and geographic focus
Commercial communicationsInfluencer content declared as commercialCovers paid content outside ad slots
Mandatory fields of a DSA ad repository

Two further rules shape the archive. First, the data must remain available for the entire period the ad is shown and for one year after its last presentation. Second, the repository must not contain personal data of the recipients who saw the ad, so it describes audiences in aggregate, never as identifiable individuals.

How an ad repository works in practice

Technically, an ad repository is a database fed directly by the platform’s ad-serving system. When an advertiser launches a campaign, the delivery pipeline already stores the creative, the account, the budget, the targeting configuration and impression counts; the repository exposes a subset of that data through a web portal and a query API.

A special rule applies to ads removed for illegality or for breaching the terms of service. In that case the platform does not republish the offending content or the advertiser identity, but it must record information about the restriction, aligned with the statement of reasons it sends under the DSA. This prevents the archive from amplifying illegal material while still documenting that moderation took place.

The table below shows the typical components of a compliant repository and their main engineering challenges.

ComponentFunctionTypical challenge
Ingestion layerCopies ad records from the serving systemCompleteness across all ad formats
Search portalLets the public browse and filter adsUsability for non-specialists
Query APISupports bulk and automated accessRate limits and stable schemas
Retention storeKeeps records for the required periodCost and data lifecycle management
Privacy filterRemoves recipient-level personal dataAvoiding reidentification from small audiences
Components of a repository and their technical challenges

How it relates to other transparency duties

The ad repository is one element of a layered transparency regime, and it is easily confused with neighboring obligations. Article 26 of the DSA requires real-time ad labels shown to each user, while Article 39 requires a retrospective public archive for the largest services. The two work together: the label informs the individual, the repository informs society.

InstrumentAudienceScopeTiming
Ad repositoryPublic, regulators, researchersAll ads on VLOPs and VLOSEsArchive kept one year after the last showing
Ad label and info panelIndividual userEach ad on any online platformAt the moment of display
Researcher data accessVetted researchersData needed to study systemic risksOn approved request
Political ad repositoryPublicPolitical ads under EU Regulation 2024/900Kept for seven years
Transparency reportPublic, regulatorsAggregate moderation statisticsPeriodic
Ad repository compared with related transparency tools

The political advertising regulation (EU Regulation 2024/900 on the transparency and targeting of political advertising) adds stricter requirements, including a European repository for online political ads and longer retention. Several large platforms responded by stopping political, electoral and social issue ads in the EU rather than building the additional infrastructure, which illustrates how repository duties can change business decisions.

Origins and voluntary ad libraries

Ad repositories began as voluntary industry initiatives. After controversies over foreign interference in elections around 2016, major platforms launched political ad libraries in 2018, initially limited to political and issue ads in selected countries. The EU Code of Practice on Disinformation then pushed signatories to expand them.

Voluntary libraries suffered from inconsistent coverage and unreliable APIs: researchers reported missing ads, vague targeting data and frequent breaking changes. The DSA converted this patchwork into a legally enforceable obligation covering all advertising, not only political content, with fines of up to 6% of global annual turnover for non-compliance.

Enforcement, limitations and common shortcomings

Ad repositories are among the most actively enforced DSA provisions, because their quality can be tested directly. Civil society audits and European Commission proceedings have targeted several large platforms over incomplete archives, weak search tools and missing targeting data, and repository failures featured in the first DSA non-compliance decision against a platform.

The following table lists recurring deficiencies, why they undermine the purpose of the repository and the corrective measure usually expected.

ShortcomingEffect on scrutinyExpected fix
Missing adsCampaigns escape analysisIngest every format, including boosted posts
Vague targeting dataMicrotargeting stays hiddenDisclose main parameters and exclusions
Unclear payer identityHidden sponsors remain unknownVerify and display the paying entity
Restrictive APILarge-scale research becomes impossibleOffer stable, well-documented bulk access
Broad reach rangesScale cannot be comparedPublish meaningful aggregate figures
Common repository shortcomings and expected fixes

Even a compliant repository has inherent limits. It shows what was targeted, not how the delivery algorithm optimized the audience, so discriminatory outcomes produced by optimization can remain invisible. Advertiser names can also be shell entities, and the one-year retention period is short for investigations of long campaigns.

A non-technical view

Online ads are different from billboards. A billboard is seen by everyone who walks past, but an online ad can be shown only to a small, carefully chosen group and then vanish. That makes it hard for anyone else to know what was said and to whom.

An ad repository is like a public library of every ad a big platform has shown. Anyone can look up an ad, see who paid for it, how long it ran, roughly who it was aimed at and how many people saw it. The key idea is simple: ads that shape opinions and purchases should leave a public trace.

A concrete example

A team of consumer protection researchers suspects that a fraudulent investment scheme is using deepfake videos of public figures in social media ads. Instead of waiting for victims to complain, they query the ad repository of a very large platform through its API, filtering for ads that mention cryptocurrency returns over a three-month period in four Member States.

The query returns several hundred ads from dozens of newly created advertiser accounts that share the same payer, similar creatives and targeting aimed at users aged over 55. Reach figures show the campaign was concentrated in two countries. The researchers send the evidence to the national Digital Services Coordinator and to the platform.

The outcome: the platform removes the remaining ads and suspends the linked accounts, and the repository records the restriction. Because the archive preserved the data, regulators can assess whether the platform’s advertiser verification failed, a question that would have been impossible to answer without the repository.