Skip to content

What is ad-impressions.js in your X archive?

ad-impressions.js records the promoted posts X showed you: which ad, which advertiser, where it appeared, on which device, when, and the targeting criteria that matched you.

How to open it

It is a text file in the archive’s data folder. Open it in any text editor; delete the first line’s window.YTD... = prefix and the rest is plain JSON any JSON tool can read. Our free viewer does not read this file yet; it covers likes, bookmarks and your own posts.

Fields in ad-impressions.js

FieldWhat it means
advertiserInfoAdvertiser's name and handle.
promotedTweetInfoThe ad's post ID, text, links and media.
displayLocationWhere the ad appeared, such as your timeline or search.
deviceInfoDevice ID and operating system it was shown on.
matchedTargetingCriteriaThe targeting rules that matched you.
impressionTimeWhen you saw the ad.

What it is useful for

What to watch out for

Related files

Field names come from the README.txt X includes in every archive. X changes the archive from time to time, so check the README in your own download if something differs. See every file in the archive.