Skip to main content
GET
Get a Single Native Template

Authorizations

Authorization
string
header
required

API key en el header Authorization: Basic TU_API_KEY. La key va tal cual, sin codificar en base64. Las credenciales se entregan al comenzar la integración.

Path Parameters

id
integer
required

Identifier of the resource.

Query Parameters

fields
string

Restrict the fields you wish to retrieve by listing the desired fields formatted as a comma-separated list. Fields like "object", "self", and "id" are always returned.

Response

successful operation

name
string
required

The name of the native template. We recommend using a naming scheme that is descriptive, relevant, and consistent.

Example:

"Product List Native Template"

raw_html
string
required

The HTML that will be served as an ad. This HTML should include the variable placeholder values that will be replaced when the template is used to create a native ad.

Example:

"<div class='[%ad-color%]'><h1>[%title%]</h1><a href='[%button-link%]'>Purchase for Only [%price%]!</a></div>"

variables
object[]
required

The variables to be replaced in the raw_html when the template is used to create a native ad.

Example:
object
string

A string denoting the current resource being requested or affected.

Example:

"native_template"

self
string

The relative URL of the current resource being requested or affected.

Example:

"/v2/templates/native/1234"

id
integer
read-only

The current resource identifier (ID).

Example:

1234

latest_version_id
integer

The latest version ID.

Example:

522361

references
integer[]

A list of IDs of the ad items that reference this template.

Example:
outdated_references
integer[]

A list of IDs of the ad items that reference an older version of this template.

Example: