-
Notifications
You must be signed in to change notification settings - Fork 9
/
TaobaoSimbaBidwordPricetoolsAPIRequest.go
99 lines (84 loc) · 2.76 KB
/
TaobaoSimbaBidwordPricetoolsAPIRequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoSimbaBidwordPricetoolsAPIRequest 关键词出价指导工具(新) API请求
// taobao.simba.bidword.pricetools
//
// 关键词出价指导工具(新)
type TaobaoSimbaBidwordPricetoolsAPIRequest struct {
model.Params
// 区分渠道 ,计算机:PC,无线 :WL
_trafficType string
// 推广单元id
_adgroupId int64
// 关键词id
_bidwordId int64
// 出价目标 ,1:争取排名;2:提升展现;3:提示点击;4:提升转化
_type int64
}
// NewTaobaoSimbaBidwordPricetoolsRequest 初始化TaobaoSimbaBidwordPricetoolsAPIRequest对象
func NewTaobaoSimbaBidwordPricetoolsRequest() *TaobaoSimbaBidwordPricetoolsAPIRequest {
return &TaobaoSimbaBidwordPricetoolsAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetApiMethodName() string {
return "taobao.simba.bidword.pricetools"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetTrafficType is TrafficType Setter
// 区分渠道 ,计算机:PC,无线 :WL
func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetTrafficType(_trafficType string) error {
r._trafficType = _trafficType
r.Set("traffic_type", _trafficType)
return nil
}
// GetTrafficType TrafficType Getter
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetTrafficType() string {
return r._trafficType
}
// SetAdgroupId is AdgroupId Setter
// 推广单元id
func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetAdgroupId(_adgroupId int64) error {
r._adgroupId = _adgroupId
r.Set("adgroup_id", _adgroupId)
return nil
}
// GetAdgroupId AdgroupId Getter
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetAdgroupId() int64 {
return r._adgroupId
}
// SetBidwordId is BidwordId Setter
// 关键词id
func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetBidwordId(_bidwordId int64) error {
r._bidwordId = _bidwordId
r.Set("bidword_id", _bidwordId)
return nil
}
// GetBidwordId BidwordId Getter
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetBidwordId() int64 {
return r._bidwordId
}
// SetType is Type Setter
// 出价目标 ,1:争取排名;2:提升展现;3:提示点击;4:提升转化
func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetType(_type int64) error {
r._type = _type
r.Set("type", _type)
return nil
}
// GetType Type Getter
func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetType() int64 {
return r._type
}