@hyext/types-ext-sdk-hy 4.2.6-beta.4 → 4.2.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +28 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -730,6 +730,12 @@ namespace ad {
|
|
|
730
730
|
* @returns 调用结果
|
|
731
731
|
*/
|
|
732
732
|
function showRewardedVideoAd(params: ShowRewardedVideoAdReq): Promise<ShowRewardedVideoAdRsp>;
|
|
733
|
+
/**
|
|
734
|
+
* 设置原生模板广告样式
|
|
735
|
+
* @param params - 传入参数
|
|
736
|
+
* @returns 调用结果
|
|
737
|
+
*/
|
|
738
|
+
function setCustomAdStyle(params: SetCustomAdStyleReq): Promise<SetCustomAdStyleRsp>;
|
|
733
739
|
}
|
|
734
740
|
|
|
735
741
|
/**
|
|
@@ -1355,6 +1361,28 @@ type ShowRewardedVideoAdRsp = {
|
|
|
1355
1361
|
errno: number;
|
|
1356
1362
|
};
|
|
1357
1363
|
|
|
1364
|
+
/**
|
|
1365
|
+
* 设置原生模板广告样式参数
|
|
1366
|
+
* @property customAdId - 原生模板广告组件id
|
|
1367
|
+
* @property style - 原生模板广告组件的样式
|
|
1368
|
+
*/
|
|
1369
|
+
type SetCustomAdStyleReq = {
|
|
1370
|
+
customAdId: string;
|
|
1371
|
+
style: CustomAdStyle;
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* 设置原生模板广告样式结果
|
|
1376
|
+
* @property errMsg - 错误信息,如果调用成功返回 ${apiName}:ok
|
|
1377
|
+
* @property errCode - 错误码,成功时为 0,失败时参考下面的错误码说明
|
|
1378
|
+
* @property errno - 错误码,成功时为 0,失败时参考下面的错误码说明
|
|
1379
|
+
*/
|
|
1380
|
+
type SetCustomAdStyleRsp = {
|
|
1381
|
+
errMsg: string;
|
|
1382
|
+
errCode: number;
|
|
1383
|
+
errno: number;
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1358
1386
|
/**
|
|
1359
1387
|
* 高级模块
|
|
1360
1388
|
*/
|