-
Notifications
You must be signed in to change notification settings - Fork 10
/
TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest.go
189 lines (162 loc) · 5.51 KB
/
TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
package simba
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
// TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest 推广组下的词基础报表数据查询(明细数据不分类型查询) API请求
// taobao.simba.rpt.adgroupkeywordbase.get
//
// 推广组下的词基础报表数据查询(明细数据不分类型查询)
type TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest struct {
model.Params
// 主人昵称
_nick string
// 开始时间,格式yyyy-mm-dd
_startTime string
// 结束时间,格式yyyy-mm-dd
_endTime string
// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2
_source string
// 权限校验参数
_subwayToken string
// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH)可多选例如:SEARCH,CAT
_searchType string
// 推广计划ID
_campaignId int64
// 推广组ID
_adgroupId int64
// 页码
_pageNo int64
// 每页大小
_pageSize int64
}
// NewTaobaoSimbaRptAdgroupkeywordbaseGetRequest 初始化TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest对象
func NewTaobaoSimbaRptAdgroupkeywordbaseGetRequest() *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest {
return &TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest{
Params: model.NewParams(),
}
}
// GetApiMethodName IRequest interface 方法, 获取Api method
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetApiMethodName() string {
return "taobao.simba.rpt.adgroupkeywordbase.get"
}
// GetApiParams IRequest interface 方法, 获取API参数
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetApiParams(params url.Values) {
for k, v := range r.Params {
params.Set(k, v.String())
}
}
// GetRawParams IRequest interface 方法, 获取API原始参数
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetRawParams() model.Params {
return r.Params
}
// SetNick is Nick Setter
// 主人昵称
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetNick(_nick string) error {
r._nick = _nick
r.Set("nick", _nick)
return nil
}
// GetNick Nick Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetNick() string {
return r._nick
}
// SetStartTime is StartTime Setter
// 开始时间,格式yyyy-mm-dd
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetStartTime(_startTime string) error {
r._startTime = _startTime
r.Set("start_time", _startTime)
return nil
}
// GetStartTime StartTime Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetStartTime() string {
return r._startTime
}
// SetEndTime is EndTime Setter
// 结束时间,格式yyyy-mm-dd
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetEndTime(_endTime string) error {
r._endTime = _endTime
r.Set("end_time", _endTime)
return nil
}
// GetEndTime EndTime Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetEndTime() string {
return r._endTime
}
// SetSource is Source Setter
// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetSource(_source string) error {
r._source = _source
r.Set("source", _source)
return nil
}
// GetSource Source Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetSource() string {
return r._source
}
// SetSubwayToken is SubwayToken Setter
// 权限校验参数
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error {
r._subwayToken = _subwayToken
r.Set("subway_token", _subwayToken)
return nil
}
// GetSubwayToken SubwayToken Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetSubwayToken() string {
return r._subwayToken
}
// SetSearchType is SearchType Setter
// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH)可多选例如:SEARCH,CAT
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetSearchType(_searchType string) error {
r._searchType = _searchType
r.Set("search_type", _searchType)
return nil
}
// GetSearchType SearchType Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetSearchType() string {
return r._searchType
}
// SetCampaignId is CampaignId Setter
// 推广计划ID
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetCampaignId(_campaignId int64) error {
r._campaignId = _campaignId
r.Set("campaign_id", _campaignId)
return nil
}
// GetCampaignId CampaignId Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetCampaignId() int64 {
return r._campaignId
}
// SetAdgroupId is AdgroupId Setter
// 推广组ID
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetAdgroupId(_adgroupId int64) error {
r._adgroupId = _adgroupId
r.Set("adgroup_id", _adgroupId)
return nil
}
// GetAdgroupId AdgroupId Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetAdgroupId() int64 {
return r._adgroupId
}
// SetPageNo is PageNo Setter
// 页码
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetPageNo(_pageNo int64) error {
r._pageNo = _pageNo
r.Set("page_no", _pageNo)
return nil
}
// GetPageNo PageNo Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetPageNo() int64 {
return r._pageNo
}
// SetPageSize is PageSize Setter
// 每页大小
func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetPageSize(_pageSize int64) error {
r._pageSize = _pageSize
r.Set("page_size", _pageSize)
return nil
}
// GetPageSize PageSize Getter
func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetPageSize() int64 {
return r._pageSize
}