TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UniversalbpSuggestBidwordPriceRequest req = new UniversalbpSuggestBidwordPriceRequest();
UniversalbpSuggestBidwordPriceRequest.TopServiceContext obj1 = new UniversalbpSuggestBidwordPriceRequest.TopServiceContext();
obj1.setBizCode("xxxxx");
req.setTopServiceContext(obj1);
UniversalbpSuggestBidwordPriceRequest.BidwordSingleQueryVo obj2 = new UniversalbpSuggestBidwordPriceRequest.BidwordSingleQueryVo();
obj2.setCampaignId(68764632161L);
obj2.setAdgroupId(68805630167L);
obj2.setBidwordId(1131759830446L);
req.setBidwordSingleQueryVO(obj2);
UniversalbpSuggestBidwordPriceResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
UniversalbpSuggestBidwordPriceRequest req = new UniversalbpSuggestBidwordPriceRequest();
UniversalbpSuggestBidwordPriceRequest.TopServiceContextDomain obj1 = new UniversalbpSuggestBidwordPriceRequest.TopServiceContextDomain();
obj1.BizCode = "xxxxx";
req.TopServiceContext_ = obj1;
UniversalbpSuggestBidwordPriceRequest.BidwordSingleQueryVoDomain obj2 = new UniversalbpSuggestBidwordPriceRequest.BidwordSingleQueryVoDomain();
obj2.CampaignId = 68764632161L;
obj2.AdgroupId = 68805630167L;
obj2.BidwordId = 1131759830446L;
req.BidwordSingleQueryVO_ = obj2;
UniversalbpSuggestBidwordPriceResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new UniversalbpSuggestBidwordPriceRequest;
$top_service_context = new TopServiceContext;
$top_service_context->biz_code="xxxxx";
$req->setTopServiceContext(json_encode($top_service_context));
$bidword_single_query_v_o = new BidwordSingleQueryVo;
$bidword_single_query_v_o->campaign_id="68764632161";
$bidword_single_query_v_o->adgroup_id="68805630167";
$bidword_single_query_v_o->bidword_id="1131759830446";
$req->setBidwordSingleQueryVO(json_encode($bidword_single_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.suggest.bidword.price' \
-d 'partner_id=apidoc' \
-d 'session=0e217797-cf06-4c5a-a14a-0202a278e7f8' \
-d 'sign=4788A690DDA05A945DC33488D2AE98F0' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-27+22%3A51%3A28' \
-d 'v=2.0' \
-d 'bidword_single_query_v_o=null' \
-d 'top_service_context=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.UniversalbpSuggestBidwordPriceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.top_service_context="数据结构示例JSON格式"
req.bidword_single_query_v_o="数据结构示例JSON格式"
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.suggest.bidword.price");
add_param(pRequest,"top_service_context","数据结构JSON示例");
add_param(pRequest,"bidword_single_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.suggest.bidword.price', {
'top_service_context':'数据结构JSON示例',
'bidword_single_query_v_o':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})