Saltar al contenido principal
POST
Create a Native Template

Autorizaciones

Authorization
string
header
requerido

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.

Cuerpo

application/json
name
string
requerido

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

Ejemplo:

"Product List Native Template"

raw_html
string
requerido

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.

Ejemplo:

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

variables
object[]
requerido

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

Ejemplo:

Respuesta

200 - application/json

successful operation

name
string
requerido

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

Ejemplo:

"Product List Native Template"

raw_html
string
requerido

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.

Ejemplo:

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

variables
object[]
requerido

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

Ejemplo:
object
string

A string denoting the current resource being requested or affected.

Ejemplo:

"native_template"

self
string

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

Ejemplo:

"/v2/templates/native/1234"

id
integer
read-only

The current resource identifier (ID).

Ejemplo:

1234

latest_version_id
integer

The latest version ID.

Ejemplo:

522361

references
integer[]

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

Ejemplo:
outdated_references
integer[]

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

Ejemplo: