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
| Field | What it means |
|---|---|
| advertiserInfo | Advertiser's name and handle. |
| promotedTweetInfo | The ad's post ID, text, links and media. |
| displayLocation | Where the ad appeared, such as your timeline or search. |
| deviceInfo | Device ID and operating system it was shown on. |
| matchedTargetingCriteria | The targeting rules that matched you. |
| impressionTime | When you saw the ad. |
What it is useful for
- Seeing exactly which targeting put you in front of an ad.
- Auditing which companies target you most.
What to watch out for
- Ad engagements (clicks and other interactions) are in a separate file, ad-engagements.js.
Related files
- personalization.js : What X infers about you
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.