* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_CLOUD_ADS_INIT_DEFINE_H
#define OHOS_CLOUD_ADS_INIT_DEFINE_H
#include <string>
namespace OHOS {
namespace Cloud {
static const int32_t ADVERTISING_ID = 6104;
static const int32_t SEND_LOAD_AD_REQUEST_CODE = 1;
static const int32_t SEND_LOAD_MULTI_SOLTS_AD_REQUEST_CODE = 2;
static const int8_t CONNECT_TIME_OUT = 3;
static const int32_t USER_ID = -1;
static const int32_t IPC_SUCCESS = 200;
static const std::string DEPENDENCY_CONFIG_FILE_RELATIVE_PATH = "etc/advertising/ads_framework/ad_service_config.json";
static const std::string DEPENDENCY_CONFIG_FILE_EXT = "etc/advertising/ads_framework/ad_service_config_ext.json";
static const std::string AD_REQUEST_PARAM_ID = "adId";
static const std::string AD_REQUEST_PARAM_TYPE = "adType";
static const std::string AD_REQUEST_PARAM_COUNT = "adCount";
static const std::string AD_REQUEST_PARAM_WIDTH = "adWidth";
static const std::string AD_REQUEST_PARAM_HEIGHT = "adHeight";
static const std::string AD_REQUEST_PARAM_EXTRA = "adExtra";
static const std::string TAG_FOR_CHILD_PROTECTION = "tagForChildProtection";
static const std::string AD_CONTENT_CLASSIFICATION = "adContentClassification";
static const std::string NON_PERSONALIZED_AD = "nonPersonalizedAd";
static const std::string AD_OPTIONS_EXTRA = "optionsExtra";
static const std::string AD_DISPLAY_OPTIONS_DATA = "customData";
static const std::string AD_DISPLAY_OPTIONS_USER = "userId";
static const std::string AD_DISPLAY_OPTIONS_REMINDER = "useMobileDataReminder";
static const std::string AD_DISPLAY_OPTIONS_MUTE = "mute";
static const std::string AD_DISPLAY_OPTIONS_TYPE = "audioFocusType";
static const std::string AD_RESPONSE_AD_TYPE = "adType";
static const std::string AD_RESPONSE_REWARD_CONFIG = "rewardVerifyConfig";
static const std::string AD_RESPONSE_UNIQUE_ID = "uniqueId";
static const std::string AD_RESPONSE_REWARDED = "rewarded";
static const std::string AD_RESPONSE_SHOWN = "shown";
static const std::string AD_RESPONSE_CLICKED = "clicked";
static const std::string AD_DEFAULT_BUNDLE_NAME = "";
static const std::string AD_DEFAULT_ABILITY_NAME = "";
static const std::string AD_DEFAULT_SHOW_AD_ABILITY_NAME = "";
static const std::string AD_DISPLAY_OPTIONS = "AdDisplayOptions";
static const std::string FULL_SCREEN_SHOW_ONCE_KEY = "instanceKey";
static const std::string AD_ADVERTISMENT = "Advertisement";
static const std::string AD_BUNDLE_NAME = "bundleName";
static const std::string AD_UI_EXTENSION_TYPE_KEY = "ability.want.params.uiExtensionType";
static const std::string AD_UI_EXTENSION_TYPE_VALUE = "ads";
}
}
#endif