文档中心 > API类目 > 阿里妈妈-UniDesk

taobao.unidesk.rta.ad.creativegroup.get (UD创意组查询接口)

UD创意组查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
creative_group_top_query_dto CreativeGroupTopQueryDTO 必须 查询入参
  • └ adgroup_id
  • Number
  • 必须
  • 1
  • 广告主id
  • └ advertiser_id
  • Number
  • 必须
  • 1
  • 计划id

响应参数

名称 类型 示例值 描述
result CreativeGroupTopDTO 出参
  • creatives
  • CreativeTopDTO []
  • 创意内容
  • └ format
  • Number
  • 1
  • 广告形式,1:竖版视频,2:横版视频,3:大图横图,5:小图,6:大图竖图,7:开屏图片,8:开屏视频。竖版视频:格式要求:mp4、mpeg、3gp、avi 视频格式,建议尺寸要求:宽高比9:16,分辨率≥ 720*1280,视频码率≥516kbps,时长≥4s; 竖版视频-视频封面:格式要求:jpg、jpeg、png 图片格式,尺寸要求:宽高比9:16,1440*2560 ≤ 尺寸≥ 720*1280; 横版视频:格式要求:mp4、mpeg、3gp、avi 视频格式,建议尺寸要求:宽高比16:9,分辨率≥ 1280*720,视频码率≥516kbps,时长≥4s,大小≤1000M; 横版视频-视频封面:格式要求:jpg、jpeg、png 图片格式,尺寸要求:宽高比16:9,2560*1440 ≤ 尺寸≥ 1280*720; 大图横图:格式要求:jpg、jpeg、png 图片格式,尺寸要求:宽高比16:9,2560*1440 ≤ 尺寸≥ 1280*720; 组图:格式要求:jpg、jpeg、png 图片格式,尺寸要求:宽高比1.52,1368*900 ≤ 尺寸≥ 456*300; 小图:格式要求:jpg、jpeg、png 图片格式,尺寸要求:宽高比1.52,1368*900 ≤ 尺寸≥ 456*300; 大图竖图:格式要求:jpg、jpeg、png 图片格式,尺寸要求:宽高比9:16,1440*2560 ≤ 尺寸≥ 720*1280;
  • └ img_ids
  • String []
  • 图片素材id列表(组图存在多个)
  • └ video_id
  • String
  • 1
  • 视频素材id
  • └ video_cover_img_id
  • String
  • 1
  • 视频素材封面id。注:通过UDBP生成的自动封面不会返回封面ID,可先通过素材查询接口获取poster值(视频首帧图URL),再通过素材上传接口上传即可获得该视频的自动封面ID。
  • toutiao
  • ToutiaoCreativeTopDTO
  • 头条特有属性
  • └ creative_component_id
  • Number
  • 1
  • 创意组件id
  • └ promotion_card_creative_component_id
  • Number
  • 1
  • 基础组件id
  • └ action_text
  • String
  • 行动号召文本
  • 行动号召文本
  • └ tags
  • String []
  • 创意标签
  • └ title
  • String
  • 创意标题
  • 创意标题
  • └ video_ids
  • String []
  • 视频素材id列表,多视频自定义创意时使用,如快手
  • └ id
  • Number
  • 1
  • 创意id
  • toutiao
  • ToutiaoCreativeGroupTopDTO
  • 头条特有属性
  • └ creative_component_id
  • Number
  • 1
  • 创意组件id
  • └ auto_gen_video_switch
  • Number
  • 1
  • 是否自动生成视频素材功能,1是,0否
  • └ ad_source
  • String
  • 1
  • 广告来源
  • └ promotion_card_creative_component_id
  • Number
  • 1
  • 基础组件id
  • └ derive_switch
  • Number
  • 1
  • 是否开启衍生创意功能,1是,0否
  • └ comment_switch
  • Number
  • 1
  • 是否开启评论功能,1是,0否
  • └ action_text
  • String
  • 行动号召文本
  • 行动号召文本
  • └ titles
  • String []
  • 1
  • 创意标题
  • └ tags
  • String []
  • 1
  • 创意标签
  • └ category
  • Number
  • 1
  • 创意分类
  • └ creative_group_type
  • Number
  • 1
  • 创意分类:1:程序化创意,2:自定义创意
  • kuaishou
  • KuaishouCreativeGroupTopDTO
  • 快手特有参数
  • └ sticker_styles
  • String []
  • 封面贴纸
  • └ sticker_titles
  • String []
  • 封面广告语
  • └ creative_component_id
  • Number
  • 1
  • 创意组件,投放范围是快手默认时必填
  • └ name
  • String
  • 创意名称
  • 创意名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UnideskRtaAdCreativegroupGetRequest req = new UnideskRtaAdCreativegroupGetRequest();
UnideskRtaAdCreativegroupGetRequest.CreativeGroupTopQueryDTO obj1 = new UnideskRtaAdCreativegroupGetRequest.CreativeGroupTopQueryDTO();
obj1.setAdgroupId(1L);
obj1.setAdvertiserId(1L);
req.setCreativeGroupTopQueryDto(obj1);
UnideskRtaAdCreativegroupGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<unidesk_rta_ad_creativegroup_get_response>
    <result>
        <creatives>
            <creative_top_d_t_o>
                <format>1</format>
                <video_id>1</video_id>
                <video_cover_img_id>1</video_cover_img_id>
                <toutiao>
                    <creative_component_id>1</creative_component_id>
                    <promotion_card_creative_component_id>1</promotion_card_creative_component_id>
                </toutiao>
                <action_text>行动号召文本</action_text>
                <title>创意标题</title>
                <id>1</id>
            </creative_top_d_t_o>
        </creatives>
        <toutiao>
            <creative_component_id>1</creative_component_id>
            <auto_gen_video_switch>1</auto_gen_video_switch>
            <ad_source>1</ad_source>
            <promotion_card_creative_component_id>1</promotion_card_creative_component_id>
            <derive_switch>1</derive_switch>
            <comment_switch>1</comment_switch>
        </toutiao>
        <action_text>行动号召文本</action_text>
        <titles>
            <string>1</string>
        </titles>
        <tags>
            <string>1</string>
        </tags>
        <category>1</category>
        <creative_group_type>1</creative_group_type>
        <kuaishou>
            <creative_component_id>1</creative_component_id>
            <name>创意名称</name>
        </kuaishou>
    </result>
</unidesk_rta_ad_creativegroup_get_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

返回
顶部