Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/keyword report #62

Merged
merged 4 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion marketing-api/model/report/v3/custom_config_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type CustomConfigGetRequest struct {
AdvertiserID uint64 `json:"advertiser_id,omitempty"`
// DataTopics 数据主题列表
// 枚举值:BASIC_DATA广告基础数据、QUERY_DATA搜索词数据、BIDWORD_DATA关键词数据、MATERIAL_DATA素材数据, PRODUCT_DATA用于表达产品数据主题
DataTopics []string `json:"datea_topics,omitempty"`
DataTopics []string `json:"data_topics,omitempty"`
}

// Encode implement GetRequest interface
Expand Down
16 changes: 15 additions & 1 deletion marketing-api/model/report/v3/dimensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type CustomDimensions struct {
// Pricing 对应项目的计费类型
Pricing int `json:"pricing,omitempty"`
// DeepExternalAction 对应项目的深度转化目标
DeepExternalAction int `json:"deep_external_action,omitempty"`
DeepExternalAction string `json:"deep_external_action,omitempty"`
// AdPlatformCdpProjectDownloadType 在项目中设置的下载方式
AdPlatformCdpProjectDownloadType string `json:"ad_platform_cdp_project_download_type,omitempty"`
// AdPlatformCdpProjectDownloadURL 在项目中设置的下载链接
Expand Down Expand Up @@ -98,4 +98,18 @@ type CustomDimensions struct {
ImageMode enum.ImageMode `json:"image_mode,omitempty"`
// AdPlatformMaterialName 素材为视频素材时,对应的视频名称
AdPlatformMaterialName string `json:"ad_platform_material_name,omitempty"`
// CampaignType
CampaignType enum.CampaignType `json:"campaign_type,omitempty"`
// Query 搜索词
Query string `json:"query,omitempty"`
// AdPlatformBidword 关键词
AdPlatformBidword string `json:"ad_platform_bidword"`
// BidwordId 关键词ID。特殊说明:0表示未知关键词,-2表示智选流量。
BidwordId model.Uint64 `json:"bidword_id"`
// RealRecallMatchType 搜索触发方式
RealRecallMatchType string `json:"real_recall_match_type"`
//BidwordSource 关键词来源
BidwordSource string `json:"bidword_source"`
//AdBidwordId 搜索广告计划粒度下关键词唯一ID
AdBidwordId model.Uint64 `json:"ad_bidword_id"`
}
4 changes: 4 additions & 0 deletions marketing-api/model/report/v3/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ type Metrics struct {
DeepConvertCost model.Float64 `json:"deep_convert_cost,omitempty"`
// DeepConvertRate 广告被用户进行深度转化的次数占转化次数的百分比。计算方式:深度转化数/转化数*100%
DeepConvertRate model.Float64 `json:"deep_convert_rate,omitempty"`
// AvgRank 关键词排名
AvgRank model.Int64 `json:"avg_rank"`
}

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