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
Request parameters
Page-level targeting
Include aPage. prefixed keyword matching the current page to target ads contextually. Your account manager will confirm the full keyword list for your property during onboarding.
Response
A successful response contains ad metadata, tracking URLs, and acreativeContent array with the components needed to render the ad.
Creative components
ThecreativeContent 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 adiv with a class of FID_ followed by the flightId from the response: