conversion-eng:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
conversion-eng:start [2015/09/21 14:47] – [Modifying the converted file for matching the Adverticum AdServer’s specification] avarga | conversion-eng:start [2017/05/03 17:47] (current) – dczipperer | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Introduction ====== | ||
+ | |||
:!: **Important!** | :!: **Important!** | ||
- | **These guides are adequate only for the actual | + | **These guides are adequate only for the actual |
- | ====== Conversion and upload of Flash banners | + | This guide provides help to achieve compliance |
+ | Below we collected suggestions to help modify the output code of some of the more commonly used editors and converters, with product specific steps. | ||
- | Swiffy is a free Google product which is able to convert most Flash creatives to HTML. This service is available here: | + | ===== Uploading and modifying banners created with Adobe Anime CC ===== |
- | [[https:// | + | === 1.) Open the .html file in a text editor (e.g. Notepad++) === |
- | The following documentation means a great help for managing | + | === 2.) Adding |
- | [[https:// | + | For starting the goa-helper.js, just insert |
- | + | ||
- | ===== Conversion steps ===== | + | |
- | + | ||
- | **1.** Choose | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | **2.** Click on the " | + | |
- | {{ : | + | |
- | + | ||
- | **3.** Following the successful conversion save the generated HTML file by clicking on the "VIEW CONVERSION" | + | |
- | {{ : | + | |
- | + | ||
- | ===== Modifying the converted file for matching the Adverticum AdServer’s specification ===== | + | |
- | + | ||
- | :!: **Attention, | + | |
- | + | ||
- | This can be check this at the beginning of the source code by searching for the '' | + | |
<code html> | <code html> | ||
- | + | <script src="// | |
- | < | + | |
</ | </ | ||
- | The saved HTML file is not ready to the adserving yet so some modifications are necessary in the code. The changes will make it possible to give the clickTAG and clickTARGET variables to the banner. It does not matter, if the creative does not use the last mentioned variable. | + | === 3.) Creating |
- | + | ||
- | **1.** Open the saved file in a text/code editor (e.g. Notepad++). | + | |
- | **2.** Search | + | For handling the clicks, the goa.clickTAG variable needs to be read and use in the following |
+ | The <a> tag makes clickable the interface which is located between the opening and closing | ||
+ | For example: | ||
<code html> | <code html> | ||
- | | + | <a id=" |
+ | <div id=" | ||
+ | <!-- The HTML code of the banner --> | ||
+ | </ | ||
+ | </a> | ||
- | var stage = new swiffy.Stage(document.getElementById(' | + | <!--The click handling script --> |
- | swiffyobject, | + | |
- | stage.start(); | + | < |
- | </ | + | (function(){ |
+ | |||
+ | var cT = document.getElementById(' | ||
+ | cT.href = goa.clickTAG; | ||
+ | cT.target = goa.clickTARGET; | ||
+ | | ||
+ | </ | ||
</ | </ | ||
+ | ===== Uploading the banner to AdServer ===== | ||
- | **3.** Insert | + | Banners modified this way can be uploaded with the uploading steps for easyHTML: |
+ | | ||
+ | ---- | ||
- | <code html> | + | ====== Conversion and upload Adobe Edge codes ====== |
- | stage.setFlashVars(location.search.split('?' | + | |
- | </ | + | |
- | After that the code needs to be similar | + | The Adobe Edge is an image editor software which can be used to HTML5 banners. More information is available here: |
- | <code html> | + | [[https:// |
- | < | + | |
- | var stage = new swiffy.Stage(document.getElementById(' | + | To be able to run the banner as a HTML banner with the right references and clicks, there are some modifications to be done in the code. The conversion steps and the uploading method will be detailed hereinafter. About the requirements of the easyHTML banners please visit this link: |
- | swiffyobject, | + | |
- | stage.setFlashVars(location.search.split('?' | + | [[http://dev.adverticum.com/ |
- | stage.start(); | + | |
- | </script> | + | |
- | </code> | + | |
- | **4.** Save the file. | + | ===== Conversion of the banner ===== |
- | ===== Uploading | + | **1.** Creatives generated in Adobe Edge usually order the linked files into folders. As a first step, move all files to the same folder which contains the '' |
- | To run the converted banners we need to use HTML banner. | + | **2.** Open the banner’s '' |
- | https:// | + | **3.** Search |
- | + | ||
- | The main difference between the common banner and the HTML banner is that here we do not use the content of the HTML banner as a source – instead of that the following | + | |
<code html> | <code html> | ||
- | <iframe | + | <script |
</ | </ | ||
- | **1.** All banners’ file name and the size should be modified in the code. If our banner’s name is '' | + | After insertion |
<code html> | <code html> | ||
- | <iframe | + | |
+ | | ||
+ | < | ||
+ | < | ||
</ | </ | ||
- | **2.** As a next step, the modified HTML file should be uploaded in the banner’s file list by clicking on the "Add File" button. | + | **4.** Open the banner’s '' |
- | + | ||
- | **3.** After that click on the " | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ====== Conversion and upload Adobe Edge codes ====== | + | |
- | + | ||
- | The Adobe Edge is an image editor software which can be used to HTML5 banners. More information is available here: | + | |
- | + | ||
- | [[https:// | + | |
- | + | ||
- | To be able to run the banner as a HTML banner with the right references and clicks there are some modifications needed in the code. The conversion steps and the uploading method will be detailed hereinafter. About the requirements of the HTML5 banners (Markup banner’s requirements are irrelevant here) more information are available in our Knowledgebase: | + | |
- | + | ||
- | [[https:// | + | |
- | + | ||
- | ===== Conversion of the banner ===== | + | |
- | + | ||
- | **1.** Creatives generated in Adobe Edge usually order the linked files into folders. As a first step, move all files to the same folder which contains the '' | + | |
- | + | ||
- | **2.** Open the banner’s '' | + | |
:!: ** Important!** | :!: ** Important!** | ||
* It is possible that more .js files belong to the banner if it was created with different Edge-versions | * It is possible that more .js files belong to the banner if it was created with different Edge-versions | ||
- | * In case of '' | + | * In case of '' |
* In case of '' | * In case of '' | ||
- | **3.** Search the following expression: | + | **5.** Search the following expression: |
'' | '' | ||
Line 137: | Line 106: | ||
</ | </ | ||
- | **4.** To manage the clicks the following expression should be found: | + | **6.** To manage the clicks the following expression should be found: |
'' | '' | ||
Line 152: | Line 121: | ||
<code javascript> | <code javascript> | ||
- | decodeURIComponent(location.search.split('?' | + | goa.clickTAG |
</ | </ | ||
Line 159: | Line 128: | ||
<code javascript> | <code javascript> | ||
/*...*/ " | /*...*/ " | ||
- | window.open(decodeURIComponent(location.search.split('?' | + | window.open(goa.clickTAG," |
}); | }); | ||
</ | </ | ||
- | :!: It is important that the ''" | + | :!: It is important that the ''" |
+ | **7.** If the banner needs to control displays with the open or close functions, please use the examples from the documetation below on the open/ | ||
+ | |||
+ | [[http:// | ||
===== Uploading the banner to AdServer ===== | ===== Uploading the banner to AdServer ===== | ||
- | To run the converted banners we need to use HTML banner. Regarding | + | Banners modified this way can be uploaded with the uploading |
- | + | [[http://dev.adverticum.com/creatives:ehtml-en# | |
- | [[https://support.adverticum.net/index.php?/ | + | |
- | + | ||
- | The main difference between the common banner and the HTML banner is that here we do not use the content of the HTML banner as a source – instead of that the following code line should be inserted. In our example the filename is '' | + | |
- | + | ||
- | <code html> | + | |
- | <iframe src=" | + | |
- | </ | + | |
- | + | ||
- | **1.** All banners’ file name and size should be modified in the code. If our banner’s name is '' | + | |
- | + | ||
- | <code html> | + | |
- | <iframe src=" | + | |
- | </ | + | |
- | + | ||
- | **2.** As a next step, all files should be uploaded in the banner’s file list by clicking on the "Add file" button. | + | |
- | + | ||
- | **3.** After that click on the " | + | |
---- | ---- | ||
Line 195: | Line 149: | ||
[[https:// | [[https:// | ||
- | It is easy to convert banners with GWD to Adverticum-compatible HTML banners. | + | It is easy to convert banners with GWD to easyHTML |
- | [[https://support.adverticum.net/index.php?/ | + | [[http://dev.adverticum.com/creatives: |
- | ===== A banner | + | ===== Converting the banner ===== |
**1.** Open the folder of the published banner. | **1.** Open the folder of the published banner. | ||
Line 205: | Line 159: | ||
**2.** Open the given '' | **2.** Open the given '' | ||
- | **3.** | + | **3.** |
- | + | ||
- | Our code will be the following at the start period: | + | |
<code html> | <code html> | ||
- | < | + | <script src="// |
- | < | + | |
- | + | ||
- | <head data-gwd-animation-mode=" | + | |
- | <link href=" | + | |
- | <link href=" | + | |
- | <link href=" | + | |
- | | + | |
- | <meta name=" | + | |
- | <meta name=" | + | |
- | <meta name=" | + | |
- | <meta http-equiv=" | + | |
- | <meta name=" | + | |
- | <style type=" | + | |
- | !The stylesheet... | + | |
- | </ | + | |
- | <script data-source=" | + | |
- | <script data-source=" | + | |
- | <script data-source=" | + | |
- | <script data-source=" | + | |
- | <script data-source=" | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | <div is=" | + | |
- | <div is=" | + | |
- | <div class=" | + | |
- | <img is=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | <script type=" | + | |
- | // The script... | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | </html> | + | |
</ | </ | ||
- | After deleting the unnecessary elements the code will be modified as in the following example: | + | After this, our code will look similar to this: |
<code html> | <code html> | ||
- | + | | |
- | <link href=" | + | <script data-source=" |
- | <link href=" | + | <script src="// |
- | <link href=" | + | </head> |
- | <script data-source=" | + | |
- | <style type=" | + | |
- | !The stylesheet... | + | |
- | </ | + | |
- | <script data-source=" | + | |
- | <script data-source=" | + | |
- | <script data-source=" | + | |
- | | + | |
- | <script data-source=" | + | |
- | < | + | |
- | | + | |
- | <div is=" | + | |
- | <div is=" | + | |
- | <div class=" | + | |
- | <img is=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | | + | |
- | // The script... | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | **4.** If the banner’s code is bigger than 63KB after these changes, it is useful to write the code’s ''< | + | |
- | + | ||
- | <code html> | + | |
- | <script data-source=" | + | |
- | <style type=" | + | |
- | html, body { | + | |
- | width: 100%; | + | |
- | height: 100%; | + | |
- | margin: 0px; | + | |
- | } | + | |
- | !The rest of the stylesheet... | + | |
- | </style> | + | |
- | <script data-source=" | + | |
- | </ | + | |
- | + | ||
- | For this operation create a file (e.g. '' | + | |
- | + | ||
- | <code css> | + | |
- | html, body { | + | |
- | width: 100%; | + | |
- | height: 100%; | + | |
- | margin: 0px; | + | |
- | } | + | |
- | !The rest of the style sheet... | + | |
- | </ | + | |
- | + | ||
- | In our original HTML file the ''< | + | |
- | + | ||
- | <code html> | + | |
- | <script data-source=" | + | |
- | <link href=" | + | |
- | <script data-source=" | + | |
</ | </ | ||
- | **5.** Modify the files’ pathname | + | **4.** Modify the file's path name where it is necessary because the banner uses relative URL in the code (e.g. image, CSS and external js references). These are usually images, CSS and javascript files, which should be in the folder as '' |
In case of modifying Image banner’s URL eg.: | In case of modifying Image banner’s URL eg.: | ||
Line 325: | Line 182: | ||
</ | </ | ||
- | This should be replaced | + | We have to ensure that our code refers to files in it's own directory |
<code html> | <code html> | ||
- | <img is=" | + | <img is=" |
</ | </ | ||
- | **6.** For managing | + | **5.** We can choose from several ways of handling |
<code html> | <code html> | ||
- | <a href="[cthref]"> | + | <a id=" |
+ | < | ||
+ | (function(){ | ||
+ | |||
+ | var cT = document.getElementById(' | ||
+ | cT.href = goa.clickTAG; | ||
+ | cT.target = goa.clickTARGET; | ||
+ | })(); | ||
+ | </script> | ||
</ | </ | ||
- | In case of handling click with javascript: | + | If we would like to use javascript: |
<code javascript> | <code javascript> | ||
- | window.open(' | + | window.open(goa.clickTAG, ' |
</ | </ | ||
- | ===== A banner | + | **5.** If the banner |
- | Banner could be uploaded as usual. We need a HTML banner. As its source code we should use the HTML source code which was created with GWD and converted according | + | [[http:// |
+ | ===== Uploading | ||
- | [[https://support.adverticum.net/index.php?/ | + | Banners modified this way can be uploaded with the uploading steps for easyHTML: |
+ | [[http://dev.adverticum.com/creatives: | ||
---- | ---- |
conversion-eng/start.1442839628.txt.gz · Last modified: 2015/09/21 14:47 by avarga