TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAdlabAdsimConfigConfigCopyRequest req = new AlibabaAdlabAdsimConfigConfigCopyRequest();
AlibabaAdlabAdsimConfigConfigCopyRequest.AdsimConfigQuery obj1 = new AlibabaAdlabAdsimConfigConfigCopyRequest.AdsimConfigQuery();
obj1.setCaseSetIdList(new Long[] { };
);
obj1.setId(213L);
obj1.setCaseIdList(new Long[] { };
);
obj1.setCreatorUserNo("WB367619");
obj1.setProjectId(123L);
req.setAdsimConfigQuery(obj1);
AlibabaAdlabAdsimConfigConfigCopyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAdlabAdsimConfigConfigCopyRequest req = new AlibabaAdlabAdsimConfigConfigCopyRequest();
AlibabaAdlabAdsimConfigConfigCopyRequest.AdsimConfigQueryDomain obj1 = new AlibabaAdlabAdsimConfigConfigCopyRequest.AdsimConfigQueryDomain();
obj1.CaseSetIdList = new long[] { };
;
obj1.Id = 213L;
obj1.CaseIdList = new long[] { };
;
obj1.CreatorUserNo = "WB367619";
obj1.ProjectId = 123L;
req.AdsimConfigQuery_ = obj1;
AlibabaAdlabAdsimConfigConfigCopyResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAdlabAdsimConfigConfigCopyRequest;
$adsim_config_query = new AdsimConfigQuery;
$adsim_config_query->case_set_id_list="";
$adsim_config_query->id="213";
$adsim_config_query->case_id_list="";
$adsim_config_query->creator_user_no="WB367619";
$adsim_config_query->project_id="123";
$req->setAdsimConfigQuery(json_encode($adsim_config_query));
$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=alibaba.adlab.adsim.config.config.copy' \
-d 'partner_id=apidoc' \
-d 'sign=3D0300136F332D32E8023AAF0B7FD4A0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-24+16%3A33%3A10' \
-d 'v=2.0' \
-d 'adsim_config_query=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAdlabAdsimConfigConfigCopyRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.adsim_config_query="数据结构示例JSON格式"
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,"alibaba.adlab.adsim.config.config.copy");
add_param(pRequest,"adsim_config_query","数据结构JSON示例");
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('alibaba.adlab.adsim.config.config.copy', {
'adsim_config_query':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})