获取可用的推广内容资产属性
所属权限 | ads_management,ads_insights |
请求地址 | marketing_target_asset_properties/get |
请求方法 | GET |
全局参数
全局参数是指每一个接口都需要使用到的参数。详情参考,代码案例参考。
参数名称 | 参数类型 |
---|---|
access_token | 授权令牌,完成 OAuth 2.0 授权后获得,参考授权认证章节 |
timestamp |
当前的时间戳,单位为秒,允许客户端请求最大时间误差为 300 秒。 MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳 MarketingAPI 所使用的时区为 GMT+8,例如当时间戳为 1494840119 时,表示 2017-05-15 17:21:59 |
nonce | 随机字串标识,不超过 32 个字符,由调用方自行生成,需保证全局唯一性 |
请求参数
标有*的参数为必填项
名称 | 类型 | 描述 |
---|---|---|
organization_id*
|
integer | 业务单元 id 最小值 0,最大值 9999999999 |
marketing_target_type*
|
enum | 推广内容资产类型,[枚举详情] 可选值:{ MARKETING_TARGET_TYPE_FRANCHISE_BRAND, MARKETING_TARGET_TYPE_ENTERPRISE_SERVICES, MARKETING_TARGET_TYPE_REAL_ESTATE, MARKETING_TARGET_TYPE_LIVE_STREAM_ROOM, MARKETING_TARGET_TYPE_PERSONAL_STORE, MARKETING_TARGET_TYPE_AUDIOVISUAL_ENTERTAINMENT, MARKETING_TARGET_TYPE_PLATFORM_CHANNEL, MARKETING_TARGET_TYPE_STORE, MARKETING_TARGET_TYPE_FINANCE, MARKETING_TARGET_TYPE_TOURIST_ATTRACTIONS_TICKETS, MARKETING_TARGET_TYPE_TOURIST_TRAVEL_ROUTE, MARKETING_TARGET_TYPE_TOURIST_CRUISE_LINE, MARKETING_TARGET_TYPE_TOURIST_HOTEL_SERVICE, MARKETING_TARGET_TYPE_TOURIST_AIRLINE_TICKETS, MARKETING_TARGET_TYPE_ACTIVITY, MARKETING_TARGET_TYPE_CATERING_AND_LEISURE, MARKETING_TARGET_TYPE_CHAIN_RESTAURANT, MARKETING_TARGET_TYPE_PRODUCT, MARKETING_TARGET_TYPE_TELECOMMUNICATIONS_OPERATOR, MARKETING_TARGET_TYPE_RENOVATION_SERVICES, MARKETING_TARGET_TYPE_FURNITURE_AND_BUILDING_MATERIALS, MARKETING_TARGET_TYPE_BEAUTY_AND_PERSONAL_CARE, MARKETING_TARGET_TYPE_WEDDING_AND_PORTRAIT_PHOTOGRAPHY, MARKETING_TARGET_TYPE_COMPREHENSIVE_HOUSEKEEPING } |
marketing_asset_type
|
enum | 产品类型,[枚举详情] 可选值:{ MARKETING_ASSET_TYPE_FINANCE_LOAN, MARKETING_ASSET_TYPE_FINANCE_INSURANCE_A, MARKETING_ASSET_TYPE_FINANCE_INSURANCE_C, MARKETING_ASSET_TYPE_FINANCE_BANK_CARD_A, MARKETING_ASSET_TYPE_FINANCE_BANK_CARD_C, MARKETING_ASSET_TYPE_FINANCE_WEALTH, MARKETING_ASSET_TYPE_FINANCE_OTHER, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_RINGTONE, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_MEMBERSHIP_BENEFIT_PACKAGE, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_DATA_PACK, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_NUMBER_CARD, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_BROADBAND, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_NICE_MEMBER_DEAL, MARKETING_ASSET_TYPE_TELECOMMUNICATIONS_OPERATOR_OTHER, MARKETING_ASSET_TYPE_RENOVATION_SERVICES_SERVICE, MARKETING_ASSET_TYPE_RENOVATION_SERVICES_BRAND, MARKETING_ASSET_TYPE_FURNITURE_AND_BUILDING_MATERIALS_PRODUCT, MARKETING_ASSET_TYPE_FURNITURE_AND_BUILDING_MATERIALS_BRAND, MARKETING_ASSET_TYPE_TRAFFIC_CAR_BRAND, MARKETING_ASSET_TYPE_TRAFFIC_CAR_SERIES, MARKETING_ASSET_TYPE_TRAFFIC_CAR_MODEL, MARKETING_ASSET_TYPE_REAL_ESTATE_BRAND, MARKETING_ASSET_TYPE_REAL_ESTATE_REAL_ESTATE, MARKETING_ASSET_TYPE_REAL_ESTATE_LAYOUT, MARKETING_ASSET_TYPE_TOURIST_ATTRACTIONS_TICKETS_ATTRACTION, MARKETING_ASSET_TYPE_TOURIST_ATTRACTIONS_TICKETS_TICKET_PACKAGE, MARKETING_ASSET_TYPE_TOURIST_TRAVEL_ROUTE_BRAND, MARKETING_ASSET_TYPE_TOURIST_TRAVEL_ROUTE_FREE, MARKETING_ASSET_TYPE_TOURIST_TRAVEL_TRAVEL_ROUTE, MARKETING_ASSET_TYPE_TOURIST_CRUISE_LINE_CRUISE_BRAND, MARKETING_ASSET_TYPE_TOURIST_CRUISE_LINE_CRUISE_NAME, MARKETING_ASSET_TYPE_TOURIST_HOTEL_SERVICE_BRAND, MARKETING_ASSET_TYPE_TOURIST_HOTEL_SERVICE_SERVICE, MARKETING_ASSET_TYPE_TOURIST_AIRLINE_TICKETS_AIRLINE, MARKETING_ASSET_TYPE_TOURIST_AIRLINE_TICKETS_TICKETS } |
marketing_asset_category
|
string | 推广内容资产类目,类目之间通过-连接 字段长度最大 128 字节 |
请求示例
curl -v -G 'https://api.e.qq.com/v3.0/marketing_target_asset_properties/get?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'organization_id=23919277' \
-d 'marketing_target_type=MARKETING_TARGET_TYPE_PERSONAL_STORE'
应答字段
名称 | 类型 | 描述 |
---|---|---|
list
|
struct[] | 资产属性列表 |
property_name
|
enum | 属性名称,[枚举详情] |
property_cn
|
string | 属性中文名 |
is_multiple
|
boolean | 是否多选 |
is_required
|
boolean | 是否必填 |
property_class
|
enum | 属性类型,营销对象属性、唯一属性、附加属性,[枚举详情] |
property_type
|
string | 属性值类型,ATTRIBUTE_TYPE_ENUM 枚举、ATTRIBUTE_TYPE_INPUT 自定义输入、ATTRIBUTE_TYPE_CUSTOM_PRICE 级联自定义,举例:先选有或无,选有,再输入价格、ATTRIBUTE_TYPE_CASCADE 级联枚举,举例:先选是否有值,选是,再从 children 中选择枚举值; ATTRIBUTE_TYPE_TREE 全国省市地域树形结构; ATTRIBUTE_TYPE_CATEGORY 类目树形结构; ATTRIBUTE_TYPE_SPU spuID 类型; ATTRIBUTE_TYPE_WEB_CUSTOM 自定义落地页类型; ATTRIBUTE_TYPE_RANGE 区间类型 |
property_value
|
string[] | 属性值 |
应答示例
{
"code": 0,
"message": "",
"message_cn": "",
"data": {
"list": [
{
"is_required": true,
"property_type": "ATTRIBUTE_TYPE_ENUM",
"property_class": "MARKETING_ASSET_ATTR_CLASS_MARKETING",
"property_value": [
"深圳市腾讯计算机系统有限公司"
],
"is_multiple": false,
"property_cn": "公司主体",
"property_name": "PROMOTED_ASSET_ATTR_KEY_PERSONAL_STORE_COMPANY_ENTITY"
}
]
}
}
场景组合示例
枚举值会自动根据已选条件变化,只展示有示例数据的枚举值
可视化调试工具
问题仍未解决?
请前往腾讯广告反馈中心在线提交问题,我们的人工客服将为你服务