X ads
Use this when someone wants ads for X (Twitter): a promoted post made of a few words of text and one image. It makes still images only. A video ad for X is made with the meta-video-ads playbook (read it with playbook_get), delivered in the sizes X takes: MP4 or MOV, 1920 x 1080 for 16:9, 1200 x 1200 for 1:1, or 1080 x 1920 for full-screen vertical video. X recommends 15 seconds or less, under 30 MB, captions, and the logo in the upper left throughout.
Ask only for what you can't find, then go. Picture where the ad runs. X is a timeline of text. People are there to read, argue and joke, and most posts are a sentence or two. Your ad is one more post in that column, with a small "Ad" label. The reader decides from the first words of the text and a glance at an image about as wide as a playing card is tall. Treat what follows as what usually works, not as a script.
Three things make an X ad work:
- The post text does the talking. On most platforms the image carries the headline. On X the words above the image are read first, so the message lives there, and it reads like a person wrote it, not a brand.
- The image carries one idea and almost no words. It is a picture of the thing the post is about: the product, one part of a screen, one object, one number. It never repeats the post.
- It looks like a post, not a banner. A brand poster with a headline, a button and a swoosh is scrolled past before it is read. A plain picture under a plain sentence is not.
Any words in the image are typeset in HTML in the brand's own font files and rendered by a browser, so this needs a shell with Chrome. Without one, hand over the pictures and the copy.
Before you start
- You need the brand's website. Ask which page the ad opens; if nobody answers, use the page the site's main button leads to, and say what you assumed.
- Defaults when nobody says otherwise: three ads that differ in the angle. Each is an image ad with a website card: post text, one image in two shapes (16:9 at 1920 x 1080 and 1:1 at 1200 x 1200) and a card headline. Plus one overview image and a mockup in a feed on a phone.
- Agree a spending cap, then quote before you spend: every
runcall takesestimate: true. - Pass
playbook: "x-ads"on everyruncall, anidempotency_keyon paid ones, and onebudget_tagfor the whole job, sospend_getcan report this job on its own. - Keep a progress note: what is done, the run ids, the spend.
The specs
These are X's own numbers, from three pages on business.x.com: "X Ads creative specs", the "Quality Policy" and "Creative best practices". Check them before a big job: they change. The site refuses a plain fetch, so load it in a headless browser.
Two kinds of image ad. With a website card, the whole image is a link with a headline on it. A standalone image opens the picture, not a site. Make the website card unless the person only wants reach.
| Part | X's rule | |---|---| | Post text | 280 characters at most. X says its best-performing ads use 50 to 100 | | Card headline | 70 at most, on up to two lines. X says 50 or fewer is safe from being cut | | Image, wide | 16:9 at 1920 x 1080. X also lists 1.91:1; at least 800 x 418 in a card | | Image, square | 1:1. At least 800 x 800 in a card; 1200 x 1200 recommended standalone | | File | PNG or JPEG, 5 MB at most. A GIF is shown as a still |
From the Quality Policy. X halts ads that break these:
- No hashtags and no web addresses in the ad's text. The link is set as the ad's destination. X also advises against @mentions: they lead the reader away.
- One emoji at most, counting the text and the image together.
- "Obvious editing or AI errors, such as warped hands, impossible physics or garbled text" are named as a reason to halt an ad. So is a close-up of a body part as the main image.
- The brand must be clearly visible in the ad, and the page it opens must match it. If that page needs a sign-up, a subscription or an app, the ad has to say so.
- Finance, health, alcohol, gambling and a few other fields each have their own X policy page, and some need X's approval before any ad runs. Read the page and tell the person.
What X does to your image:
- It draws the card headline over the image, in a small dark label 8 to 12 pixels in from the left and bottom edges. On a phone, one line covers roughly the bottom fifth of a 16:9 image and two lines the bottom third; on a square, about a tenth and a sixth. So the bottom of your image holds picture only: no words, no logo, nothing the idea depends on.
- It rounds the corners, and may trim a 16:9 image to 1.91:1, about 37 pixels off the top and bottom. Keep the logo and any words 5% of the width in from every edge.
- It shows the image small: about 320 points wide on a phone, a sixth of the 16:9 file and just over a quarter of the square. A word 96 pixels tall in the wide file, or 60 in the square, shows at about the size of the post text. Much smaller is not read.
- The timeline is black for many people and white for others. An image whose ground is black, white or nearly so loses its edge on one of them. Use a brand colour or a photograph.
1. Research the brand
- The site. Read the home, product, pricing and about pages. Write down what they sell and to whom, every claim and number with its qualifiers exactly as written, the offers showing today, and how they talk. This list is the only source of facts for your copy. Note which product each number belongs to: a figure for one service is not proof for another.
- Fonts, logo, colours. Find the brand's real font files (the ones the client sent, or the files behind the site's font rules) and check which one the headlines use, and at which weight. Take the real logo in a dark and a light version, and the small mark for the round profile picture. Fonts from a font service or a foundry are licensed to the brand: say so on delivery. Take the X handle from the site's X link. With none, show the name alone; never make one up.
- Product photos and real screens. Upload product photos with
asset_upload. For software, collect the product pictures the site itself shows. Screenshots of a live page often catch a picture half loaded: look before you trust one. - How the brand talks on X.
x/posts/by-accountwith the brand'shandlelists its own posts: the text, views, likes, reposts and replies, and whether each is text, image or video.sortis "likes" unless you change it. X shows the public about 100 of an account's most popular posts, not its latest, so a recent one can be missing. Read how long the posts are, how dry, whether they use emoji, and which subjects drew replies. With no handle or no posts, ask for three posts that did well, or use the site's plainest lines. - How people phrase the topic.
x/posts/searchwith aquerya customer would write, the problem or the kind of product, returns public posts with their text and counts. Try two or three phrases. It reads a web search index, not X's own search, so the newest posts can be missing. Take the words people use for the problem. Never copy a post or name its author. - Which messages they pay for. There is no lookup for X's ad library yet, so read the paid angles from other platforms.
meta/ad-library/advertisersthenmeta/ad-library/searchwith the lists the brand's ads on Facebook and Instagram. For a business product, with the brand's name as does the same for LinkedIn. Don't copy those ads. Read which claims and offers the brand repeats: those are its proven angles. Maybe look at a competitor the same way, for structure only. Each lookup costs about a cent and a half. A small brand may have none: go on.
2. Write the three ads
Write the post first, then the image, before any picture is generated. That is the reverse of most ad formats, and it is the point: if the post works with no picture, the ad works.
Three angles. Three ads that say different things about the same product, so the person can test which one this audience answers. Usually pick three of these:
- The problem. The reader's own annoyance, in their words. The product arrives as the fix.
- The proof. One number or checkable fact from the site, with its qualifier.
- The product. What it is and does, as plainly as a friend would describe it.
- The offer. The price, the free plan, the trial, the sale that is on the site today.
Name them A, B and C. Everything else stays the same: the design, the logo's place, the destination and the card headline.
The post text. Aim for 50 to 100 characters. Count with a tool, not by eye.
- It reads like one person telling another. Say it aloud: would someone at this company post it from their own account? If it sounds like a billboard, write it again.
- One thought, carried by the first five words, because many readers stop there.
- It makes sense with the image covered, and a stranger can tell what kind of product this is. If the post never says "ads", "receipts" or whatever the category is, add the noun. Use the reader's words, not the brand's: "your AI agent", not "your agent"; no pricing-page jargon.
- Plain statements work: a fact with its unit, a small confession of the problem, a before and an after. X keeps line breaks: a setup, a blank line and a payoff reads as native. Slogans, strings of adjectives and "We're excited" don't.
- No hashtags, no links, no @mentions, no em dashes. Watch for a web address hiding in a quoted example. No emoji unless the brand's own posts use them, and then one.
- A claim keeps its qualifiers. If the true version does not fit in a short post, pick another claim. Required legal wording goes in the post text, not in tiny type on the image.
The card headline. It says what the click gets: "See Acme pricing", "Start free on Acme". If the page asks for a sign-up, say so here: "free to start", "book a demo". 40 characters or fewer usually keeps it on one line on a phone, which covers less of your image. One headline for all three ads, so the angle is the only thing that changes. Check it contradicts none of the posts.
The image. One subject, understood in under a second at the size of a playing card. Pick, for each angle, the kind that shows what its post is about:
- One object that is the idea. The thing the problem looks like: the shoebox of receipts, the empty director's chair, the wet sock. Literal, photographic, alone on a calm ground.
- The real product, large. A product photographed plainly. For software, one part of one real screen: a single row, card or figure. A whole dashboard at this size is grey noise.
- A number or a few words as type. When the proof is a number, the number is the picture, set very large on a brand colour. For a tool people type into, a sample prompt from the site in the site's own code font, beside the result the site shows for it. Make only one of the three images type alone: with the logo and X's label on it, a type card is three layers of text, and a set of them reads as a banner template.
Words in the image: none is normal, about four is the usual ceiling, and the logo does not count. They are never the post's sentence. The post says it; the image shows it. A number may appear in both: huge and alone in the image, with what it counts in the post.
People are the weakest choice: faces and hands are where generation shows, and X halts ads for it. Sample work the product made reads as another brand's ad unless the prompt that made it sits beside it. Never invent a dashboard, and never draw parts of X itself.
Write the plan as a table: for A, B and C, the angle, the post text with its character count, the image, any words in it, and the claims it leans on. Add the card headline. If anyone is there to look, get a yes before you generate.
3. Make the pictures
Read each endpoint's schema with endpoint_get before its first run. Type needs no generation.
One photograph serves both shapes. Generate at 16:9 and 2K, composed so that a square cut from it is a complete picture. This halves the cost and keeps the two shapes the same ad. The subject has to sit high and fairly small, which a model resists. Wording that worked:
- "Shot from further back, so the chair is fairly small in the frame. It is horizontally centred, inside the middle 40 percent of the width."
- "Its top is 14 percent of the way down from the top edge. Its feet, its lowest point, are no lower than 62 percent of the way down the frame."
- "Everything below 65 percent of the way down the frame is only bare, empty concrete floor."
- "The left 30 percent and the right 30 percent show only the same room continuing. The top left corner is calm, plain wall." Ask for the scene to carry on at the sides, not for a flat colour, or the wide version looks unfinished. The calm corner is for the logo.
Which model makes what:
- Objects and scenes without people:
google/nano-banana-2.1. Name real things exactly ("a classic folding director's chair, beech frame, black canvas", "a plain kraft cardboard shoebox, about 33 cm long"), with the details that make it that thing: without its lid and a size sticker, a shoebox came back as a shipping carton. For small print that can't be checked, such as till receipts, ask for it "faded and too small to read". - The brand's product: the same model with two to four real product photos as references, drawn into the scene, never pasted on. When the label has fine print, add one pass with
openai/gpt-image-2.6/sunburstto redraw only the label from the clean pack shot. - A screen: crop the real picture to the one row or card that matters. If its words would be under 54 pixels tall in the wide file (34 in the square), crop tighter. If the crop then needs enlarging more than about twice, have
openai/gpt-image-2.6/sunburstredraw it with the crop as image 1: "the same row, the same words, larger, sharper and cleaner, flat, on plain white". Compare every word and figure with the original. Leave out other companies' names and anything that looks like a second button. - Ask for "an ordinary photo in natural light, nothing staged, no studio gloss, no people, no text anywhere". For more on products, and for people (
higgsfield/soul-v2, then placed withgoogle/nano-banana-2.1), readmeta-static-ads.
Look at every picture before you use it. Lay the bottom third and the square over it. The square need not be the dead centre: slide it sideways until the subject is whole. Look closely for garbled print, invented logos and objects no shop sells. To move the subject, generate again with the positions restated; an edit often returns the same picture. Allow two retakes, then change the idea.
4. Lay out and render
Build two HTML pages for each ad, 1920 x 1080 and 1200 x 1200 CSS pixels: the picture or the ground, the real logo file, and any words as text in the brand's font files.
- Mark the keep-clear zones on the page, and keep the logo and every word out of them: the bottom 33% of the wide page, the bottom 17% of the square, and a margin of 5% of the width on every side. Resize pictures to the page with a Lanczos filter first.
- The logo goes in the top left corner, the full wordmark, about 60 to 76 pixels tall on the wide page and 44 to 56 on the square, dark or light by what it sits on. Don't put it on a badge: that is the first step back to a banner.
- Words, a number or a screen start at the left margin, under the logo, centred in the height between the logo and the keep-clear band, and fill most of the width: a small card in an empty field looks unfinished. Words are 96 pixels or taller on the wide page and 60 or taller on the square. Break lines by hand.
- A screen sits on the brand's ground as a card with the corners the brand's site gives its screens. Fill the card with the screen picture's own background colour, sampled from it, or a seam shows.
- Have each page measure itself: a few lines of script that compare each text, logo and card box with the keep-clear zones and report any that cross.
Render with headless Chrome: chrome --headless=new --force-device-scale-factor=1 --hide-scrollbars --window-size=1920,1080 --screenshot=out.png page.html, with a fresh --user-data-dir and a time limit for each render. Save a photograph as JPG at quality 92 with colour subsampling off, and flat colour and type as PNG. Name files like acme_a-problem_1920x1080.jpg.
Build the post preview. One small HTML template draws an ad the way a timeline shows it, 402 points wide: a round picture with the brand's own mark, the brand's name and handle, the word "Ad", the post text, the finished image file with corners rounded by 16 points, the card headline in a dark label at its bottom left, and "From" with the site's domain under it. Give it a dark theme and a light one. Plain shapes only: never X's name or logo, no verified badge, no made-up counts of likes or replies.
The overview. One image, three rows, A to C: the 16:9 ad in a dark preview and the 1:1 ad in a light one, with the character counts beside them. It shows the post and the image together, on both grounds, and what the headline label covers.
The mockup. One ad, usually the strongest, in a feed on an iPhone 17 Pro, drawn in HTML and rendered at a device scale of 3: a dark rounded frame round a screen of 402 by 874 points, the ad's preview in the middle, and placeholder posts made of grey bars above and below. Say on delivery that it is a drawing of a feed, not a screenshot, and that X's real label may sit a little differently.
5. Check every ad
Look at each ad in its preview at phone size, on dark and on light. Check all of these:
- Each file is exactly 1920 x 1080 or 1200 x 1200, PNG or JPEG, under 5 MB. Measure it.
- The post text is near 50 to 100 characters and never over 280. The headline is 70 or fewer. No hashtag, link or @mention. One emoji at most across text and image.
- With the image covered, the post still says what is on offer. With the post covered, the image still shows one clear thing. Together they don't say the same sentence twice, and a stranger can name the kind of product in two seconds.
- The headline label covers nothing that matters, in both shapes. Nothing sits in a corner.
- The image holds its edge on black and on white, and any words in it read at phone size.
- The real logo is in the image, the fonts are the brand's, and every word is spelled right.
- No signs of generation: warped shapes, garbled print, melted logos, impossible objects.
- Every claim is on the brand's site today, with its qualifiers, and belongs to this product.
- It reads as a post. If it could hang in an airport, it is a banner: take things off.
Then have google/gemini-4-argon look at the overview and the mockup in one question, as someone who has never heard of the brand: for each ad, who is it from, what do they sell, does the post sound like a person or like marketing, and does anything in the image look wrong, generated, hard to read or covered by the label? It costs about five cents. Treat what it says as a lead, not a verdict. If the endpoint fails, try again a few minutes later; if it still fails, say on delivery that no outside viewer looked.
Fix what fails before you deliver.
6. Deliver
- The six files in one folder, and a zip of it handed over as a file:
asset_uploadtakes pictures, not zips. - The overview and the mockup, uploaded with
asset_uploadso there are links to share. - A copy sheet, ready to paste into X Ads Manager: for each ad its angle, the post text with its character count, the two files and the claims it leans on. Then the card headline and the destination address.
- What it cost, from
spend_getwith the job's budget tag. - Claims the brand should confirm before the ads run, any X policy page that applies to their field, any font licensed only to the brand, and any known flaws.
- Tell them to check each ad in the Ads Manager preview: it shows the real headline label.
- Offer more: the winning angle as a video with
meta-video-adsin X's sizes, a wording test of three posts over the winning image, or three more angles.
Watch out for
- A banner. A headline, a subline, a button and a logo block in one image is the commonest fault.
- No invented statistics, reviews, quotes, prices, awards, customers or partnerships.
- No real people's faces. No made-up handles, replies or like counts in a preview.