Behavior
With targeting by behavior (or “Retargeting campaigns”), you can mark up the audience you'll later show ads to.
The audience is marked up by creating action points and assigning them temporary categories. Action points are links to a pixel that need to be called (by installing them on a site or in a banner) to mark up the audience.
Next, you set up the conditions for campaign impressions in the campaign for an audience, whether it's marked up for certain categories or not.
Step 1. Set up categories and action points
- Create a temporary category.
- Make sure that an advertiser has already been created in your account for a campaign with targeting by behavior, otherwise create an advertiser.
- Open the Action tracking points button next to the advertiser's name.tab. Click the
Click + Add and enter parameters for the action tracking point:
- ID: Assigned automatically.
- Name: Specify a name for the action point.
- Category: Select a temporary category you want to mark up users with.
Template type: Standard or POSIX.2. If you need to register the address of the page where the action point is located, select the form in which the template for the page address check will be recorded.
More details about template types- Referer template: If you leave this field empty, the action point will be tracked on any page. You can make a specific page template, but if the action point is embedded on pages that don't match this template, the action point won't work.
- Size: Characterizes the value of the page for the advertiser. For example, the size of the home page may be 1, and the size of the “thank you for your purchase” page may be 10. The size of the action point can be assigned arbitrarily, but it must be greater than or equal to 1. The recommended range of values is from 1 to 10. You don't need to set the size for targeting by behavior.
- Click Add.
Get the ad tag or a link to the action point.
On the Action tracking points tab, open Ad tag. If you want to set the action point for the entire site, copy the Yan loader code and Ad tag for the action point. To embed the action point in the banner, only copy the link to the action point.
Step 2. Create a campaign and banners
- Create a campaign, specify the placement of the campaign on the site where the behavior-targeted banner should be shown. We recommend creating a campaign with the same advertiser that you enabled action tracking points for.
- Create a banner that needs to be targeted by behavior.
Step 3. Set up targeting by behavior
- Go to thetab. Specify the logic of applying the conditions:
- <Any of the given conditions is true>. The ad will be served if at least one of the specified conditions is met.
- <All specified conditions are true>. The ad will be served if all the specified conditions are met at the same time.
- Set up to 9 targeting conditions. These conditions can be both affirmative (<visited pages in the category>) and negative (<not visited pages of category>).
- Specify the category. For an affirmative condition, you can specify additional conditions (the minimum number and duration of views in the category) for marked up users.
Examples of solutions
Go to the
tab. At the campaign or banner level, specify .Set
and select the created temporary category.Go to the
tab and set .Set
and select the created temporary category.Go to the
tab and set .Set
and select the created temporary category.- Make sure that there are two or more banners. Banners can belong to different campaigns.
Convert a link to the action tracking point. For example, you previously received a link in the format:
<img src="http://ads.adfox.ru/166283/tracePoint?p7=jlzo&p8=b" width="0" height="0" border="0" alt="">
Remove the
img
andamp;
tags from the link (if there are any in the link itself). The resulting link should be:https://ads.adfox.ru/166283/tracePoint?p7=jlzo&p8=b
Open banner No. 1, which should be displayed first. In the Tracking pixel link field of the banner parameters, insert the resulting link to the action tracking point.
Open banner No. 2, which should only be served to users who have seen banner No. 1. Go to the
tab at the banner level if both banners are in the same campaign. If the banners are in different campaigns, open the tab at the campaign level.Specify
.Set
and select the created temporary category.Go to the <All specified conditions are true> condition.
tab and choose the logic of interpreting theSet “1”.
and select category- Set “2”.and select category
- Click Change.
- Get a link to the action tracking point that the temporary category is associated with.
- Create banner No. 1. We recommend using templates with HTML5 in the name.
Open the parameters of the created banner and update them as follows:
There is an “a” tag in the codeAdd an
onclick="buttonClick()
function call to the HTML code.For example:
<a href="%request.reference_user1%" target="%banner.target%" onclick="buttonClick()">click</a>
Add the following script anywhere in the banner layout:
<script> var buttonClick = function() { (function() { var img = new Image(); img.src = 'LINK_TP&pr=%system.random%'; }()); } </script>
Where
LINK_TP
is replaced with an action tracking point link in the format:https://yandex.ru/ads/adfox/392990/tracePoint?p7=wtvn&p8=b
.There is a callClick() function call in the codeFind the
callClick
function in the banner's HTML code and add code with an action tracking point call to it.For example:
function callClick(n) { var img = new Image(); img.src = 'LINK_TP&pr=%system.random%'; var link = ( n ? flashVars.events[n] : flashVars.link ); window.open(flashVars.reference + "@" + flashVars.link, flashVars.target); }
Where
LINK_TP
is an action tracking point link in the format:https://yandex.ru/ads/adfox/392990/tracePoint?p7=wtvn&p8=b
.- Create banner No. 2, which should only be served to the who clicked on banner No. 1, and set up targeting by behavior only for users who visited the pages in the temporary category.
To make sure the system remembers users who have been to the site and serves specific ads to them, set up targeting by behavior:
To make sure the system remembers the users and serves specific ads to them, set up targeting by behavior:
For banner No. 1 (for users who visit the site for the first time):
For banner No. 2 (for users who have already visited the site), set the reverse condition:
To make sure the system remembers users who have seen banner No. 1 with a link to the action tracking point and serves them banner No. 2, set up targeting by behavior:
After you create two categories according to the instructions: one with an action tracking point for displaying the banner (category “1”) and the second one with a point for stopping its display (category “2”), set up targeting by behavior: