Skip to content
Preview of the Display ad, medium rectangle (300 × 250) template

300 × 250 px

Display ads

Display ad, medium rectangle (300 × 250)

A 300 × 250 IAB medium rectangle for a subscription offer: brand mark, a headline that shrinks to fit, a product image, an offer burst, a price line and a call-to-action button. Fill it from a campaign or product feed and render every variant in one batch.

PNG300 × 250 pxLocale en-GBCanvas

Opens Dynamic Document API with this template preloaded in a free workspace, in the canvas editor.

Features

  • Text that fits its box

How image templates are built is described in the canvas editor guide.

Dynamic properties

6 properties a render can set, sent flat in data. A property you leave out keeps its designed value.

KeyTypeExample
brand.textBrand · up to 24 charactersstring"OWLBROOK ROASTERS"
headline.textHeadline · up to 60 characters, longer text is shortenedstring"Fresh coffee, roasted every week"
offer.textOffer · up to 18 charactersstring"1st bag ⏎ FREE"
price.textPrice line · up to 40 charactersstring"From £8.50 a bag, free delivery"
cta.textButton text · up to 24 charactersstring"Start subscription →"
product.srcProduct image · https:// or data: URL, transparent PNG works beststringdesigned value

Render it with the API

After adding the template to your workspace, render it by ID and pass your data.

curl -X POST https://api-eu.dynamicdocumentapi.com/v1/renders \
  -H "Authorization: Bearer $DYNAMIC_DOCUMENT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "type": "template",
    "template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
  },
  "data": {
    "brand.text": "OWLBROOK ROASTERS",
    "headline.text": "Fresh coffee, roasted every week",
    "offer.text": "1st bag\nFREE",
    "price.text": "From £8.50 a bag, free delivery",
    "cta.text": "Start subscription →"
  },
  "output": {
    "format": "png",
    "filename": "display-ad-medium-rectangle.png"
  }
}'