简体   繁体   English

使用Firebase动态链接显示插页式广告

[英]Showing an interstitial with Firebase Dynamic Links

On the official page for Firebase Dynamic links ( https://firebase.google.com/docs/dynamic-links/ ) there is a mention of showing an interstitial if the app is not installed: https://youtu.be/LvY1JMcrPF8?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL&t=87 在Firebase动态链接的官方页面( https://firebase.google.com/docs/dynamic-links/ )上,如果未安装该应用程序,则会显示插页式广告: https : //youtu.be/LvY1JMcrPF8 ?list = PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL&t = 87

Dynamic Links work seamlessly across iOS, Android, and desktop and mobile web. 动态链接可跨iOS,Android,台式机和移动网络无缝运行。 Dynamic Links can be configured to provide the best possible user experience, whether that's a personalized app launch, a fast interstitial, or opening your mobile website. 可以将动态链接配置​​为提供最佳的用户体验,无论是个性化应用程序启动,快速插页式广告还是打开您的移动网站。

How can you do that? 你该怎么做?

This is not a feature Firebase provides out-of-the-box. 这不是Firebase开箱即用的功能。

Here are the steps you would need to implement it: 这是实现它所需的步骤:

  1. Generate a Dynamic Link and set the ifl link param to a URL on your website. 生成动态链接并将ifl链接参数设置为您网站上的URL。
  2. Build a custom interstitial and host it at the URL you used in the ifl param. 构建自定义的非页内广告并将其托管在ifl参数中使用的URL上。
  3. Within that interstitial, insert a second Dynamic Link with an ifl param pointed to the App Store 在该插页式广告中,插入第二条动态链接,其ifl参数指向App Store
    • This step should not be necessary because the Firebase docs state that users without the app should be automatically forwarded to the App Store by default, but I have never seen this actually happen — users without the app are always taken to the URL in the link param in my testing). 无需执行此步骤,因为Firebase文档指出默认情况下应将没有应用程序的用户自动转发到App Store,但我从未见过这种情况的发生–没有应用程序的用户总是被带到link参数中的URL在我的测试中)。
    • If you set a link param on this second link, it will overwrite the value from the initial link. 如果在第二个链接上设置了link参数,它将覆盖初始链接中的值。 You need to either leave link blank, or pass it through. 您需要将link保留为空白,或者将其传递通过。

Alternative 另类

If you don't want to deal with this, you should check out Branch.io (full disclosure: I'm on the Branch team). 如果您不想处理此问题,则应查看Branch.io (完整披露:我在Branch团队中)。 The Branch Journeys feature does exactly this for your own website, and the Deepviews feature provides the same thing if you don't have a website and don't want to set one up. Branch Journeys功能完全可以为您自己的网站完成此操作,而Deepviews功能可以在您没有网站且不想建立网站的情况下提供相同的功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM