Skip to content

Instantly share code, notes, and snippets.

@yllus
Last active March 29, 2016 17:16
Show Gist options
  • Select an option

  • Save yllus/4e4e65b8066234d1501e to your computer and use it in GitHub Desktop.

Select an option

Save yllus/4e4e65b8066234d1501e to your computer and use it in GitHub Desktop.

The sponsor image can be retrieved at:

http://pubads.g.doubleclick.net/gampad/ad?iu=/103711331/CFL_Mobile_App_Week_Sponsor&sz=380x60&t=slot%3Dad-schedule-week-11&c=[correlator]

The link that should be navigated to if tapped:

http://pubads.g.doubleclick.net/gampad/jump?iu=/103711331/CFL_Mobile_App_Week_Sponsor&sz=380x60&t=slot%3Dad-schedule-week-11&c=[correlator]

A few quick notes:

  • The "t" parameter sets the key-value "slot" to a value of "ad-schedule-week-11". This lets us specify which week's ad sponsor to display/get a link for.
  • The string "[correlator]" (without quotes) should be swapped out before being called with the current UNIX timestamp; this is to keep all calls unique/un-cached.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment