目录

Ad Redirection

Introduction

In mobile app or web development, ad redirection is a common business model. It guides users to tap an ad and redirects them to the target page (such as the app download page, product details page, or activity page) to monetize traffic or promote products.

Typical scenario: For example, a video app serves as the ad carrier. After a user taps a product ad in a splash ad, the system automatically redirects the user to the product details page of the app store. This improves the ad conversion rate and optimizes user experience.

This document focuses on the development of the ad target (for example, HUAWEI Store app) and describes how HUAWEI Store uses App Linking to efficiently open the product page from an external ad carrier (for example, Video app) and optimize various links such as those for uninstalled apps and delayed redirection, thereby achieving a complete ad monetization closed loop.

How to Implement

The ad redirection link involves two apps:

The redirection process is based on the App Linking capability and can be classified into the following scenarios:

  1. The HUAWEI Store app has been installed.

    When a user taps a product on the ad page of the Video app, the system directly launches HUAWEI Store through App Linking and redirects the user to the specified product details page.

  2. HUAWEI Store is not installed, and the function of direct access to AppGallery has been configured.

    After a user taps the ad, the system automatically redirects the user to the details page of the app on AppGallery. After the user downloads and installs the app, the user can directly access the product page through the deferred link when opening the app for the first time.

  3. HUAWEI Store is not installed, and the function of direct access to AppGallery is not configured.

    After a user taps the ad, the system opens the web page (product details page) of HUAWEI Store. The user can directly browse the page or follow the instructions on the page to download and install HUAWEI Store. If the user installs the app later, the original redirection intent can still be retained to directly access the product page.

Development Procedure

  1. Configure App Linking.

    • In AppGallery Connect, enable App Linking for the HUAWEI Store app and correctly configure the deep link and parameters of the product details page.
    • Ensure that all pages that need to be redirected from the ad carrier (such as Video app) can be located through the unique link of App Linking.
  2. Develop the product details web page.

    • Implement the product details web page to ensure that the same product information can be displayed when a user taps the redirection link and the app is not installed.
    • On the web page, you can provide buttons such as "Open HUAWEI Store" and "Download HUAWEI Store" to enhance the user conversion rate.
    • Complete the deployment and configuration by referring to Web Page Development and Deployment.

    If the ad carrier (for example, Video app) wants to directly open the product details web page of HUAWEI Store in its own app, set the appLinkingOnly parameter to true when calling the openLink() API. In this way, when the HUAWEI Store app cannot be launched, the system does not automatically redirect to the web page in the browser. Instead, the result is returned through the failure callback.

    The ad provider (for example, Video app) can handle exceptions in the callback, for example, manually redirecting users to the product details page of HUAWEI Store, to implement more flexible redirection control.

  3. (Optional) Configure the capability of direct access to AppGallery.

    • If you want users to preferentially install the HUAWEI Store app to obtain a complete experience, you are advised to enable the capability of direct access to AppGallery during App Linking configuration.
    • When a user taps the ad, if HUAWEI Store is not installed, the user will be directly redirected to the app details page on AppGallery without being redirected to the web page.
  4. Implement the deferred link capability.

    • Configure and implement the deferred link capability.
    • After a user downloads and installs HUAWEI Store through the ad link, the app can automatically redirect the user to the specified product page when the app is opened for the first time, ensuring complete conversion of ad traffic.
  5. Provide standard App Linking links to the ad carrier (for example, Video app).

    Provide the App Linking link of each product to the ad carrier (for example, Video app). After a user taps the ad, the openLink() API is called to implement redirection.