Make sure your HTML code meets the following requirements.
HTML Code Requirements
The maximum size of an HTML file is 65,000 bytes.
Save the JS and CSS code in separate files with the .js or .css extension.
File weight can't be more than 300 KB.
To connect additional files (images, styles, scripts), use absolute links: src="js/script.js", src="css/style.css". When the project is uploaded, Adfox recognizes the file paths, automatically uploads them to the Files tab, and replaces all links to these files in the uploaded project.
When adding a banner to Adfox, make sure to tell the manager which buttons match which events. For each event, the manager adds a unique link, which is then passed to the banner code as a variable.
After publishing the project, archive it with the .zip extension. Your creative is ready to be uploaded to the Adfox banner.
Click counters in banners
If you want your Adfox banner to display click statistics, find the a tag for the href attribute in your HTML code and add the following variable: %banner.reference_mrc_user2%.
For links, use the target attribute with the %banner.target% variable as an attribute. If the attribute is missing, the link will open inside the iframe: that is, the advertised site will open in the location of the banner.
In the ad campaign settings, go to the Banners tab and click Add.
Select the App Mobile Banner or App Mobile Interstitial type and the HTML App Mobile Banner or HTML App Mobile Interstitial template, respectively.
Set the banner parameters:
Priority: The number that determines the banner's display order in the campaign. The higher the numeric value, the higher the banner's priority over the other banners in the same campaign. To learn more about priorities, see Adfox help.
Archive with creative HTML5 content: Upload a ZIP archive with the project, leaving the HTML5 field empty (it will be filled with the contents of your project's HTML file after you add the banner).
Tracking pixel link: By default, uses the Adfox pixel //banners.adfox.ru/transparent.gif. If you want to track impressions in a third-party system, delete the Adfox pixel and specify another link.
HTML5: If you uploaded a project archive, this field is filled out automatically.
Click-through URL: Enter the link to the advertiser's site. For the click-through to work correctly, make sure that the link includes the protocol (http:// or https://).
Start date and time: Required parameters. By default, this parameter is set to the current date. If you don't change it, banners will start being served immediately after you add them (if their status is set to active).
Ad label: Select Ad or Social Ad to label your banner. If the creative already has a label, you can choose the Disabled value in the drop-down list.
Adding the Social Ad label doesn't define creative content as social advertising. To label creative content as social advertising in the state register, make sure to select the Social ads contract option in the contract with the end advertiser.
Domain: Enter the advertiser domain to be added to the label as Ad / Example.com or Social Ad / Example.com (if you selected the Ad or Social Ad value in the drop-down list).
Show banner menu: Enable this option to add a token to a non-clickable banner. When serving the banner, it will have the menu icon displayed in the upper-right corner. Clicking the icon opens the advertiser's information and a button to copy the token (if the banner has ad labeling enabled or a third-party token specified).
The banner menu contains a link to the rules for using recommendation technologies. The link is necessary to meet the requirements of article 10.2–2, part 1, paragraph 3 of Federal Law No. 149-FZ "On Information, Information Technologies and the Protection of Information", dated July 27, 2006.
If a banner is non-clickable (the click-through URL field is empty) and information about it needs to be added to the state register, you can enable the banner menu to make a token available when serving the banner.
Settings for Russian ad register: This section is only available if you selected Submit data to state register in the campaign settings. Fill out the section fields to register your creative content with the Yandex advertising operator. The creative content will have a token assigned automatically. To learn more about ad labeling, see Adfox Help.
Name: Enter a name for the banner. If you leave this field blank, it will be assigned a sequential number.
Status: Select a status for the banner:
active: The banner is ready to be served.
paused: The banner impression is paused.
completed: The banner won't be served.
Disabled on new placements: This option is enabled by default. Once you create your banner, it won't be placed automatically:
In new placements created within the site or section where your campaign is placed.
In placements that were enabled in the campaign placement settings after the banner was created.
If you disable this option, the banner will be automatically added to any placements that have the campaign placement enabled.
Targeting profile: Select the targeting profile you created earlier. To learn more about targeting profiles, see Adfox Help.
Events enabled: This option is used to get direct links to events to be tracked in a third-party system.
To activate the option, click next to the banner in the Placements tab. In the window that opens, you'll see links to events from 1 to 30. Copy and send them to the third-party system to be tracked there.
Impressions in total, day, hour:
Impressions total, day, hour: Maximum number of banner impressions. If a campaign is distributed evenly, set the banner display end date. Once the number of impressions reaches the maximum, the banner's status changes to completed and it's no longer served.
Impressions per day: Maximum number of impressions per day. Once the number of impressions from the start of the day reaches the maximum, they are paused until the next day starts.
Impressions per hour: Maximum number of impressions per hour. Once the number of impressions from the start of the hour reaches the maximum, they are paused until the next hour starts.
Clicks total, per day, per hour:
Clicks total: Maximum number of banner clicks. If a campaign is distributed evenly, set the banner display end date. Once the number of clicks reaches the maximum, the banner's status is changed to Completed and it's no longer served.
Clicks per day: Maximum number of banner clicks per day. Once the number of clicks from the start of the day reaches the maximum, impressions are paused until the next day starts.
Clicks per hour: Maximum number of banner clicks per hour. Once the number of clicks from the start of the hour reaches the maximum, impressions are paused until the next hour starts.
End time: To set the end date and time, first enable the option.