Creating search blocks
Ad blocks for search results can be placed on search platforms (for more information see creating and customizing platforms).
Search blocks that contain advertising linked to a user's search query context can be placed on search platforms (for more information see creating and customizing platforms).
It is prohibited to insert search code that sends manually defined search queries on theme-based pages (that do not display search results). This may lead to the partner's account being blocked.
The visual code designer is used to create ad blocks in the Advertising Network interface. The code designer lets you specify the desired format, select the appearance of your ad block and configure it to match the design of your site.
To create a new premium placement or Yandex.Direct search block, go to the list of search blocks (Add special placement block or Add Yandex.Direct search block.or ). Click
Select a platform from the list to place your block and specify the block name in the form that opens on the General tab.
Specify the maximum number of ads on the Formats tab:
- For premium placement block: 1–3;
- For Yandex.Direct search block: 1–9 (if a block is placed under the search results, it should contain at least 4 ads).
A unique ID will be assigned to the block after it is saved, and the block will be displayed in the list of Yandex.Direct blocks. A block ID (
ID) consists of a product ID (
D-A), platform ID (
page_id) and the block's serial number.
To correctly transfer a user search query to Yandex and obtain ads related to the query, specify the following variables in the block code:
search_textrefers to the user's search query;
search_page_numberrefers to the search results page number.
Specify a variable/function/script (depending on the search solution used) in the
search_text variable value. Sending pre-set search queries is prohibited.
If you want to create another block with the same settings, click Duplicate. The new block will be displayed in the list of search blocks.
To edit added blocks, go to the list of search blocks (Edit.or ). Find the block you need and click