获取创意示例商品列表
全部接口
V1.1
loading
V1.1
loading
所属权限 | Ads Management |
请求地址 | creative_sample_products/get |
请求方法 | get |
全局参数
全局参数是指每一个接口都需要使用到的参数。详情参考,代码案例参考。
参数名称 | 参数类型 |
---|---|
access_token | 授权令牌,完成 OAuth 2.0 授权后获得,参考授权认证章节 |
timestamp |
当前的时间戳,单位为秒,允许客户端请求最大时间误差为 300 秒。 MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳 MarketingAPI 所使用的时区为 GMT+8,例如当时间戳为 1494840119 时,表示 2017-05-15 17:21:59 |
nonce | 随机字串标识,不超过 32 个字符,由调用方自行生成,需保证全局唯一性 |
fields | get 接口增加 fields 字段,用于指定返回参数的字段列表,为选填字段。fields 取值范围为 get 接口返回的 list 中的字段。如不填写,则根据默认值进行返回 |
请求参数
标有*的参数为必填项
名称 | 类型 | 描述 |
---|---|---|
account_id*
|
integer | 广告主 id,有操作权限的广告主 id |
product_catalog_id*
|
integer | 商品库 id |
product_outer_ids
|
array | 商品 id 列表 |
product_series_id
|
integer | 商品系列 id |
template_id
|
integer | 模板 id,查询可以被模板使用的示例商品 |
template_type
|
enum | 模板类型,传入模板 id 时,该值必填,[枚举详情] 枚举列表:{ IMAGE, VIDEO } |
image_id
|
int64 | 图片 id |
video_id
|
int64 | 视频 id |
product_fields
|
array | 商品字段列表,返回对应字段有值的商品列表,多字段之间取与的逻辑,即返回每个字段均存在的商品。 |
limit
|
integer | 返回的商品数量 默认值:10 |
请求示例
curl -G 'https://api.e.qq.com/v1.1/creative_sample_products/get?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'account_id=<ACCOUNT_ID>' \
-d 'product_outer_ids=[]' \
-d 'product_fields=[]'
应答字段
名称 | 类型 | 描述 |
---|---|---|
list
|
struct[] | 返回信息列表 |
product_catalog_id
|
integer | 商品库 id |
product_series_id
|
integer | 商品系列 id |
product_outer_id
|
string | 商品 id |
product_name
|
string | 商品名称 |
slogan
|
string | 商品 slogan |
product_short_name
|
string | 商品短名称 |
ad_brand_url
|
string | 商品 logo |
image_url
|
string | 商品主图 |
additional_image_url_1
|
string | 商品副图 1 |
advertisement_images
|
array | 商品投放图片 |
advertisement_landscape_images
|
array | 商品投放图片 |
advertisement_portrait_images
|
array | 商品投放图片 |
video_url
|
string | 商品主视频 |
ad_direct_videos
|
array | 商品投放视频 |
ad_direct_landscape_video
|
string | 商品横版投放视频 |
ad_direct_portrait_video
|
string | 商品竖版投放视频 |
应答示例
{
"code": 0,
"message": "",
"message_cn": "",
"data": {
"list": [
{
"advertisement_images": [],
"advertisement_landscape_images": [],
"advertisement_portrait_images": [],
"ad_direct_videos": []
}
]
}
}
可视化调试工具
问题仍未解决?
请前往腾讯广告反馈中心在线提交问题,我们的人工客服将为你服务