Skip to content

Commit

Permalink
fix(report/v3): avg_rank in metrics omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Apr 18, 2024
1 parent 34724e3 commit e3498ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marketing-api/model/report/v3/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ type Metrics struct {
// DeepConvertRate 广告被用户进行深度转化的次数占转化次数的百分比。计算方式:深度转化数/转化数*100%
DeepConvertRate model.Float64 `json:"deep_convert_rate,omitempty"`
// AvgRank 关键词排名
AvgRank model.Int64 `json:"avg_rank"`
AvgRank model.Int64 `json:"avg_rank,omitempty"`
}

type CustomMetrics struct {
Expand Down Expand Up @@ -324,5 +324,5 @@ type CustomMetrics struct {
// 视频数据-播完率; 计算公式:播放完成数/播放数
PlayOverRate model.Float64 `json:"play_over_rate,omitempty"`
// AvgRank 关键词排名
AvgRank model.Int64 `json:"avg_rank"`
AvgRank model.Int64 `json:"avg_rank,omitempty"`
}

0 comments on commit e3498ef

Please sign in to comment.