|
@@ -102,27 +102,139 @@ message GetUserAdFeatureResponse {
|
|
|
message AdItemFeatureProto {
|
|
|
string adId = 1;
|
|
|
string adCode = 2;
|
|
|
- string advertiserId = 3;
|
|
|
- string advertiserCode = 4;
|
|
|
- string campaignId = 5;
|
|
|
- string campaignCode = 6;
|
|
|
- string creativeId = 7;
|
|
|
- string creativeCode = 8;
|
|
|
- AdActionFeatureProto day1_cnt_features = 9;
|
|
|
- AdActionFeatureProto day3_cnt_features = 10;
|
|
|
- AdActionFeatureProto day7_cnt_features = 11;
|
|
|
- AdActionFeatureProto month3_cnt_features = 12;
|
|
|
- AdActionFeatureProto creative_1day_cnt_features = 13;
|
|
|
- AdActionFeatureProto creative_3day_cnt_features = 14;
|
|
|
- AdActionFeatureProto creative_7day_cnt_features = 15;
|
|
|
- AdActionFeatureProto creative_3month_cnt_features = 16;
|
|
|
- AdActionFeatureProto advertiser_1day_cnt_features = 17;
|
|
|
- AdActionFeatureProto advertiser_3day_cnt_features = 18;
|
|
|
- AdActionFeatureProto advertiser_7day_cnt_features = 19;
|
|
|
- AdActionFeatureProto advertiser_3month_cnt_features = 20;
|
|
|
+ string advertiserId = 3;
|
|
|
+ string advertiserCode = 4;
|
|
|
+ string campaignId = 5;
|
|
|
+ string campaignCode = 6;
|
|
|
+ string creativeId = 7;
|
|
|
+ string creativeCode = 8;
|
|
|
+ AdActionFeatureProto day1_cnt_features = 9;
|
|
|
+ AdActionFeatureProto day3_cnt_features = 10;
|
|
|
+ AdActionFeatureProto day7_cnt_features = 11;
|
|
|
+ AdActionFeatureProto month3_cnt_features = 12;
|
|
|
+ AdActionFeatureProto creative_1day_cnt_features = 13;
|
|
|
+ AdActionFeatureProto creative_3day_cnt_features = 14;
|
|
|
+ AdActionFeatureProto creative_7day_cnt_features = 15;
|
|
|
+ AdActionFeatureProto creative_3month_cnt_features = 16;
|
|
|
+ AdActionFeatureProto advertiser_1day_cnt_features = 17;
|
|
|
+ AdActionFeatureProto advertiser_3day_cnt_features = 18;
|
|
|
+ AdActionFeatureProto advertiser_7day_cnt_features = 19;
|
|
|
+ AdActionFeatureProto advertiser_3month_cnt_features = 20;
|
|
|
}
|
|
|
|
|
|
|
|
|
+message GetUserFeatureInfoRequest {
|
|
|
+ repeated string mids = 1;
|
|
|
+}
|
|
|
+
|
|
|
+message GetUserFeatureInfoResponse {
|
|
|
+ /*
|
|
|
+ 过去一小时
|
|
|
+ */
|
|
|
+ int64 u1hourExpCnt = 1;
|
|
|
+ int64 u1hourClickCnt = 2;
|
|
|
+ int64 u1hourShareCnt = 3;
|
|
|
+ int64 u1hourReturnCnt = 4;
|
|
|
+ double uCtr1hour = 5;
|
|
|
+ double uStr1hour = 6;
|
|
|
+ double uRov1hour = 7;
|
|
|
+ double uRos1hour = 8;
|
|
|
+ /*
|
|
|
+ 今天
|
|
|
+ */
|
|
|
+ int64 uTodayExpCnt = 9;
|
|
|
+ int64 uTodayClickCnt = 10;
|
|
|
+ int64 uTodayShareCnt = 11;
|
|
|
+ int64 uTodayReturnCnt = 12;
|
|
|
+ double uCtrToday = 13;
|
|
|
+ double uStrToday = 14;
|
|
|
+ double uRovToday = 15;
|
|
|
+ double uRosToday = 16;
|
|
|
+ /*
|
|
|
+ 过去一天
|
|
|
+ */
|
|
|
+ int64 u1dayExpCnt = 17;
|
|
|
+ int64 u1dayClickCnt = 18;
|
|
|
+ int64 u1dayShareCnt = 19;
|
|
|
+ int64 u1dayReturnCnt = 20;
|
|
|
+ double uCtr1day = 21;
|
|
|
+ double uStr1day = 22;
|
|
|
+ double uRov1day = 23;
|
|
|
+ double uRos1day = 24;
|
|
|
+ /*
|
|
|
+ 过去三天
|
|
|
+ */
|
|
|
+ int64 u3dayExpCnt = 25;
|
|
|
+ int64 u3dayClickCnt = 26;
|
|
|
+ int64 u3dayShareCnt = 27;
|
|
|
+ int64 u3dayReturnCnt = 28;
|
|
|
+ double uCtr3day = 29;
|
|
|
+ double uStr3day = 30;
|
|
|
+ double uRov3day = 31;
|
|
|
+ double uRos3day = 32;
|
|
|
+
|
|
|
+ string mid = 33;
|
|
|
+ string machineinfoBrand = 34;
|
|
|
+ string machineinfoModel = 35;
|
|
|
+ string machineinfoSystem = 36;
|
|
|
+ string machineinfoPlatform = 37;
|
|
|
+ string gender = 38;
|
|
|
+ string country = 39;
|
|
|
+ string province = 40;
|
|
|
+ string city = 41;
|
|
|
+}
|
|
|
+
|
|
|
+message GetVideoFeatureInfoRequest {
|
|
|
+ repeated int64 videoIds = 1;
|
|
|
+}
|
|
|
+
|
|
|
+message GetVideoFeatureInfoResponse {
|
|
|
+ int64 videoId = 1;
|
|
|
+ int64 playCountTotal = 2;
|
|
|
+ int32 totalTime = 3;
|
|
|
+ string gmtCreate = 4;
|
|
|
+ int64 uid = 5; // 上传者
|
|
|
+ int64 i15minExpCnt = 6; // 过去十五分钟
|
|
|
+ int64 i15minClickCnt = 7;
|
|
|
+ int64 i15minShareCnt = 8;
|
|
|
+ int64 i15minReturnCnt = 9;
|
|
|
+ double iCtr15min = 10;
|
|
|
+ double iStr15min = 11;
|
|
|
+ double iRov15min = 12;
|
|
|
+ double iRos15min = 13;
|
|
|
+ int64 i1hourExpCnt = 14; // 过去一小时
|
|
|
+ int64 i1hourClickCnt = 15;
|
|
|
+ int64 i1hourShareCnt = 16;
|
|
|
+ int64 i1hourReturnCnt = 17;
|
|
|
+ double iCtr1hour = 18;
|
|
|
+ double iStr1hour = 19;
|
|
|
+ double iRov1hour = 20;
|
|
|
+ double iRos1hour = 21;
|
|
|
+ int64 iTodayExpCnt = 22; // 今天
|
|
|
+ int64 iTodayClickCnt = 23;
|
|
|
+ int64 iTodayShareCnt = 24;
|
|
|
+ int64 iTodayReturnCnt = 25;
|
|
|
+ double iCtrToday = 26;
|
|
|
+ double iStrToday = 27;
|
|
|
+ double iRovToday = 28;
|
|
|
+ double iRosToday = 29;
|
|
|
+ int64 i1dayExpCnt = 30; // 过去一天
|
|
|
+ int64 i1dayClickCnt = 31;
|
|
|
+ int64 i1dayShareCnt = 32;
|
|
|
+ int64 i1dayReturnCnt = 33;
|
|
|
+ double iCtr1day = 34;
|
|
|
+ double iStr1day = 35;
|
|
|
+ double iRov1day = 36;
|
|
|
+ double iRos1day = 37;
|
|
|
+ int64 i3dayExpCnt = 38; // 过去三天
|
|
|
+ int64 i3dayClickCnt = 39;
|
|
|
+ int64 i3dayShareCnt = 40;
|
|
|
+ int64 i3dayReturnCnt = 41;
|
|
|
+ double iCtr3day = 42;
|
|
|
+ double iStr3day = 43;
|
|
|
+ double iRov3day = 44;
|
|
|
+ double iRos3day = 45;
|
|
|
+}
|
|
|
|
|
|
message GetAdItemFeatureRequest {
|
|
|
string ad_id = 1;
|
|
@@ -149,5 +261,6 @@ service FeatureService {
|
|
|
rpc GetUserFeature (GetUserFeatureRequest) returns (GetUserFeatureResponse);
|
|
|
rpc GetVideoFeature (GetVideoFeatureRequest) returns (GetVideoFeatureResponse);
|
|
|
rpc GetAllVideoFeature (GetAllVideoFeatureRequest) returns (GetAllVideoFeatureResponse);
|
|
|
-
|
|
|
+ rpc GetUserFeatureInfo (GetUserFeatureInfoRequest) returns (GetUserFeatureInfoResponse);
|
|
|
+ rpc GetVideoFeatureInfo (GetVideoFeatureInfoRequest) returns (GetVideoFeatureInfoResponse);
|
|
|
}
|