Information

Media multi-upload

Media multi-upload allows you to automatically create media from uploaded files.

To successfully create media files must meet the established requirements.

Download without multi.csv file
File names are formed according to a template - [media_type]_[format]@[name]"
  • [media_type] - required parameter (specifies the type of generated media)
  • [format] - required parameter for media types that need a format (defines the format of the generated media)
  • [name] - optional parameter (will be added to the name of the created media)
For example:
  • banner_100x90@myBanner
  • banner_500x100
  • push
  • native_300x250
By default, based on the type and format of the media, the actual media template is selected.

In addition to the file name, the type, format, and template and template variables for media can be specified in files. (relevant only for zip archives) defaut.html or index.html in the "name" and "content" attributes of the "meta" tags, where "name" can take one of the values starting with "ad." , and "content" is the corresponding value.

For example:
  • <meta name="ad.type" content="banner">
  • <meta name="ad.size" content="width=300,height=250">
  • <meta name="ad.template" content="1">
  • <meta name="ad.vars" content="playtime=10,disable=0">

Đ—The value of the template variables can also be specified in the params.txt file (relevant only for zip archives). Values from this file will take precedence.

For example:
  • title: My title text
  • varname1: varvalue1
  • varname2: varvalue2

If the media template involves a separate download of several files, then those downloaded through multi-upload files for this media must be in the archive and have the same names as the corresponding template variable names (file extension is not taken into account)

Download with multi.csv file

The system allows you to upload one zip archive with files from which separate media will be created.

To do this, you need to place the multi.csv file in the root of the archive, compiled in accordance with the requirements.
  • The field separator is ";" and the line separator is "\n" (line break)
  • The first line of the file (header) should contain the following fields: type;format;name[;file:varname1;file:varname2;varname3;varname4]
  • "type;format;name" - required fields, the values of which are described above
  • the fields listed in brackets "[...]" are optional and describe variables for the media template
  • fields "file:varname1;file:varname2" correspond to template variables "varname1" and "varname2" and are files
  • fields "varname3;varname4" matches non-file template variables "varname3" and "varname4"
The second line of the file specifies the values for each individual media. However, each line corresponds to individual media.
For example:
  • type;format;name;file:image;file:icon;file:image_720x480;title;body
  • push;;test_push_1;1024x512_1.jpg;small.png;image_3.jpg;Casino;Only we give +777% to replenishment
  • push;;test_push_2;1024x512_1.jpg;small.png;image_3.jpg;Catch Your Bonus!;Spin and Claim Your Prize Now
  • push;;test_push_3;;small_2.jpg;image_3.jpg;Catch Your Bonus!;Spin and Claim Your Prize Now
  • push;;test_push_4;;small_2.jpg;image_4.jpg;Casino;Spin and Claim Your Prize Now
  • push;;test_push_5;;small_2.jpg;image_5.jpg;Casino;Spin and Claim Your Prize Now

File examples : push, native