TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UsergrowthAdMaterialAuditRequest req = new UsergrowthAdMaterialAuditRequest();
req.setBizType(1L);
req.setScenarioType(1L);
req.setOuterCreativeId("123");
req.setTitle("长文案");
req.setImgUrl("https://xx.taobao.com/image.jpg");
req.setH5Url("https://m.taobao.com/tbopen/index.html?action=ali.open.nav");
req.setAdType(1L);
req.setVideoUrl("https://xx.taobao.com/video.mp4");
req.setSubTitle("短文案");
req.setCreativeType(1L);
req.setDpUrl("tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav");
req.setAppId(1L);
req.setChannelId(123456L);
req.setTaskId(123456L);
req.setHotEvent(0L);
req.setSpecificFileName("测试文件名-1-1231321");
req.setBizTypeV2("承接信息");
UsergrowthAdMaterialAuditResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
UsergrowthAdMaterialAuditRequest req = new UsergrowthAdMaterialAuditRequest();
req.BizType = 1L;
req.ScenarioType = 1L;
req.OuterCreativeId = "123";
req.Title = "长文案";
req.ImgUrl = "https://xx.taobao.com/image.jpg";
req.H5Url = "https://m.taobao.com/tbopen/index.html?action=ali.open.nav";
req.AdType = 1L;
req.VideoUrl = "https://xx.taobao.com/video.mp4";
req.SubTitle = "短文案";
req.CreativeType = 1L;
req.DpUrl = "tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav";
req.AppId = 1L;
req.ChannelId = 123456L;
req.TaskId = 123456L;
req.HotEvent = 0L;
req.SpecificFileName = "测试文件名-1-1231321";
req.BizTypeV2 = "承接信息";
UsergrowthAdMaterialAuditResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new UsergrowthAdMaterialAuditRequest;
$req->setBizType("1");
$req->setScenarioType("1");
$req->setOuterCreativeId("123");
$req->setTitle("长文案");
$req->setImgUrl("https://xx.taobao.com/image.jpg");
$req->setH5Url("https://m.taobao.com/tbopen/index.html?action=ali.open.nav");
$req->setAdType("1");
$req->setVideoUrl("https://xx.taobao.com/video.mp4");
$req->setSubTitle("短文案");
$req->setCreativeType("1");
$req->setDpUrl("tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav");
$req->setAppId("1");
$req->setChannelId("123456");
$req->setTaskId("123456");
$req->setHotEvent("0");
$req->setSpecificFileName("测试文件名-1-1231321");
$req->setBizTypeV2("承接信息");
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=taobao.usergrowth.ad.material.audit' \
-d 'partner_id=apidoc' \
-d 'sign=2CF9DDBC0FE671006499460ACA103E93' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-06-06+03%3A05%3A14' \
-d 'v=2.0' \
-d 'ad_type=1' \
-d 'app_id=1' \
-d 'biz_type=1' \
-d 'biz_type_v2=%E6%89%BF%E6%8E%A5%E4%BF%A1%E6%81%AF' \
-d 'channel_id=123456' \
-d 'creative_type=1' \
-d 'dp_url=tbopen%3A%2F%2Fm.taobao.com%2Ftbopen%2Findex.html%3Faction%3Dali.open.nav' \
-d 'h5_url=https%3A%2F%2Fm.taobao.com%2Ftbopen%2Findex.html%3Faction%3Dali.open.nav' \
-d 'hot_event=0' \
-d 'img_url=https%3A%2F%2Fxx.taobao.com%2Fimage.jpg' \
-d 'outer_creative_id=123' \
-d 'scenario_type=1' \
-d 'specific_file_name=%E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6%E5%90%8D-1-1231321' \
-d 'sub_title=%E7%9F%AD%E6%96%87%E6%A1%88' \
-d 'task_id=123456' \
-d 'title=%E9%95%BF%E6%96%87%E6%A1%88' \
-d 'video_url=https%3A%2F%2Fxx.taobao.com%2Fvideo.mp4'
# -*- coding: utf-8 -*-
import top.api
req=top.api.UsergrowthAdMaterialAuditRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.biz_type=1
req.scenario_type=1
req.outer_creative_id="123"
req.title="长文案"
req.img_url="https://xx.taobao.com/image.jpg"
req.h5_url="https://m.taobao.com/tbopen/index.html?action=ali.open.nav"
req.ad_type=1
req.video_url="https://xx.taobao.com/video.mp4"
req.sub_title="短文案"
req.creative_type=1
req.dp_url="tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav"
req.app_id=1
req.channel_id=123456
req.task_id=123456
req.hot_event=0
req.specific_file_name="测试文件名-1-1231321"
req.biz_type_v2="承接信息"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"taobao.usergrowth.ad.material.audit");
add_param(pRequest,"biz_type","1");
add_param(pRequest,"scenario_type","1");
add_param(pRequest,"outer_creative_id","123");
add_param(pRequest,"title","长文案");
add_param(pRequest,"img_url","https://xx.taobao.com/image.jpg");
add_param(pRequest,"h5_url","https://m.taobao.com/tbopen/index.html?action=ali.open.nav");
add_param(pRequest,"ad_type","1");
add_param(pRequest,"video_url","https://xx.taobao.com/video.mp4");
add_param(pRequest,"sub_title","短文案");
add_param(pRequest,"creative_type","1");
add_param(pRequest,"dp_url","tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav");
add_param(pRequest,"app_id","1");
add_param(pRequest,"channel_id","123456");
add_param(pRequest,"task_id","123456");
add_param(pRequest,"hot_event","0");
add_param(pRequest,"specific_file_name","测试文件名-1-1231321");
add_param(pRequest,"biz_type_v2","承接信息");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.usergrowth.ad.material.audit', {
'biz_type':'1',
'scenario_type':'1',
'outer_creative_id':'123',
'title':'长文案',
'img_url':'https://xx.taobao.com/image.jpg',
'h5_url':'https://m.taobao.com/tbopen/index.html?action=ali.open.nav',
'ad_type':'1',
'video_url':'https://xx.taobao.com/video.mp4',
'sub_title':'短文案',
'creative_type':'1',
'dp_url':'tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav',
'app_id':'1',
'channel_id':'123456',
'task_id':'123456',
'hot_event':'0',
'specific_file_name':'测试文件名-1-1231321',
'biz_type_v2':'承接信息'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})