- socialVars
-
- A JavaScript file containing the socialVars object and invoking a function to apply the socialVars to the ad.
- Available socialVars for SocialViews:
-
- uid : (string - required) The user id or unique identifier.
- title : (string - optional) The text to be rendered in the title bar of the SocialViews ad.
- confirmHeader : (string - optional) The text to be rendered in the header of the reward confirmation screen.
- confirmText : (string - optional) The text to be rendered in the body of the reward confirmation screen.
- iconURL : (URL - optional) The full URL of an image to be displayed in the body of the reward confirmation screen.
- rewardsBackgroundURL : (URL - optional) The full URL of an image to be displayed as the background of the reward confirmation screen
- rewardEncryption - (URL - optional) The full encrypted URL of the publisher's fulfillment service for server-to-server reward confirmation.
- Sample using a random number for the uid:
-
- The MediaBrix Publisher-side File for Iframes
-
- An html file residing on the same domain as the publisher's game.
- Sets the mbreward cookie which is used for client-side communication with publisher's game.
- Must use a P3P Compact Policy header to enable third-party cookies.
-
- http://www.p3ptoolbox.org/index2.shtml
- Recommended compact policy: IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT
-
- Samples:
-
- PHP:
-
- header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
- JSP:
-
- response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"")
- ASP.NET:
-
- HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
- Publisher close button
-
- Before allowing a user to close a SocialViews ad, the mbreward browser cookie should be read.
- If the mbreward cookie is undefined or has an empty string value, then the reward has not been earned.
- When the reward has been earned, the value of mbreward will be set to the value of the uid socialVar.
- If the reward has not been earned, a warning message should be displayed to the user before they are allowed to close the ad.
- Ad tag
-
- The traditional DFP ad tag with query parameters
-
- mbrixvars : (required) full URL to the socialvars file.
- mbpsf : (required) full URL to MediaBrix Publisher-side File.
- Example:
-
- https://ad.doubleclick.net/adi/mbrix.qa/socialviews_king;sz=650x500;pos=1;tile=1;?mbrixvars=https://www.example.com/mediabrix_vars.js &mbpsf=https://www.example.com/mediabrix_psf.php
Meetings Notes 09/04:
- API Documentation
- Followup meeting on Monday?
- SocialViews running by Q4
- Core User ID instead of Facebook ID