Skip to content

Instantly share code, notes, and snippets.

@tractorcow
Last active April 18, 2019 03:42
Show Gist options
  • Save tractorcow/e95ea64b0b6315426f902bb2e8b9be7c to your computer and use it in GitHub Desktop.
Save tractorcow/e95ea64b0b6315426f902bb2e8b9be7c to your computer and use it in GitHub Desktop.

Google ads

Note: Google ads are specified at https://docs.google.com/document/d/1swK0Byri5st5FalwsKau-LhaipEdt7VHdbpM2xxKH9Y/edit

These must be manually migrated as per the below mapping:

Desktop ads:

Enter all code into the default code field

Desktop Only

Leaderboard

3.1.1. Default code

<div id='ad_leaderboard1' class="dfpad" data-adsize="[728,90]" data-adunit="leaderboard"></div>

Billboard

3.1.2. Default code

<div id='ad_billboard1' class="dfpad" data-adsize="[970,250]" data-adunit="billboard"></div>

ExtendedBanner

3.1.6. Default code

<div id='ad_skin1' class="dfpad" data-adsize="[1,1]" data-adunit="1x1"></div>

Mobile / Desktop (different code)

HeadlineRect

3.1.3. Default code

<div id='ad_rectangle1' class="dfpad" data-adsize="[[300,600],[300,250]]" data-adunit="rectangle"></div>

3.2.1. Mobile specific code

<div id='ad_rectangle1' class="dfpad" data-adsize="[300,250]" data-adunit="rectangle"></div>

Mobile / Desktop (same code)

ContentRect

3.1.4. Desktop 3.2.2. Mobile

<div id='ad_rectangle2' class="dfpad" data-adsize="[300,250]" data-adunit="rectangle"></div>

DirectRect

3.1.5. Default code 3.2.3. Mobile specific code

<div id='ad_rectangle3' class="dfpad" data-adsize="[300,250]" data-adunit="rectangle"></div>

Mobile Only

3.2.4. MobileBillboard

<div id='ad_mobilebillboard1' class="dfpad" data-adsize="[340,88]" data-adunit="mobilebillboard"></div>

3.2.5. MobileTopBanner

<div id='ad_mobilestrip1' class="dfpad" data-adsize="[340,42]" data-adunit="mobilestrip"></div>

3.2.6. MobileStrip2

<div id='ad_mobilestrip2' class="dfpad" data-adsize="[340,42]" data-adunit="mobilestrip"></div>

3.2.7. MobileStrip3

<div id='ad_mobilestrip3' class="dfpad" data-adsize="[340,42]" data-adunit="mobilestrip"></div>

3.2.8. MobileShowCase

<div id='ad_showcase1' class="dfpad" data-adsize="[1,1]" data-adunit="1x1"></div>

Extra ads that aren't replaced

  • MobileMast (70 x 40)
  • SponsoredLinks (300 x 357)
  • Iframe (100% x 390)
  • ExchangeIframe (100% x 25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment