conversion-eng:start
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
conversion-eng:start [2015/09/04 11:23] – created 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 |
- | + | ||
- | ===== Conversion steps ===== | + | |
- | + | ||
- | **1.** Choose | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | **2.** Click on the „UPLOAD” button to upload | + | |
- | {{ : | + | |
- | + | ||
- | **3.** Following | + | |
- | {{ : | + | |
- | + | ||
- | ===== Modifying the converted file for matching the Adverticum AdServer’s specification ===== | + | |
- | + | ||
- | 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 | + | |
- | + | ||
- | **1.** Open the saved file in a text/code editor (e.g. Notepad++). | + | |
- | + | ||
- | **2.** Search the following part in the last section of the code: | + | |
<code html> | <code html> | ||
- | | + | < |
- | + | ||
- | var stage = new swiffy.Stage(document.getElementById(' | + | |
- | swiffyobject, | + | |
- | + | ||
- | stage.start(); | + | |
- | | + | |
</ | </ | ||
+ | === 3.) Creating the click handling === | ||
- | **3.** Insert | + | For handling the clicks, the goa.clickTAG variable needs to be read and use in the following |
+ | The <a> tag makes clickable | ||
+ | For example: | ||
<code html> | <code html> | ||
- | stage.setFlashVars(location.search.split('?' | + | <a id=" |
- | </code> | + | <div id=" |
+ | <!-- The HTML code of the banner --> | ||
+ | </ | ||
+ | </a> | ||
- | After that the code needs to be similar to this one: | + | <!--The click handling script --> |
- | <code html> | + | <script> |
- | | + | |
- | + | ||
- | var stage = new swiffy.Stage(document.getElementById(' | + | var cT = document.getElementById(' |
- | | + | |
- | + | cT.target = goa.clickTARGET; | |
- | stage.setFlashVars(location.search.split('?' | + | })(); |
- | | + | </ |
- | </ | + | |
</ | </ | ||
- | |||
- | **4.** Save the file. | ||
===== 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 |
+ | | ||
+ | ---- | ||
- | https:// | + | ====== Conversion and upload Adobe Edge codes ====== |
- | The main difference between the common banner and the HTML banner | + | The Adobe Edge is an image editor software which can be used to HTML5 banners. More information |
- | <code html> | + | [[https://creative.adobe.com/ |
- | <iframe src="[file:embedded_250x250_03.html]? | + | |
- | </ | + | |
- | **1.** All banners’ file name and the size should | + | To be able to run the banner |
- | <code html> | + | [[http://dev.adverticum.com/ |
- | <iframe src="[file:example-banner.html]? | + | |
- | </ | + | |
- | **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. | + | ===== Conversion of the banner |
- | **3.** After that click on the " | + | **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 '' |
- | ====== Conversion and upload | + | **3.** Search the following expression ''< |
- | The Adobe Edge is an image editor software which can be used to HTML5 banners. More information is available here: | + | <code html> |
+ | <script src="// | ||
+ | </ | ||
- | [[https:// | + | After insertion the code should look similar to the example below: |
- | 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: | + | <code html> |
- | [[https://support.adverticum.net/ | + | < |
- | + | <script src="//ad.adverticum.net/ | |
- | ===== Conversion of the banner ===== | + | <!--Adobe Edge Runtime--> |
- | + | </ | |
- | **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 '' | + | **4.** 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 127: | 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 142: | Line 121: | ||
<code javascript> | <code javascript> | ||
- | decodeURIComponent(location.search.split('?' | + | goa.clickTAG |
</ | </ | ||
Line 149: | 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 „Save” button. | + | |
---- | ---- | ||
- | ====== Google Web Designerrel készült bannerek átalakítása és felvétele | + | ====== |
Google Web Designer [GWD for short] is a free HMTL editor which is available in the following link: | Google Web Designer [GWD for short] is a free HMTL editor which is available in the following link: | ||
Line 185: | 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 195: | 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 315: | 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.1441358635.txt.gz · Last modified: 2015/09/04 11:23 by avarga