{"id":48,"date":"2026-07-08T10:18:26","date_gmt":"2026-07-08T10:18:26","guid":{"rendered":"https:\/\/blog.skndan.com\/jsontoimg\/?page_id=48"},"modified":"2026-11-17T13:33:50","modified_gmt":"2026-11-17T13:33:50","slug":"ad-creatives","status":"publish","type":"page","link":"https:\/\/blog.skndan.com\/jsontoimg\/use-cases\/ad-creatives\/","title":{"rendered":"Ad Creative Variants API: Many Ads from One Template"},"content":{"rendered":"<p>Ad creative testing dies when every headline is a new file in Figma. An ad creative generator API removes that step. Keep the frame in jsontoimg. Enumerate headline \u00d7 product crop \u00d7 CTA as JSON rows, render a batch of 50, and let the ad account pick a winner.<\/p>\n<h2>Variation matrix, not 50 templates<\/h2>\n<p>If you have 5 headlines and 4 products, that is 20 jobs \u2014 one batch. 8 headlines \u00d7 10 products is 80 jobs: two batches. Name layers <code>headline<\/code>, <code>price<\/code>, <code>cta<\/code>, <code>product<\/code>. Do not fork templates per campaign unless the layout actually changes.<\/p>\n<pre><code>{\n  &quot;jobs&quot;: [\n    {&quot;template&quot;:&quot;&lt;id&gt;&quot;,&quot;format&quot;:&quot;jpg&quot;,&quot;layers&quot;:{&quot;headline&quot;:{&quot;text&quot;:&quot;Free shipping&quot;},&quot;cta&quot;:{&quot;text&quot;:&quot;Shop now&quot;}}},\n    {&quot;template&quot;:&quot;&lt;id&gt;&quot;,&quot;format&quot;:&quot;jpg&quot;,&quot;layers&quot;:{&quot;headline&quot;:{&quot;text&quot;:&quot;Members save 15%&quot;},&quot;cta&quot;:{&quot;text&quot;:&quot;Join&quot;}}}\n  ]\n}\n<\/code><\/pre>\n<p>Code for building the matrix: <a href=\"https:\/\/jsontoimg.com\/blog\/ab-testing-ad-creatives-automate-design-variations\">automate ad variations<\/a>.<\/p>\n<h2>Platform specs are not yours to choose<\/h2>\n<p>A matrix renders rejected ads as efficiently as good ones. <a href=\"https:\/\/developers.facebook.com\/docs\/marketing-api\/reference\/ad-creative\/\">Meta\u2019s ad creative reference<\/a> documents the fields and image constraints a creative has to satisfy before it will run, and the limits differ by placement \u2014 a square feed asset is not a story asset. Encode the constraint in the template and render per placement, rather than scaling one file and hoping.<\/p>\n<p>Keep the text light. Heavy text-over-image historically suppressed delivery and still reads badly at feed size. The headline belongs in the ad copy fields; the image carries the product and one short line.<\/p>\n<h2>Enough traffic to read the result<\/h2>\n<p>Rendering 240 variants costs 240 credits. Measuring them costs budget, and that is the real constraint. <a href=\"https:\/\/www.evanmiller.org\/ab-testing\/sample-size.html\">A sample-size calculator<\/a> will tell you how many impressions a detectable difference needs \u2014 split a modest budget forty ways and every cell lands in the noise.<\/p>\n<p>So test in rounds. Enumerate the full matrix in JSON because it is free to generate, then ship one axis at a time: four headlines against a fixed background, winner forward, then four backgrounds against the winning headline. The <a href=\"https:\/\/jsontoimg.com\/blog\/ab-testing-ad-creatives-automate-design-variations\">variation matrix walkthrough<\/a> has the script and the file-naming scheme that keeps results analysable.<\/p>\n<h2>Related<\/h2>\n<ul>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\">All image generation use cases<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/batch-image-generation-generate-thousands-of-images\">Batch image generation API<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/docs\/guides\/batch\">Batch renders docs<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/tools\/free-instagram-post-generator\">Free Instagram post generator<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/product-banners\">Product banners<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/use-cases\/social-posts\">Social posts<\/a><\/li>\n<li><a href=\"https:\/\/jsontoimg.com\/blog\/json-to-image-converter\">How JSON-to-image conversion works<\/a><\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>How do I A\/B ad images without a designer per variant?<\/h3>\n<p>One template, a list of headlines and CTAs in JSON, POST \/api\/v1\/renders\/batch (max 50). Upload the files to Meta\/Google. The layout stays pinned; only named layers change.<\/p>\n<h3>What about creative fatigue?<\/h3>\n<p>When a winner decays, change copy in data \u2014 not in Figma. Keep the brand kit in the template. Rotate headlines weekly from a sheet via n8n HTTP.<\/p>\n<h3>Does jsontoimg run the A\/B test?<\/h3>\n<p>No. It renders the set. Your ad manager scores CTR. jsontoimg is the factory, not the experiment platform.<\/p>\n<p><a href=\"https:\/\/app.jsontoimg.com\/login\">Get 25 free images \u2192<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enumerate headline \u00d7 image \u00d7 CTA in JSON, batch 50 jobs, upload the set to your ad manager. Design stays in the template.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":45,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-48","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":5,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/48\/revisions"}],"predecessor-version":[{"id":397,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/48\/revisions\/397"}],"up":[{"embeddable":true,"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/pages\/45"}],"wp:attachment":[{"href":"https:\/\/blog.skndan.com\/jsontoimg\/wp-json\/wp\/v2\/media?parent=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}