Setting up an MMP
Setting up an MMP consists of 3 steps:
Step 1. Setting up data collection in the mobile app
If you have already used retargeting based on in-app events in other ad networks, you can skip this step.
Checklist for setting up events in the MMP:- Make sure that the MMP collects events you want to optimize your campaigns for or make retargeting for.
- Before launching smart banners, make sure that you collect the following events: product page viewed, product added to cart, product removed from cart, and product purchased. The events include the IDs of your products.
For the Maximum conversions strategy with the “Cost-revenue ratio” limit, make sure also to set a limit on revenue.
If you don't know how to check the event configuration, contact the app developer or your MMP support.
Data format for Text & Image ads and dynamic ads
All types of markup are supported: regular Events, ECommerce, and In-App purchases.
Data format for smart banners
ECommerce events markup is required. It's available for Android versions higher than 3.16.1 on and iOS versions higher than 3.12.0.
The following events are enough for smart banners to work:
showProductDetailsEvent
addCartItemEvent
removeCartItemEvent
purchaseEvent
Make sure to pass an SKU (product ID) in the ECommerceProduct class of each event. The other parameters are needed to populate the Ecommerce report.
Tracking openings
To make sure that AppMetrica can attribute conversions after clicks on universal or tracking links, set up tracking openings by deeplink.
In SDK version 4.0 and higher, tracking is automatic.
Requirements for the Maximum conversions strategy with a CRR limit
For conversions in this strategy, you can use ECommerce events or In-App purchase markup.
Data format for Text & Image ads and dynamic ads
Rich In-App Events are supported.
Data format for smart banners
The following Rich In-App Events are required:
- Product viewed:
af_content_view
. - Product added to cart:
af_add_to_cart
. - Product removed from cart:
remove_from_cart
. - Purchased:
af_purchase
.
Make sure to add the af_content_id
parameter used to pass the product ID to all the events.
For more information, see your MMP's documentation for implementing the event code.
Requirements for the Maximum conversions strategy with a CRR limit
You need to set up revenue collection in the af_revenue
parameter for in-app events. Instructions for developers:
Data format for Text & Image ads and dynamic ads
All Adjust events are supported.
Data format for smart banners
The format supports events with Partner Parameters (available in the Adjust SDK version 4.0 or higher) that expect offer_id
, which can either be a Product ID or a list of products in JSON format.
AdjustEvent event = new AdjustEvent("VIEWED_CONTENT");
event.addPartnerParameter("offer_id", "10001");
Adjust.trackEvent(event);
AdjustEvent event = new AdjustEvent("PURCHASED");
event.addPartnerParameter("offer_id", "[\"1234\",\"5678\"]");
Adjust.trackEvent(event);
If a product ID is used in event parameters, but its name differs from offer_id, then you don't need to make any edits to your app: you can edit this value when setting up event transmission to Yandex.Direct using Parameter Mapping.
Attribution using deeplink tracking
Adjust needs to support deeplink tracking so it can attribute conversions after clicking to an app. Instructions for developers:
Requirements for the Maximum conversions strategy with a CRR limit
You need to set up revenue collection in your in-app events. Instructions for developers:
Step 2. Setting up transmitting events
Set up transmitting in-app events from the MMP to Yandex Direct to use them for strategy optimization or as retargeting criteria.
For Text & Image ads and dynamic ads
Events are forwarded automatically: no additional settings needed at the MMP level. In the Yandex Direct dashboard, you need to select the events for collecting statistics on mobile app goals.
You can use optimization and retargeting for goals.
For smart banners
- In the app settings, in the Metrika tag binding field, specify the Yandex Metrica tag.
- The username must have access to the tag.
We recommend that you use the tag for the site where you have set up e-commerce: in this case, machine learning algorithms will include products viewed in the app for site users, and the other way round. This helps you increase the effectiveness of retargeting.
General setup rules
- Open the Integrated Partners section and select Yandex.Direct.
- Go to the Integration tab.
- Enable Activate partner.
- In the Yandex App ID field, specify the App ID that you obtained when adding your mobile app to Yandex.Direct.
- Enable In-app events postback to send events.
Select events and set up SDK Event Name > Partner Event Identifier mapping. Use the EVENT_1, EVENT_2, or EVENT_3 IDs if none of the presets suits you.
- Select Sending option: All media sources, including organic and Send revenue: Values & revenue to transmit revenue and event parameters.
Requirements for smart banners
In the Yandex Ecom Feed Counter ID field, specify the Yandex Metrica tag in 12345 format.
We recommend that you use the tag for the site where you have set up e-commerce: in this case, machine learning algorithms will include products viewed in the app for site users, and the other way round. This helps you increase the effectiveness of retargeting.
Select the events:
af_content_view
>VIEWED_CONTENT
(required).af_added_to_cart
>ADDED_TO_CART
(required);remove_from_cart
>REMOVED_FROM_CART
(recommended).af_purchase
>PURCHASED
(required).
- Select Sending option: All media sources, including organic and Send revenue: Values & revenue to transmit revenue and event parameters.
Select Send revenue: Values & revenue to transmit the revenue.
General setup rules
- Go to the app settings and open Partner Setup.
- Select.
- In the Yandex App ID field, specify the App ID that you obtained when adding your mobile app to Yandex.Direct.
- Enable In-App Revenue Forwarding, Parameter Forwarding, and Session Forwarding.
- Set up event transmission in Event Linking by selecting the appropriate name from the list. All settings are specified for iOS and Android separately.
Requirements for smart banners
In the Yandex Ecom Feed Counter field, specify the Yandex Metrica tag in 12345 format.
We recommend that you use the tag for the site where you have set up e-commerce: in this case, machine learning algorithms will include products viewed in the app for site users, and the other way round. This helps you increase the effectiveness of retargeting.
- In the Event Linking section, configure event transmission:
- Product viewed:
Viewed content
(required). - Product added to cart:
Added to cart
(required). - Product removed from cart:
Removed from cart
(recommended). - Purchased:
Purchased
(required).
If, in the event parameters, the Product ID isn't named
offer_id
, click Partner Parameter Mapping. In the FROM APP field, enter the parameter's name in the SDK, and in the TO PARTNER field, specify theoffer_id
.
Step 3. Setting up app links
Use universal links that will lead users to the app if already installed, or to the site if it isn't: this lets you increase the conversion rate for your campaigns.
If you can't or won't set up universal links for some reason, then you can use tracking links.
Setting up universal links
Universal links let you use the same feed for the site, in smart banners, and in dynamic ads.
- General rules for links
-
The app link must be suitable for counting conversions, that is:
- Lead to the app if the app is installed.
- Lead to the site if the app is not installed or the link is clicked on a computer.
- Let the MMP attribute conversions to clicks.
How to check whether universal links are set upUniversal links have the format of a regular link (for example,
avito.ru
) and are enabled on the site and in the app without the MMP's SDK. If the app is installed, paste the link to Telegram or Notes and click it. The app should open.If the app is not installed, you can check whether universal links are installed by uploading the following file to your site and replacing
example.ru
with your domain:A page with text should open or a text file will be downloaded.
How to set up universal linksInstructions for different platforms:
If you can't or won't set up universal links for some reason, then you can use tracking links. They include the MMP's domain (for example,
adj.st
,onelink.me
,redirect.appmetrica.com
), and they are created in the MMP. - Tracking parameters in universal links
-
For the conversion to be attributed to Yandex Direct once you click the universal link in the ad, the link must contain the required tracking parameters. For apps running AppMetrica or Adjust, these parameters are added to the advertising link in the same way and place as UTM tags for web traffic:
At the campaign level, under URL parameters: in Text & Image ads, dynamic ads, and smart banners.
Image ads.
At the ad group level, under URL tracking parameters, for dynamic ads and smart banners.
If you use AppsFlyer, enable cross-server click delivery at campaign setup.
Add the
referrer=reattribution%3D1
parameter to your campaigns.In smart banners and dynamic ads, you can add the parameter at the ad group level without making changes to the feed.
No other changes to the link are required. Clicks will be sent from Yandex.Direct to AppsFlyer using the server-to-server tracking method.
Cross-server click sending is enabled when you set up a campaign in Yandex.Direct. Start creating a campaign, select a goal for your mobile app. After that, a section will appear below on the page where you can enable sending clicks to your MMP.
Add the following parameters to the universal link:
adjust_ya_click_id={logid}
adjust_campaign={campaign_name}
adjust_t=abc_def
: enter the MMP's tracker token ID (this is the unique identification token automatically created for each tracker in Adjust). Replaceabc
in the case of Android anddef
in the case of iOS. Leave an underscore in the middle. If your app is multi-platform, specify a single MMP ID:adjust_t=abc
. You can use the theadjust_tracker
parameter instead ofadjust_t
.
Sample link:
https://example.ru/cars/new/group/bmw/3er/21398591-21398651?adjust_ya_click_id={logid}&adjust_t=abc_def&adjust_campaign={campaign_name}
Setting up tracking links
We recommend using universal links.
Be sure to update the feed in smart banners and dynamic ads when using tracking links. Make sure to replace links to products in it with tracking links.
- Check that the app supports Universal Links.
Create a Smart Link in the interface.
Sample settings for general rules for links used in the Web+App scenario:
- In the App Stores field, specify: Google Play, App Store, Fallback (for web).
- In the Target link field, set a template in the format
https://myshop.ru/{path}
, replacing{path}
with the path to a specific site page. - In the Deeplink field, set a template in the format
myshop://{path}
, replacing{path}
with the path to the specific site page.
Use an app-to-app link because it supports settings for universal links.
To set up UTM tags and other custom parameters, go to the Smart Link settings and follow the instructions.
Sample link:
https://0000000.redirect.appmetrica.yandex.com/cars/new/group/bmw/3er/21398591-21398651?appmetrica_tracking_id=00000000000000000&referrer=reattribution%3D1&click_id={LOGID}&campaign_id={campaign_id}&path=%2F%20cars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651
For more information, see Tracking links based on Universal Links.
Check the AppsFlyer Help to learn how to enable it.
Required parameters
pid=yandexdirect_int
clickid={logid}
is_retargeting=true
.
Optional parameters:
af_click_lookback
: The attribution window (between the click and opening the app). It's specified in days (for example, 14d). The default value (if you don't pass this parameter) is 7 days.af_reengagement_window
: The re-engagement window (between attribution and conversion). It's specified in days. The default value is 30 days.
To set up UTM tags and other custom parameters, go to the OneLink template settings.
Sample link:
https://example.onelink.me/AbcD?pid=yandexdirect_int&is_retargeting=true&clickid={logid}&c={campaign_name}&af_dp=autoru%3A%2F%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651%0A&af_web_dp=https%3A%2F%2Fauto.ru%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651%0A&af_ios_url=https%3A%2F%2Fauto.ru%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651%0A&af_android_url=https%3A%2F%2Fauto.ru%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651%0A
See also Tracking links based on Universal Links.
The Adjust documentation describes:
- How to set up Universal Links .
- How to create a tracking link.
Required parameters
- In the tracking link:
adj_ya_click_id={logid}
oradjust_ya_click_id={logid}
. - In the fallback URL inside the tracking link:
yclid={logid}
UTM tags are specified in the fallback URL.
Sample link:
https://sb00.adj.st/cars/new/group/bmw/3er/21398591-21398651?adjust_ya_click_id={logid}&adjust_t=abc_def&adjust_campaign={campaign_name}&adjust_deeplink=autoru%3A%2F%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651&adjust_redirect=https%3A%2F%2Fauto.ru%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651%3Fyclid%3D{logid}
See also Tracking links based on Universal Links.
- In the MMP settings, go to.
- Under Attribution, choose Re-engagement attribution.
- In the MMP settings, click the Reattribution tab.
Specify the indicators:
- Inactivity period: The time elapsed since the user last opened your app to qualify for attribution. This period is 7 days by default. Use 0 days to reattribute the last click.
- Reattribution window: The time period between the click and conversion, during which the conversion is attributed to the source. It's 7 days by default. For example, if a user clicked on a Yandex.Direct ad on Monday and bought your product on Friday, the purchase is attributed to Yandex.Direct.
Applies only to dynamic ads and smart banners.
Add a tracking link to the element including the product link. The link must redirect the user to a specific product (either on the site or in the app). For XML/YML feeds, follow the additional requirements.
Example of a tracking link in the feed:
<offer id="21398651" available="true">
<url>https://sb00.adj.st/cars/new/group/bmw/3er/21398591-21398651?adjust_ya_click_id={logid}
&adjust_t=abc_def&adjust_campaign={campaign_name}&adjust_deeplink=autoru%3A
%2F%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651&adjust_redirect= https%3A%
2F%2Fauto.ru%2Fcars%2Fnew%2Fgroup%2Fbmw%2F3er%2F21398591-21398651%3Fyclid%3D{logid}
</url>
...
</offer>
Re-attribution means re-engagement of an inactive user to the app or re-installation of the app as a result of retargeting. If this occurs during the re-attribution window, the re-attribution is counted for the retargeting source.
Configure re-attribution settings in the MMP if you use the mobile app goal in the strategy settings, that is, Optimize conversions or Target cost revenue ratio.
Retargeting attribution guide in the AppsFlyer documentation.
The re-engagement attribution settings are enabled separately for each app.
Reattribution tracking section in the Adjust documentation.