Skip to content

Instantly share code, notes, and snippets.

@rtitle
Created April 5, 2017 19:13
Show Gist options
  • Save rtitle/43db7487c9094ac6fcc8eefbd7fed7d9 to your computer and use it in GitHub Desktop.
Save rtitle/43db7487c9094ac6fcc8eefbd7fed7d9 to your computer and use it in GitHub Desktop.
PG native example

Bid Request

id: "X\345@\363\000\001\346<\n\206\017\n\236\017\306\265"
ip: "\320v\342"
user_agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
url: "http://dx1am.blogspot.com/p/blog-page.html"
detected_language: "en"
detected_vertical {
  id: 814
  weight: 0.5226902
}
detected_vertical {
  id: 504
  weight: 1.0
}
detected_vertical {
  id: 211
  weight: 0.23234701
}
adslot {
  id: 1
  width: 180
  height: 150
  excluded_attribute: 13
  excluded_attribute: 14
  excluded_attribute: 15
  excluded_attribute: 16
  excluded_attribute: 17
  excluded_attribute: 18
  excluded_attribute: 19
  excluded_attribute: 20
  excluded_attribute: 22
  excluded_attribute: 25
  excluded_attribute: 27
  excluded_attribute: 30
  excluded_attribute: 32
  excluded_attribute: 34
  excluded_attribute: 48
  excluded_attribute: 70
  excluded_attribute: 95
  matching_ad_data {
    billing_id: 1404006771
    billing_id: 35844491742
    billing_id: 41108750310
    minimum_cpm_micros: 10000
    direct_deal {
      direct_deal_id: 43357
      fixed_cpm_micros: 100000
      publisher_blocks_overridden: true
      3: 3
      5: 0
      6: 998346
      16: 1
    }
    pricing_rule {
      blocked: true
    }
  }
  slot_visibility: ABOVE_THE_FOLD
  ad_block_key: 1447903947
  publisher_settings_list_id: 1864456628807022551
  publisher_settings_list_id: 8228568880695287159
  iframing_state: UNKNOWN_IFRAME_STATE
  viewability: 30
  31: ""
  36: "\000"
}
is_test: false
cookie_version: 1
google_user_id: "CAESEL8bVntVKaUjKf90dHBxB00"
timezone_offset: -240
detected_content_label: 39
cookie_age_seconds: 49248000
hosted_match_data: "5WUAANdi1CsBaY5"
geo_criteria_id: 1018127
encrypted_hyperlocal_set: "X\345@\363\000\001\346<\n\206\017\n\002\017\306\265|\323\312D\202\264\364u\353)\376\265)I\022O\251\215S-\"\224?\353\314\250\203\303u\326\271\244JLg\005\241v{\222\267zW50\255\234\366\361[\266}N}lQ^\252\2717\230\271\251P5\357"
seller_network_id: 9374
publisher_type: ADX_PUBLISHER_OWNED_AND_OPERATED
hyperlocal_set {
  hyperlocal {
    corners {
      latitude: 42.341057
      longitude: -71.06392
    }
    corners {
      latitude: 42.341057
      longitude: -71.04749
    }
    corners {
      latitude: 42.3532
      longitude: -71.04749
    }
    corners {
      latitude: 42.3532
      longitude: -71.06392
    }
  }
  center_point {
    latitude: 42.34713
    longitude: -71.05571
  }
}
device {
  device_type: PERSONAL_COMPUTER
  platform: "X11"
  screen_pixel_ratio_millis: 1000
}
55: "US"

Bid Response (does not win)

ad {
  html_snippet: "<a target=\"_blank\" href=\"https://i.w55c.net/cl?t=1&btid=NThFNTQwRjMwMDAxRTYzQzBBODYwRjBBOUUwRkM2QjV8R0ZaZWN0aTl5ZXwxNDkxNDE5Mzc5MjA5fDF8MEZqZWd3QkNnWXwwUnZmdVdWcFBTfDVXVUFBTmRpMUNzQmFZNXwyMDAwMDAwMHx8fHwuMFB8VVNE&ei=GOOGLE&tpc=%%CLICK_URL_ESC%%&rurl=http://dataxu.com\"><img src=\"https://ads.w55c.net/t/d/0_pDwMoz0p.jpg?at=0&amp;rtbhost=rtb03-c.us.dataxu.net&amp;btid=NThFNTQwRjMwMDAxRTYzQzBBODYwRjBBOUUwRkM2QjV8R0ZaZWN0aTl5ZXwxNDkxNDE5Mzc5MjA5fDF8MEZqZWd3QkNnWXwwUnZmdVdWcFBTfDVXVUFBTmRpMUNzQmFZNXwyMDAwMDAwMHx8fHwuMFB8VVNE&amp;ei=GOOGLE&amp;amp;js=0&amp;ob=0&amp;ccw=SUFCMSMwLjB8SUFCMTMjMC4w&amp;ci=0C0sZz8tk7&amp;psid=MzU4NDQ0OTE3NDI&amp;s=http%3A%2F%2Fdx1am.blogspot.com%2Fp%2Fblog-page.html&amp;ts=1491419379220&amp;c=US&amp;r=ME&amp;m=500&amp;pc=03904&amp;epid=R0w5Mzc0&amp;amp;mi=d2Vi&amp;wp_exchange=NWP\" border=\"0\" height=\"150\" width=\"180\" alt=\"Advertisement\"/></a><script type=\"text/javascript\" src=\"https://cti.w55c.net/ct/creative_add_on.js?w=180&h=150&pos=top-right&zindex=0&ci=0C0sZz8tk7&ei=GOOGLE&fiu=MEZqZWd3QkNnWQ&epid=R0w5Mzc0&ai=0DjqeE2VdA&ob=0&s=http%3A%2F%2Fdx1am.blogspot.com%2Fp%2Fblog-page.html\"></script>"
  adslot {
    id: 1
    max_cpm_micros: 20000000
    billing_id: 35844491742
    deal_id: 43357
  }
  click_through_url: "http://dataxu.com"
  vendor_type: 113
  attribute: 2
  attribute: 50
  attribute: 47
  buyer_creative_id: "0RvfuWVpPS"
  advertiser_name: "Google Programmatic Guaranteed"
  width: 180
  height: 150
  impression_tracking_url: "https://i.w55c.net/a.gif?t=0&rtbhost=rtb03-c.us.dataxu.net&rts=1&btid=NThFNTQwRjMwMDAxRTYzQzBBODYwRjBBOUUwRkM2QjV8R0ZaZWN0aTl5ZXwxNDkxNDE5Mzc5MjA5fDF8MEZqZWd3QkNnWXwwUnZmdVdWcFBTfDVXVUFBTmRpMUNzQmFZNXwyMDAwMDAwMHx8fHwuMFB8VVNE&ei=GOOGLE&wp_exchange=%%WINNING_PRICE%%&psid=MzU4NDQ0OTE3NDI&pis=MFVjVjF6Y2dhZw&pip=MFZjMmpIT3ZDQQ&js=0&ob=0&ccw=SUFCMSMwLjB8SUFCMTMjMC4w&ci=0C0sZz8tk7&fiu=MEZqZWd3QkNnWQ&sd=blogspot.com&s=http%3A%2F%2Fdx1am.blogspot.com%2Fp%2Fblog-page.html&ts=1491419379220&ai=0DjqeE2VdA&c=US&r=ME&m=500&pc=03904&rnd=1640210974393685&mi=d2Vi&epid=R0w5Mzc0&ct=b1cca87ae82e40c7b29b2c3e67e2cd5a&os=WG9v&dc=WGNu&dv=MUxWSXJn&dm=MU1JUkh3SWFzTg&dt=2dt0005&l=ZW58fA&mt=2cmt0001&ri=2rG5TV&v=1&euid=Q0FFU0VMOGJWbnRWS2FVaktmOTBkSEJ4QjAw&mt=2cmt0001&mi=d2Vi"
}
processing_time_ms: 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment