ad-hermes-proxy.proto 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. syntax = "proto2";
  2. message Rule {
  3. optional string type = 0x1;
  4. optional uint32 times = 0x2;
  5. optional uint64 interval = 0x3;
  6. }
  7. message AdRequest {
  8. optional string client_language = 0x1;
  9. optional string product = 0x2;
  10. optional uint32 version = 0x3;
  11. optional string type = 0x4;
  12. repeated string avoidAds = 0x5;
  13. }
  14. message AdQueueResponse {
  15. repeated AdQueueEntry adQueueEntry = 0x1;
  16. }
  17. message AdFile {
  18. optional string id = 0x1;
  19. optional string format = 0x2;
  20. }
  21. message AdQueueEntry {
  22. optional uint64 start_time = 0x1;
  23. optional uint64 end_time = 0x2;
  24. optional double priority = 0x3;
  25. optional string token = 0x4;
  26. optional uint32 ad_version = 0x5;
  27. optional string id = 0x6;
  28. optional string type = 0x7;
  29. optional string campaign = 0x8;
  30. optional string advertiser = 0x9;
  31. optional string url = 0xa;
  32. optional uint64 duration = 0xb;
  33. optional uint64 expiry = 0xc;
  34. optional string tracking_url = 0xd;
  35. optional string banner_type = 0xe;
  36. optional string html = 0xf;
  37. optional string image = 0x10;
  38. optional string background_image = 0x11;
  39. optional string background_url = 0x12;
  40. optional string background_color = 0x13;
  41. optional string title = 0x14;
  42. optional string caption = 0x15;
  43. repeated AdFile file = 0x16;
  44. repeated Rule rule = 0x17;
  45. }