Skip to end of metadata
Go to start of metadata

Selecting the Correct Template for Your Creative

Please use the guide below in determining which template to use for your creative.

A creative's media_url / content value is plugged into the the creative template to form the code that is delivered to the user's browser. Therefore, it is essential to choose the appropriate template ID when submitting a creative. For more information about creatives, see the Creative Service.

Get more information about template IDs

For more information about creative templates (and template IDs), see the Creative Template Service.

On This Page

ID: 1

This template is used if your creative is a single URL that points to a piece of html code.

You will need to pass the URL in the media_url field and set an id of 1 in the template object.

Template:

 

Example:

Creative

The following will be sent to the user's browser.

 

ID: 2

This template is used if your creative is a single URL that points to a piece of Javascript code.

You will need to pass the URL in the media_url field and set an id of 2 in the template object.

Template:

Example:

Creative

The following will be sent to the user's browser.

ID: 5

This template is used if your creative starts and ends with Javascript components, even if the Javascript code writes HTML.

You will need to pass the Javascript code in the content field and set an id of 5 in the template object.

Template:

Example:

Creative

The following will be sent to the user's browser.

ID: 6

This template is used if your creative starts and ends with HTML components, even if these HTML components are <script> tags.

You will need to pass the html code in the content field and set an id of 6 in the template object.

Template:

Example:

Creative

The following will be sent to the user's browser.

Related Topics

  • No labels