AppsFlyer
Android:
If you want to create a deep link for your Android app, then you need to configure an OneLink template according to AppsFlyer documentation, you can check it here: https://support.appsflyer.com/hc/en-us/articles/207032246
Now let's look at a real example:
This is the link with standard parameters:
https://your_app_bundle/DDj6?af_siteid={macro_for_passing_site_id}&pid=publisher_id&c={macro_for_passing_campaign_name}&is_retargeting=true&af_click_lookback=7d&af_dp=your%3A%2F%2Fapp&af_reengagement_window=30d&af_inactivity_window=7d&clickid={seanceid}&cloudid={macro_for_passing_cloudid}&track_url={macro_for_passing_track_url}&idfa={macro_for_passing_idfa}&advertising_id={macro_for_passing_gaid}
In this case, you don't need to add any additional parameters. If your OneLink template configured correctly, the user will be redirected to Google Play to download the app if it is not already installed. If the user has already installed your app, he (she) will be prompted to open the app when he (she) clicks on the ad.
iOS:
If you want to create a deep link for your iOS app, then you need to configure an OneLink template according to AppsFlyer documentation, you can check it here: https://support.appsflyer.com/hc/en-us/articles/207032246. But in this case, you need to add &af_force_deeplink=true parameter to your link
Now let's look at a real example:
This is the link with standard parameters:
https://your_app_bundle/DDj6?af_siteid={macro_for_passing_site_id}&pid=publisher_id&c={macro_for_passing_campaign_name}&is_retargeting=true&af_click_lookback=7d&af_dp=your%3A%2F%2Fapp&af_reengagement_window=30d&af_inactivity_window=7d&clickid={seanceid}&cloudid={macro_for_passing_cloudid}&track_url={macro_for_passing_track_url}&idfa={macro_for_passing_idfa}&advertising_id={macro_for_passing_gaid}
This is the link with "af_force_deeplink=true" parameter:
https://your_app_bundle/DDj6?af_siteid={macro_for_passing_site_id}&pid=publisher_id&c={macro_for_passing_campaign_name}&is_retargeting=true&af_click_lookback=7d&af_dp=your%3A%2F%2Fapp&af_reengagement_window=30d&af_inactivity_window=7d&clickid={seanceid}&cloudid={macro_for_passing_cloudid}&track_url={macro_for_passing_track_url}&idfa={macro_for_passing_idfa}&advertising_id={macro_for_passing_gaid}&af_force_deeplink=true
In this case, the user will be redirected to AppStore to download the app if it is not already installed. If the user has already installed your app, he (she) will be prompted to open the app when he (she) clicks on the ad.