Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Added bunch of new sizes (prebid#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
hdeodhar authored Sep 30, 2020
1 parent 92b7132 commit d76d1af
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions adapters/rubicon/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,41 @@ var rubiSizeMap = map[rubiSize]int{
{w: 468, h: 60}: 1,
{w: 728, h: 90}: 2,
{w: 728, h: 91}: 2,
{w: 120, h: 90}: 5,
{w: 125, h: 125}: 7,
{w: 120, h: 600}: 8,
{w: 160, h: 600}: 9,
{w: 300, h: 600}: 10,
{w: 200, h: 200}: 13,
{w: 250, h: 250}: 14,
{w: 300, h: 250}: 15,
{w: 300, h: 251}: 15,
{w: 336, h: 280}: 16,
{w: 240, h: 400}: 17,
{w: 300, h: 100}: 19,
{w: 980, h: 120}: 31,
{w: 250, h: 360}: 32,
{w: 180, h: 500}: 33,
{w: 980, h: 150}: 35,
{w: 468, h: 400}: 37,
{w: 930, h: 180}: 38,
{w: 750, h: 100}: 39,
{w: 750, h: 200}: 40,
{w: 750, h: 300}: 41,
{w: 320, h: 50}: 43,
{w: 300, h: 50}: 44,
{w: 300, h: 300}: 48,
{w: 1024, h: 768}: 53,
{w: 300, h: 1050}: 54,
{w: 970, h: 90}: 55,
{w: 970, h: 250}: 57,
{w: 1000, h: 90}: 58,
{w: 320, h: 80}: 59,
{w: 320, h: 150}: 60,
{w: 1000, h: 1000}: 61,
{w: 580, h: 500}: 64,
{w: 640, h: 480}: 65,
{w: 930, h: 600}: 66,
{w: 320, h: 480}: 67,
{w: 1800, h: 1000}: 68,
{w: 320, h: 320}: 72,
Expand All @@ -225,17 +237,44 @@ var rubiSizeMap = map[rubiSize]int{
{w: 980, h: 300}: 79,
{w: 980, h: 400}: 80,
{w: 480, h: 300}: 83,
{w: 300, h: 120}: 85,
{w: 548, h: 150}: 90,
{w: 970, h: 310}: 94,
{w: 970, h: 100}: 95,
{w: 970, h: 210}: 96,
{w: 480, h: 320}: 101,
{w: 768, h: 1024}: 102,
{w: 480, h: 280}: 103,
{w: 250, h: 800}: 105,
{w: 320, h: 240}: 108,
{w: 1000, h: 300}: 113,
{w: 320, h: 100}: 117,
{w: 800, h: 250}: 125,
{w: 200, h: 600}: 126,
{w: 980, h: 600}: 144,
{w: 980, h: 150}: 145,
{w: 1000, h: 250}: 152,
{w: 640, h: 320}: 156,
{w: 320, h: 250}: 159,
{w: 250, h: 600}: 179,
{w: 600, h: 300}: 195,
{w: 640, h: 360}: 198,
{w: 640, h: 200}: 199,
{w: 1030, h: 590}: 213,
{w: 980, h: 360}: 214,
{w: 320, h: 180}: 229,
{w: 2000, h: 1400}: 230,
{w: 580, h: 400}: 232,
{w: 480, h: 820}: 256,
{w: 400, h: 600}: 257,
{w: 500, h: 200}: 258,
{w: 998, h: 200}: 259,
{w: 970, h: 1000}: 264,
{w: 1920, h: 1080}: 265,
{w: 1800, h: 200}: 274,
{w: 320, h: 500}: 278,
{w: 320, h: 400}: 282,
{w: 640, h: 380}: 288,
}

// defines the contract for bidrequest.user.ext.eids[i].ext
Expand Down

0 comments on commit d76d1af

Please sign in to comment.