public
Created

  • Download Gist
gistfile1.txt
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
 
message UserRecord {
required uint32 version = 1 [default = 1];
required uint64 timestamp = 2;
optional string user_id = 3;
repeated Interaction interactions = 4;
repeated Segment rapleaf_segments = 5 [deprecated=true];
repeated SegmentsPerProvider segments = 6;
 
message Interaction {
enum InteractionType {
IMPRESSION = 1;
CLICK = 2;
CONVERSION = 3;
}
 
required uint64 line_item_id = 1;
required uint64 timestamp = 2;
required InteractionType type = 3;
}
 
message Segment {
required uint64 segment_id = 1;
}
}
 
 
enum Provider {
RAPLEAF = 1;
}
 
//Used by USER
message SegmentsPerProvider {
required Provider provider = 1;
repeated uint64 segment_ids = 2;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.