HTML/JS Import and Code Editor

Import entire ad units or enhance existing Adventive ads with external widgets or embeddable code

Adventive's Ad Builder supports the import of pre-existing ad code packaged zip files, widgets or other embeddable HTML and Javascript.  Adventive supports many embeddable players and external solution provider's widget code.  Check out these articles within our knowledge base, or contact Adventive Support if you need assistance with code not specifically specified here.

In this article, you will learn:

How to import code snippets, embeddable code, or widgets

How to prepare packaged zip files for import

How to import packaged HTML zip files

How to import code snippets, embeddable code, or widgets

Below you will find a step-by-step process to import code into Adventive.

  1. Choose the ad format and dimensions of the ad unit you wish to import the code to.  For guidance on building specific formats, check out this article.
  2. From the left menu, select the components icon componentHTML5 Import
  3. A white 300x250 placeholder will appear on the canvas.  Resize the placeholder using the General Properties menu to the appropriate dimensions required for the import.

    Ad Builder - Components - HTML5 Import Menu
  4. With the placeholder selected, use Paste Snippet from the dropdown under the HTML5 Import Menu. Click Open Snippet Editor.

    Ad Builder - HTML5 Import Menu - Paste Snippet
  5. The code editor will open, here paste the code that you've created, or received from an advertiser, or embeddable widget provider.

    Ad Builder - HTML5 Import Code Editor
  6. Position your import as necessary, and save your ad unit.

It is advised that you test all tracking prior to trafficking your unit live.

Adventive makes every attempt to track all actions and click throughs within imported code, however, vendor restrictions, or unique code may result in our inability to track certain actions. 

How to prepare packaged zip files for import

In most cases, if an advertiser provides a prepackaged zip file, there is nothing more that will need to do in order to prepare the file.  Learn how to import packaged zip files in this article

Adventive requires imported zip files of HTML and JavaScript code to meet certain conditions in order to correctly render within our platform. If you experience an error importing a prepackaged zip file, or need guidance on preparing your own file, make sure the files adhere to the following requirements:

  1. All resources within the file must serve over HTTPS.  This includes all references to third party served files such as CSS or JS, or any tracking that may be embedded in the code.
  2. Make sure there are no special characters (e.g. #,$,%,!) in the HTML file names, or zip file name, as this may cause errors in uploading.
  3. Ensure there is a index.html file in the main root of the zip file.

If you are still experiencing issues with your zip file, please contact Adventive Support

How to import packaged zip files

Below you will find a step-by-step process to import packaged zip files into Adventive.

  1. Choose the ad format and dimensions of the ad unit you wish to import the code to.  For guidance on building specific formats, check out this article.
  2. From the left menu, select the components icon componentHTML5 Import
  3. A white 300x250 placeholder will appear on the canvas.  Resize the placeholder using the General Properties menu to the appropriate dimensions required for the import.

    Ad Builder - Components - HTML5 Import Menu
  4. With the placeholder selected, use Uploaded from the dropdown under the HTML5 Import Menu. Click Upload ZIP File.

    Ad Builder - Upload Zip File
  5. The system dialog will open and allow you to select the zip file you would like to embed.  Allow some time for processing of the zip file before rendering will begin on the main canvas.

Multiscreen ads require independent zip files and screen navigation configuration

It is advised that you test all tracking prior to trafficking your unit live.

Adventive makes every attempt to track all actions and click throughs within imported code, however, vendor restrictions, or unique code may result in our inability to track certain actions.