目录

AdsAppButton

Overview

App download component for native ads.

Parameters

Parameter

Type

Description

size

String

Size of the download button.

  • large
  • normal
  • small

Default value: normal

round

boolean

Indicates whether the download button has rounded corners.

  • true: yes.
  • false: no.

Default value: false

width

number

Width of the download button, in pixels.

height

number

Height of the download button, in pixels.

Events

Event

Description

Usage

Description

appOpen

Triggered when a user opens the advertised app.

adsAppButton.addEventListener('appOpen', callback)

Parameters in callback: event:CustomEvent,event.detail:App package name