Connecting direct sales via Adfox
Step 1. Add an app and create an ad unit in the Yandex Advertising Network
-
Add an app in the Yandex Advertising Network.
-
Create an ad unit: banner, interstitial, or native.
Note
You can't add a banner with direct sales for Rewarded, App Open Ads, and Feed ad units.
-
Connect Adfox in one of the following ways:
-
In the ad unit settings under Advertising networks, open the Yandex Advertising Network settings and enable the Connect Adfox option.
-
If you're going to use Yandex Mediation, add the required ad networks and set up mediation. In this case, Adfox will be enabled automatically.
-
In the Adfox interface, the app structure (site and placement) will appear automatically after you add an app in the Yandex Advertising Network. The created ad unit will be automatically linked to the placement.
-
Connect the app as a video resource. For the how-to guide and the app requirements, see InStream ads.
-
In the Adfox interface, add the app structure: site, section, placement.
- Site: This object represents a mobile app in Adfox terms.
- Section: Object within a site. Sections may be different depending on the operating system: iOS or Android.
- Placement: This object represents a specific ad placement in the app.
How to add a site, section, and placement for InStream ads in Adfox
-
Go to the tab Sites in the Adfox menu.
-
Click + Add and specify the site parameters:
- Site name: Required parameter, which can be the same as the name of your app.
- Site owner: The user who has access to site statistics. If the app is yours, and you're going to view the statistics yourself, you don't need to specify the owner. You can select the site owner later in the site parameters.
- Category: This parameter helps collect impression statistics across select app categories. To learn more about categories, see Adfox Help.
- If you're going to serve your ads in Russia and label them with Adfox tools, enable the Transfer the site to the ERIR option. Learn more about labeling in step 2 below.
-
Click Add. A window for adding a section opens.
-
Specify the section parameters:
- Name: Section name, such as “iOS”.
- Category: This parameter helps collect impression statistics across select app categories.
-
Click Add.
Note
If the “Dynamic definition by REFERER” module is enabled in the account, more boxes appear when adding a section. In this case, deselect “Dynamic definition by REFERER”.
-
A window for adding a placement opens. Specify the parameters:
-
Name: Placement name. We recommend specifying the placement location.
-
Category: This parameter helps collect impression statistics across select app categories.
-
Banner type: This parameter determines which ad format can be served on this placement. For InStream ads, choose one of the banner types:
- Pre-roll (App): The ad is served before a video starts playing.
- Mid-roll (App): The ad is served in the middle of a video.
- Post-roll (App): The ad is served after the video ends.
- Pause-roll (App): The ad is served when the video is paused.
-
Position: Determines the logical position of the placement on the section's pages. This parameter is optional.
-
-
Click Add.
-
Go to Monetization → Video advertising. Hover over the placement to which you want to link the Yandex Advertising Network ad unit and click the + icon.
-
When the window with a list of video resources opens, select the video resource created earlier in Step 1.
-
In the Yandex Advertising Network window that opens, add an InStream unit. The unit position must match the banner type on the placement.
-
Click Save.
Step 2. Enable ad labeling
You're required to submit labeling data for direct sales ads served in Russia, whether you're the direct advertiser or placing ads through an agency.
Adfox provides the functionality for managing ad campaigns, regardless of the advertising data operator you use for submitting data to the state register. Additionally, Adfox partners can register creatives automatically: directly in the Adfox interface while setting up their ad campaigns. In that case, the creative will be registered with the Yandex advertising data operator.
To label ads via the Adfox interface, follow the steps below:
-
Create contractors (advertising chain participants).
-
Specify information about the contract with the end advertiser.
-
Add labeling data to the site (app) structure in Adfox. In the site settings:
-
Go to the tab Sites in the Adfox menu.
-
Find and open the site with the required app.
-
Select Transfer the site to the ERIR in the site settings. This opens the Labeling section.
-
Fill in the fields:
- Placement type: Select App.
- Name: Enter the name of the site (this information will be used for ad labeling).
- Site URL: URL for downloading the app, starting with http:// or https://.
- Counterparty: The counterparty (app owner) you added in the Marking tab earlier.
-
For more information about ad labeling via the Adfox interface, see Adfox Help.
Step 3. Set up targeting (optional)
Targeting an ad banner means adjusting its impression settings to ensure that it's delivered to the right audience based on various parameters.
Requests to Adfox pass data for certain types of targeting by default. You can configure these parameters in the Targeting tab. To enable other types of targeting, implement passing parameters with values from your app, then enable targeting in the interface.
Choose parameters for targeting your ads:
-
Types of targeting available without additional setup
By timeYou can set up targeting:
-
By days of the week or hours.
-
By days of the month when you want to serve your ads.
Learn more in Help for Adfox.
By frequencyYou can limit the number of impressions and clicks per individual user. For example, don't show the banner more than twice a day or pause impressions if the user has already clicked on the link on the banner. Learn more in Help for Adfox.
By behaviorYou can tag users that you want to target by creating action tracking points and assigning them temporary categories. Learn more in Help for Adfox.
By demographicsTargeting by demographics is based on audience data on gender, age, and revenue collected with Crypta technology. You can enable one characteristic or combine values from multiple characteristics (for example, to target by both gender and age). Learn more in Help for Adfox.
By geographyYou can enable or disable banner impressions for specific countries, regions, cities, or manually selected areas on the map. This type of targeting uses the Yandex geobase. Learn more in Help for Adfox.
By Yandex Audience segmentsIn addition to data from Crypta and external providers (DMPs, Data Management Platforms), you can use your own data about users on your platforms to set up your campaigns. Learn more in Help for Adfox.
By device typeYou can differentiate the site's audience and show the most relevant ads. For example, you can choose to serve ads only to mobile and tablet users. Or vice versa, target only desktop users. Learn more in Help for Adfox.
By positionYou can specify the position of the placements where you want to serve your campaign's banners.
By IP addressYou can set banners to target IP addresses or ranges of IP addresses on the whitelist or disable impressions for blacklisted IPs. Learn more in Help for Adfox.
By operating systemYou can target your campaign by specific operating systems. Learn more in Help for Adfox.
By browserYou can set up targeting by browser. It's used, for example, to show ads for Opera, Safari, Google Chrome, and Mozilla to Internet Explorer users. Learn more in Help for Adfox.
-
-
Types of targeting that require passing values from the app in the request
Keyword targetingYou can use targeting by keywords in different ways. For example, you can insert relevant search queries into the ad tag or set up targeting by names and interests from your user database to define the target audience more accurately. To set up targeting, pass the parameters in the ad request to Adfox. Learn more in Help for Adfox.
Custom targetingYou can specify custom targeting values. For example, you can target only users with the test build or trigger banner impressions based on a specific internal metric.
To set up targeting, pass the parameters in the ad request to Adfox.
Steps for setting up additional targeting
-
Create a dictionary for a targeting characteristic. The dictionary should contain a list of values:
-
The key is passed to the ad tag in the app.
-
The value is included in the targeting settings and can be toggled.
In Adfox, you can add up to 63 custom dictionaries for your characteristics. Each dictionary can hold up to 10 000 values and can be updated with new key-value pairs as needed.
-
-
Upload the dictionary for any free additional targeting characteristic through the Adfox interface.
-
Implement passing the keys to the index of the characteristic for which you created the dictionary.
To learn how to implement passing values to the ad tag, see Ad targeting in Adfox.
Learn more in Help for Adfox.
Logical targetingYou can specify values for ad campaign impressions using the
AND/OR/NOTconditions. Logical targeting supports custom targeting. To set up targeting, pass the parameters in the ad request to Adfox. Learn more in Help for Adfox. -
Step 4. Integrate a unit into the app
Alert
If you previously integrated the Yandex Mobile Ads SDK, you don't need to do anything else.
Integrate the Yandex Mobile Ads SDK into the app and connect the ad unit. To learn more, see Yandex Mobile Ads SDK.
|
Direct SDK call |
Yandex Mediation |
To check whether you integrated your ads correctly, run test ads using demo ad units. After making sure that everything is correct, replace the demo ad units with the actual placement IDs.
| Demo ad unit | Android | iOS | Unity | Flutter | React Native |
|---|---|---|---|---|---|
| demo-banner-adfox-html | ![]() |
![]() |
![]() |
![]() |
![]() |
| demo-banner-adfox-image | ![]() |
![]() |
![]() |
![]() |
![]() |
| demo-interstitial-adfox-image | ![]() |
![]() |
![]() |
![]() |
![]() |
| demo-interstitial-adfox-html | ![]() |
![]() |
![]() |
![]() |
![]() |
| demo-native-adfox | ![]() |
![]() |
![]() |
![]() |
![]() |
Step 4.1 Integrate the main SDK
Alert
If you previously integrated the Yandex Mobile Ads SDK, you don't need to do anything else.
Integrate the Yandex Mobile Ads SDK into the app and connect the ad unit. To learn more, see Yandex Mobile Ads SDK.
Step 4.2 Integrate the player
1. Get PAGE_ID of the video resource in the Yandex Advertising Network (you don't need to specify AdUnit in full in R-M-page_id-block_id format).
2. Integrate the player following the instructions for Android | iOS.
In response to the ad request, the SDK will receive a VMAP for the specified PAGE_ID. Links to requests to the appropriate Adfox placement will be added to the adBreakType parameters associated with this placement (for example, Pre-roll).
If you specified a section of a video resource when creating a video unit, you also need to pass its ID in the CATEGORY_ID parameter.
To enable additional targetings or set up logical targeting or keyword targeting, pass the relevant parameters in the ad request to Adfox. For more information, see Yandex Mobile Ads SDK Help:
To collect separate statistics on cross sections in Adfox, pass the partner-stat-id parameter in the app. For more information, see Adfox Help.
Step 5. Set up and place an ad campaign in Adfox
-
Go to the Campaigns tab and press Create.
-
Select the campaign type depending on the display priority:
- Guarantee campaigns take priority over other campaigns and are used for guaranteed sales when the publisher has ad delivery obligations.
- Dynamic monetization campaigns have a lower serving priority than Guarantee campaigns. They compete for impressions along with the Yandex Advertising Network and other ad exchanges. The display order is determined by the CPM: the higher the CPM, the higher the chance of an impression.
- Promo campaigns have the lowest priority of the three. Such campaigns are usually used for custom promotion.
For more information about campaign types, see Adfox Help.
-
When you select a Dynamic monetization campaign, you'll see an additional External monetizer field — keep the Not set value.
-
Select a Campaign Profile. This is a set of predefined fields and values used to create a campaign and define its purpose.
Direct salesCarouselFor a regular campaign with a standard set of fields. It can be used with Guarantee, Dynamic monetization, and Promo campaigns.
For a Carousel master campaign where you upload a set of alternating slider banners from different campaigns served on the same placement. It can be used only with Guarantee campaigns.
For more information about campaign profiles, see Adfox Help.
-
Set the basic parameters of the ad campaign:
Name
Enter the ad campaign name.
Status
- Active (default value): The campaign is ready for serving. Impressions will start at the time specified in the campaign settings.
- Paused: The campaign isn't served but remains viewable in the main campaign list by default.
- Completed: The campaign isn't served and is hidden from the main campaign list by default. Ad campaigns completed more than three years ago are automatically archived and deleted from the Adfox interface.
You can change campaign statuses anytime after creating the campaign. However, if it's been 90 days or more since the campaign ended, you can't change its status to Active. In such cases, we recommend creating a new campaign with the same parameters.
Note
Impressions are automatically paused for active campaigns in the following cases:
- Campaigns were created and launched more than 6 months ago.
- Campaigns don't submit ad labeling data to the state register.
- Campaigns don't have any impression, click, download, or event statistics for the last 6 months.
The campaign status changes to Paused. You can reactivate it manually to resume impressions.
An advertiser
Select one from the list of advertisers previously created. For more information about advertisers, see Adfox Help.
Impression count method
Specify what counts as an ad campaign impression:
- Banner ad response.
- Impression (IMS): An impression is counted when ad rendering begins.
- Viewable impression (IMS): An impression is counted according to the criteria set out by international media standards, including the minimum percentage of pixels in the viewable area and the impression duration in the active browser tab.
- Viewable impression, Yandex (IMS): At least 50% of the banner area is in the active browser window for 2 seconds or more.
- Event N: An event triggered in the banner template (not applicable to in-app ads, use other methods instead).
For more information about impression count methods and viewability tracking, see Adfox Help.
General profile
If the account settings have a general profile saved, select it from the list. The placement and targeting settings from the profile will be applied to the campaign.
Session screenings (only for Guarantee campaigns)
Allows displaying multiple banners from the same campaign on a single page simultaneously. To enable session impressions, change the code type to session on page. To learn more, see Session impressions.
The advertiser can change banners
Enable this option to grant the advertiser permission to modify and add banners in this campaign.
Rotation method
For Guarantee and Promo campaigns:
-
Select a rotation method:
- By priority: Default value. The campaign's display order is determined by the set level and priority.
- By % of traffic: The campaign's impressions will take up the specified share of ad traffic. To enable this option, please contact customer support.
-
Specify the rotation settings:
- Level and priority: Determine how often the banners of this campaign are served compared to the banners of other campaigns. The first is the highest level.
- Percentage of traffic (only for campaigns using the traffic share rotation method): Specify the share of traffic to allocate for serving this campaign's impressions.
For a Dynamic monetization campaign, specify a CPM or CPC floor:
- CPM threshold, rub: The minimum cost per thousand banner impressions. The higher the threshold, the more likely this campaign's banners will be served compared to other campaigns at the same level.
- CPC threshold, rub: The cost per click on an ad banner for the campaigns involved in dynamic monetization. To enable this option, please contact customer support.
Impression and click running speed
- As fast as possible: Campaign banners are served at the maximum possible speed until the impression/click limits are reached (if any). The maximum running speed doesn't require that you specify any limits and start/end dates of the ad campaign.
- Spread evenly throughout the day: Impressions are evenly distributed throughout the day. Be sure to specify the daily impression limit (the recommended minimum limit is at least 500 impressions/clicks). The other parameters are optional.
- Spread evenly throughout the entire period: The campaign impressions are evenly distributed over the entire period based on the account data and system statistics. Be sure to specify the general impression limit (the recommended minimum limit is at least 500 impressions/clicks) and the end date for the ad campaign. The other parameters are optional.
- Spread evenly throughout the entire period (automatic prolongation): The campaign impressions are evenly distributed over the entire period based on the account data and system statistics. If the campaign doesn't run over its limit in the allocated time, it's automatically extended for one day and runs at maximum speed on that day. Be sure to specify the general impression limit and the end date for the ad campaign. The other parameters are optional.
Note
Depending on the running speed, there may be underdelivery or overdelivery of impressions. For more information about ad running speed, see Adfox Help.
Impressions total, day, hour
Specify the maximum number of banner impressions over the entire campaign period, per day, and per hour.
When the number of impressions reaches the number in Total, the campaign status will change to Completed, and the banners will no longer be served. When the number of impressions from the beginning of the day reaches the daily limit, serving banners is paused until the next day. When the number of impressions from the beginning of the hour reaches the hourly limit, banner serving is paused until the next hour.
Clicks total, per day, per hour
Specify the maximum number of banner clicks in the campaign.
When the number of clicks reaches the Clicks total value, the campaign status will change to Completed, and the banners will no longer be served. When the number of clicks from the beginning of the day reaches the daily limit, serving banners is paused until the next day. When the number of clicks from the beginning of the hour reaches the hourly limit, serving banners is paused until the next hour.
Campaign period
Specify the campaign date and time. By default, the current date is set. If you don't change it, banners start being displayed immediately after you add them.
Reserve end date
The date after which the booking campaign will change its status to Completed and will no longer be included in forecasts for other campaigns. For example, you can set the booking completion date if the customer hasn't paid for placement yet. For Guarantee campaigns only, when you intend to save the campaign as a booking.
Do not show the campaign to users who came from the specified pages (referrer template)
A direct click from particular pages pauses all banner impressions in this campaign. Specify the template of these pages.
-
Specify the labeling settings:
Submission to ad register
You're required to submit labeling data for direct sales ads served in Russia, whether you're the direct advertiser or placing ads through an agency.
Select what data to submit to the ad register:
- Advertising labeling: If you want to get a token and transfer data to the Russian state register via the Adfox interface and the Yandex advertising data operator.
- Do not submit data to state register: If at least one of the following is true:
- You don't have a direct contract with a counterparty for placing ads.
- Ads will be displayed outside of Russia.
- You place a token in a creative on your own and transfer data to the Russian state register via a different advertising data operator.
For more information about labeling ads, see Adfox Help.
Advertiser information
Specify the advertiser's legal name and details.
To display the advertiser information on the banner, enable the Show banner menu option in the banner settings. Click the
icon to open the banner menu with advertiser information. If the text is too long, it may be cropped and partially replaced with an ellipsis. Users can view and copy all the information by triple-clicking it. -
If necessary, you can enable sending campaign statistics by email. For more information about sending statistics, see Adfox Help.
-
Under Placements, select the ad placement (site, section, or placement for your app) and click Save. If you plan to save your campaign as a Booking, placement is required. For more information about campaign placement rules, see Adfox Help.
-
Set up targeting (if necessary). Targeting enables you to set up the display of ads for a specific audience depending on geography, device type, time, and other factors. You can also set up targeting at the placement level (sites, sections, or placements) or at the banner level. For more information about targeting, see the Adfox Help.
Step 6. Add banners
-
Prepare a creative according to the banner requirements.
-
In the Adfox interface, go to Banners in the campaign settings.
-
Click Create.
-
Select the banner type and template depending on the ad format.
Ad format (corresponds to the ad unit format in the Yandex Advertising Network interface)
Adfox banner type
Template
Banner
App Mobile Banner
Interstitial ads
App Mobile Interstitial
Native ads
App Mobile Native
InStream ads
Pre-roll (App)
Mid-roll (App)
Post-roll (App)
Pause-roll (App)
Linear-Ad (Pre / Mid / Post - Roll) VAST 4.0 Viewability
Wrapper
-
This opens the Settings tab with the following sections: General settings, Contents, Delivery settings, Ad label, Placement. Fill in the key fields. To learn more, see Banner requirements.
-
If necessary, set up tracking of banner placement in Adfox using pixels of third-party systems.

