TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpNewPotentialBidwordFindRequest req = new UniversalbpNewPotentialBidwordFindRequest();
UniversalbpNewPotentialBidwordFindRequest.TopServiceContext obj1 = new UniversalbpNewPotentialBidwordFindRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
obj1.setLoginType(1L);
obj1.setMemberId(12345L);
obj1.setExt("{}");
req.setTopServiceContext(obj1);
UniversalbpNewPotentialBidwordFindRequest.PotentialBidwordQueryVO obj2 = new UniversalbpNewPotentialBidwordFindRequest.PotentialBidwordQueryVO();
obj2.setCampaignId(70575863770L);
obj2.setAdgroupId(70580701012L);
obj2.setStartTime("2024-07-27");
obj2.setEndTime("2024-08-25");
req.setPotentialBidwordQueryVO(obj2);
UniversalbpNewPotentialBidwordFindResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
UniversalbpNewPotentialBidwordFindRequest req = new UniversalbpNewPotentialBidwordFindRequest();
UniversalbpNewPotentialBidwordFindRequest.TopServiceContextDomain obj1 = new UniversalbpNewPotentialBidwordFindRequest.TopServiceContextDomain();
obj1.BizCode = "xxxxx";
obj1.LoginType = 1L;
obj1.MemberId = 12345L;
obj1.Ext = "{}";
req.TopServiceContext_ = obj1;
UniversalbpNewPotentialBidwordFindRequest.PotentialBidwordQueryVODomain obj2 = new UniversalbpNewPotentialBidwordFindRequest.PotentialBidwordQueryVODomain();
obj2.CampaignId = 70575863770L;
obj2.AdgroupId = 70580701012L;
obj2.StartTime = "2024-07-27";
obj2.EndTime = "2024-08-25";
req.PotentialBidwordQueryVO_ = obj2;
UniversalbpNewPotentialBidwordFindResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new UniversalbpNewPotentialBidwordFindRequest;
$top_service_context = new TopServiceContext;
$top_service_context->biz_code="xxxxx";
$top_service_context->login_type="1";
$top_service_context->member_id="12345";
$top_service_context->ext="{}";
$req->setTopServiceContext(json_encode($top_service_context));
$potential_bidword_query_v_o = new PotentialBidwordQueryVO;
$potential_bidword_query_v_o->campaign_id="70575863770";
$potential_bidword_query_v_o->adgroup_id="70580701012";
$potential_bidword_query_v_o->start_time="2024-07-27";
$potential_bidword_query_v_o->end_time="2024-08-25";
$req->setPotentialBidwordQueryVO(json_encode($potential_bidword_query_v_o));
$resp = $c->execute($req, $sessionKey);
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.universalbp.new.potential.bidword.find' \
-d 'partner_id=apidoc' \
-d 'session=7ff7bc56-dfa6-4072-a686-365262419d6d' \
-d 'sign=D0B07FB7294EB4A856F363050FCC6288' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+15%3A07%3A18' \
-d 'v=2.0' \
-d 'potential_bidword_query_v_o=null' \
-d 'top_service_context=TopServiceContext'
# -*- coding: utf-8 -*-
import top.api
req=top.api.UniversalbpNewPotentialBidwordFindRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_service_context="TopServiceContext"
req.potential_bidword_query_v_o=""
try:
resp= req.getResponse(sessionkey)
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.universalbp.new.potential.bidword.find");
add_param(pRequest,"top_service_context","数据结构JSON示例");
add_param(pRequest,"potential_bidword_query_v_o","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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.universalbp.new.potential.bidword.find', {
'top_service_context':'数据结构JSON示例',
'potential_bidword_query_v_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})