The 140 Proof HTML Ad Unit

The HTML ad unit is the most popular 140 Proof social ad unit, and should be used by almost all publishers and app developers. If you're not sure which version of 140 Proof ads to implement, choose the HTML ad unit.

Implementation Directions:

1. Paste the following code into your app or website:

(Above example formatted on multiple lines for clarity. You must re-format the URL above onto a single line.)

2. Substitute the UPPERCASE values using the below table:

API param Value Notes Required?
hb NUMERIC_TWITTER_USER_ID The public, numeric ID of Twitter user. Do not pass the alphanumeric screen_name, eg. "@jm3". Screen_names can change, but user IDs remain constant.
app_id NUMERIC_140PROOF_APP_ID Your application's numeric publisher ID. If your app is available on multiple platforms e.g. iPhone and Android, you will have multiple app IDs. If you're unsure of your app ID(s), just email developers @ 140proof . com.
unique_id UNIQUE_ANON_ID A unique, anonymous number or string. Format varies by device platform and OS; contact your developer relations rep for details regarding what to pass here depending on your platform: developers @ 140proof . com.
height AD_HEIGHT The height of your ad container in pixels. If you require a non-standard height, contact 140 Proof for a customized ad template. If you do NOT pass a height value, the ad will adjust to the height of its container.
width APP_WIDTH The width of your application stream in pixels. If your app requires a non-standard width, contact 140 Proof for a customized ad template. If you do NOT pass a width value, the ad will adjust to the width of its container.
style AD_STYLE Desired look & feel for the ad unit:
  • sban: small banner 320x50px
  • srec: small rectangle 180x150px
  • mrec: medium-sized rectangle 300x250px
  • bubble: auto-sizing banner with text in a "text bubble"
ts TIMESTAMP A unix timestamp or similar value used as a cachebuster.

3. Email 140 Proof with a screenshot or test build of your app.

You're done!

Visual examples:

Experiment with the Ad Unit