文档中心 > API类目 > 阿里妈妈广告中心API

alibaba.alimama.alimamacc.isv.sucai.query (查询素材)

阿里妈妈创意中心素材上阿里妈妈创意中心素材查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
type Number 必须 0 素材类型
name String 可选 name 素材名称
page Number 必须 1 分页
per_page Number 必须 30 分页个数
size String 可选 123x333 尺寸,x 分隔
id Number 可选 123456 素材id
ratio String 可选 1280/700 比例,支持格式 1280/700 或 1
tag_ids String 可选 1234,22234,3432 tagId,多个tagId 使用英文逗号分隔
source Number 可选 0 素材来源 0 表示用户本地上传,
biz_code String 必须 universalBP 业务标识
member_id String 可选 123123 叉乘账号memberId

响应参数

名称 类型 示例值 描述
ok Boolean true 是否成功
result ResultDto {} {}
  • └ total
  • Number
  • 1
  • 总数
  • list
  • ItemDto []
  • 数组
  • └ id
  • Number
  • 1
  • id
  • └ name
  • String
  • 名称
  • name
  • └ width
  • Number
  • 513
  • 宽度
  • └ height
  • Number
  • 750
  • 高度
  • └ url
  • String
  • https://img.alicdn.com/i2/2212878705272/O1CN01c000iM1oocoCCSCe1_!!2212878705272.jpg
  • 链接
  • └ duration
  • Number
  • 100
  • 视频时长,单位秒
  • └ poster
  • String
  • https://img.alicdn.com/i2/2212878705272/O1CN01c000iM1oocoCCSCe1_!!2212878705272.jpg
  • 视频封面
  • └ tb_video_id
  • Number
  • 3333333
  • 淘宝视频id
  • └ type
  • Number
  • 0
  • 0 图片,3 视频
  • └ created_at
  • Date
  • 2022
  • 创建时间
  • └ updated_at
  • Date
  • 2022-01-01
  • 更新时间
  • └ length
  • Number
  • 1024
  • 文件长度
  • └ file_type
  • String
  • mp4
  • 文件格式
  • tags
  • UserTagDto []
  • 标签
  • └ tag_id
  • Number
  • 123
  • 用户自定义标签的 id
  • └ tag_name
  • String
  • 一个分类
  • 自定义标签分类
  • └ updated_at
  • Date
  • 2023-09-09
  • 标签添加时间
  • └ tb_image_url
  • String
  • ''
  • tb imageurl
message String 错误信息 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlimamaAlimamaccIsvSucaiQueryRequest req = new AlibabaAlimamaAlimamaccIsvSucaiQueryRequest();
req.setType(0L);
req.setName("name");
req.setPage(1L);
req.setPerPage(30L);
req.setSize("123x333");
req.setId(123456L);
req.setRatio("1280/700");
req.setTagIds("1234,22234,3432");
req.setSource(0L);
req.setBizCode("universalBP");
req.setMemberId("123123");
AlibabaAlimamaAlimamaccIsvSucaiQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alimama_alimamacc_isv_sucai_query_response>
    <ok>true</ok>
    <result>
        <total>1</total>
        <list>
            <item_dto>
                <id>1</id>
                <name>名称</name>
                <width>513</width>
                <height>750</height>
                <url>https://img.alicdn.com/i2/2212878705272/O1CN01c000iM1oocoCCSCe1_!!2212878705272.jpg</url>
                <duration>100</duration>
                <poster>https://img.alicdn.com/i2/2212878705272/O1CN01c000iM1oocoCCSCe1_!!2212878705272.jpg</poster>
                <tb_video_id>3333333</tb_video_id>
                <type>0</type>
                <created_at>2022</created_at>
                <updated_at>2022-01-01</updated_at>
                <length>1024</length>
                <file_type>mp4</file_type>
                <tags>
                    <user_tag_dto>
                        <tag_id>123</tag_id>
                        <tag_name>一个分类</tag_name>
                        <updated_at>2023-09-09</updated_at>
                    </user_tag_dto>
                </tags>
                <tb_image_url>&apos;&apos;</tb_image_url>
            </item_dto>
        </list>
    </result>
    <message>错误信息</message>
</alibaba_alimama_alimamacc_isv_sucai_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部