|
Variable
|
Description
|
Type
|
Value
|
Required?
|
|
version
|
Denotes the version of the MediaBrix Ad Code to help MediaBrix troubleshoot any issues
|
String
|
Version name (do not change)
|
required
|
|
tag
|
The URL for making the MediaBrix Social Media ad call
|
String
|
Included URL (do not change)/
|
required
|
|
adInstance
|
The name of the Mediabrix ad instance.
|
String
|
Ad Name (eg, “reward”)
|
required
|
| uid | This is the string required by MediaBrix to pass back to the publisher for reward confirmation. This string requires a unique identifier for the user and any other parameters required by the publisher. The parameters should be pipe delimited. This variable needs to be dynamically created upon page load |
String | [user unique id]|[parameter 1]|parameter 2]|[parameter n] |
required |
|
top
|
Vertically positions the MediaBrix SocialMedia ad unit so it can be correctly positioned on your game or site. The default positioning of ads is 140 pixels from top margin
|
String
|
Number (eg, 140)
|
Optional
|
|
adVerification
|
This publisher function to call to confirm that there is a SocialViews ad and that will load the publisher’s tickler
|
Callback
|
Publisher’s Javascript function or “auto” to render the ad without a tickler
|
required
|
|
adClosed
|
This is a callback function that occurs when the ad unit is closed. Publishers can use this to implement some action after the ad unit closes
|
Callback
|
Publisher’s JavaScript function
|
Optional
|
| rewardConfirmation |
The publisher function to call when SocialViews confirms a reward to user. SocialViews makes a callback with unique ID set under account |
Callback | Publisher’s JavaScript function |
required |
|
closeBtn
|
Determines whether or not to display the ad’s close button.
|
String
|
“none” if the close button should not be displayed
|
Optional
|
| title |
The title to display in the head of the SocialViews/Flex unit |
String | Optional | |
| confirmHeader |
Header text to display on the confirmation rewards panel |
String | Optional |
|
| confirmText |
Body text to display on the confirmation rewards panel |
String | Optional |
|
| iconURL |
URL of an icon to display on the confirm reward panel URL(PNG @120x120) |
String | Optional |
|
| rewardsBackgroundURL |
URL of an image to display on the background of the confirm reward panel URL(PNG @644x449) |
String | Optional |