Skip to main content
Native ads are responsive placements custom-designed to match the style and layout of your web content. They typically appear on channel landing pages — such as your homepage, destination pages, or category pages — and are targeted by page context using keywords. Platform 195 will recommend placement positions after reviewing your web properties. Once agreed, the CSS and HTML can be built to match the responsive behaviour of your content, or Platform 195 can build this for you.

Requesting native ads

POST to the native ad endpoint at page load. Authentication is required via headers — see Authentication. Endpoint: POST https://dev.api.upliftads.io/v3/native-ad
{
  "siteId": YOUR_SITE_ID,
  "zoneIds": ["YOUR_ZONE_ID"],
  "count": 1,
  "keywords": ["Page.{PageMacro}"]
}

Request parameters

ParameterTypeRequiredDescription
siteIdnumberYesYour site ID. Provided by Platform 195. Must match the x-site-id header.
zoneIdsarrayYesOne or more zone IDs identifying the ad placement(s) on the page. Provided by Platform 195.
countnumberYesNumber of ads to request per zone. Set to 1 if there is one placement per zone.
keywordsarrayNoTargeting parameters. See page-level targeting below.

Page-level targeting

Include a Page. prefixed keyword matching the current page to target ads contextually. Your account manager will confirm the full keyword list for your property during onboarding.
PageKeyword format
HomepagePage.homepage
A category pagePage.{category-slug}
A destination pagePage.{destination-name}

Response

A successful response contains ad metadata, tracking URLs, and a creativeContent array with the components needed to render the ad.
{
  "decisions": {
    "Native_1": [
      {
        "adId": 000000000,
        "creativeId": 000000000,
        "flightId": 000000000,
        "campaignId": 0000000,
        "clickUrl": "https://dev.engine.upliftads.io/r?e=...",
        "impressionUrl": "https://dev.engine.upliftads.io/i.gif?e=...",
        "viewableImpressionUrl": "https://dev.engine.upliftads.io/e.gif?e=...",
        "creativeContent": [
          {
            "componentKey": "componentValue"
          }
        ]
      }
    ]
  }
}

Creative components

The creativeContent array contains the individual components of the ad creative — things like images, headings, and a destination URL. The specific components available vary per campaign and are agreed with Platform 195 during onboarding. Your HTML template should be built to map these components into the correct positions.
Platform 195 will provide a full list of the creative components configured for your implementation, along with guidance on how to map them to your HTML template.

The clickUrl

The clickUrl serves a dual purpose — it acts as both a click counter and a redirect to the ad’s destination. When a user clicks the ad, direct them to the clickUrl; the Uplift engine will record the click and redirect to the advertiser’s destination URL automatically.

Handling empty responses

If no ads are available, the response will be empty. How you handle this depends on the placement:
  • If the ad position has no surrounding content — collapse the div so no blank space appears.
  • If the ad position is required to fill space on the page — Platform 195 will ensure an ad is always returned for that zone.

Reporting

See Tracking Ad Engagement for full details on firing impression, click, viewable impression, and conversion tracking URLs.

Evidencing

Wrap each native ad placement in a div with a class of FID_ followed by the flightId from the response:
<div class="existing_class FID_{{flightId}}">
  <!-- native ad HTML -->
</div>