From 64127cdc6b96f84e4ccde58346636d424f6055eb Mon Sep 17 00:00:00 2001 From: yzw Date: Fri, 5 Sep 2025 08:43:33 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E9=80=89=E5=8F=82=E6=95=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yzw --- api/@ohos.advertising.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.advertising.d.ts b/api/@ohos.advertising.d.ts index 1bcd0e2fd7..465cfcf796 100644 --- a/api/@ohos.advertising.d.ts +++ b/api/@ohos.advertising.d.ts @@ -367,21 +367,21 @@ declare namespace advertising { /** * Ads status callback. * @param { string } status - The current ad status. The status contains onAdOpen,onAdClose,onAdReward,onAdClick,onVideoPlayBegin and onVideoPlayEnd. - * @param { Advertisement } ad - The ad which status is changed. - * @param { string } data - The data of current ad status. + * @param { Advertisement } [ad] - The ad which status is changed. + * @param { string } [data] - The data of current ad status. * @syscap SystemCapability.Advertising.Ads * @since 11 */ /** * Ads status callback. * @param { string } status - The current ad status. The status contains onAdOpen,onAdClose,onAdReward,onAdClick,onVideoPlayBegin and onVideoPlayEnd. - * @param { Advertisement } ad - The ad which status is changed. - * @param { string } data - The data of current ad status. + * @param { Advertisement } [ad] - The ad which status is changed. + * @param { string } [data] - The data of current ad status. * @syscap SystemCapability.Advertising.Ads * @atomicservice * @since 12 */ - onStatusChanged(status: string, ad: Advertisement, data: string); + onStatusChanged(status: string, ad?: Advertisement, data?: string); } /** @@ -482,7 +482,7 @@ declare namespace advertising { * Show the reward and interstitial ad. * @param { Advertisement } ad - Indicates the advertisement content information. ad is required. * @param { AdDisplayOptions } options - Indicates interaction option object use to show the ad. options is required. - * @param { common.UIAbilityContext } context - Indicates the ui ability context of the media application. + * @param { common.UIAbilityContext } [context] - Indicates the ui ability context of the media application. * @throws { BusinessError } 401 - Invalid input parameter. Possible causes: 1. Mandatory parameters are left unspecified. * @throws { BusinessError } 21800001 - System internal error. * @throws { BusinessError } 21800004 - Failed to display the ad. -- Gitee