1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15import { RspBean } from './RspBean'; 16 17 18export class AdContentRsp extends RspBean { 19 /** 20 * 响应的错误码 21 */ 22 retcode?: number = -1; 23 24 /** 25 * 错误时的文本描述 26 */ 27 reason?: string = void 0; 28 29 /** 30 * 已经失效的素材id列表 31 */ 32 invalidcontentid?: Array<string> = void 0; 33 34 /** 35 * 已经失效的slogan id列表 36 */ 37 invalidSloganId?: Array<string> = void 0; 38 39 /* 40 * 因为fc超限,当天不再展示的素材id列表 41 */ 42 todayNoShowContentid?: Array<string> = void 0; 43 44 45 /** 46 * 服务器在广告响应中写入,后续的广告请求中客户端原样返回。例如服务器可以生成类似浏览器cookie用途的标识。在广告投放过程中可能会变化。 47 * 跟广告类型无关 48 */ 49 ppsStore?: string = void 0; 50 51 /** 52 * 所有形式的广告本地缓存文件共同占用的空间大小,单位为MB,默认值为100MB 53 */ 54 totalCacheSize?: number = 800; 55 56 /** 57 * 广告定时预下载的时间间隔,单位为分钟. 58 * 0:不定时预下载 59 * 大于0的值:只要应用在前台,就以指定的时间间隔定时预下载 60 */ 61 adPreloadInterval?: number = 0; 62 63 clientAdRequestId?: string = void 0; 64 65 66 /** 67 * DSP消耗时延,单位毫秒 68 */ 69 dspcost?: number = 0; 70 71 /** 72 * 华为DSP消耗时延,单位毫秒 73 */ 74 dsp1cost?: number = 0; 75 76 /** 77 * 服务下发各组件时延,格式是: 78 * AllServerCost,AllDspCost,AapCost,BapCost,IecCost,PoiCost,OnlyHwDsp,dsp1cost 79 * 单位是毫秒 80 */ 81 cost?: string = void 0; 82 83 realAppPkgName?: string = void 0; 84 85 appLanguage?: string = void 0; 86 87 appCountry?: string = void 0; 88 89 filterResultMap?: Map<string, number> = void 0; 90 91 adFilterDuration?: number = void 0; 92 93 /** 94 * 广告请求类型 95 */ 96 requestType?: number = 1; 97 98 apiVer?: number = void 0; 99 100 /*** 101 * SDK专用,用于传递服务端当前的版本 102 */ 103 trackVersion?: string = void 0; 104 105 testType?: string = void 0; 106 107}