-
Notifications
You must be signed in to change notification settings - Fork 0
Serving
When the nowspots ad makes a request for the app, it includes everything needed to render that app in the query string. There are some parameters included in the query string that nowspot.com passes to every app:
preview
spot
app
height
width
font
destination_url
Lets go through them one-by-one
preview is used by the the nowspots tracking api to determine whether to track events or not. If preview is true, no events will be tracked.
spot is the spot/ad id. It is used to identify which spot is requesting this app. The nowspots tracking api takes this value from the commandline and includes it in event tracking information.
app is the id of the app configured for this spot/ad. The nowspots tracking api takes this value from the commandline and includes it in event tracking information.
height is the height of the socket in which the app will be presented.
width is the width of the socket in which the app will be presented.
font is the font the user has selected. The app should respond accordingly.
destination_url is the url address that will be opened by the nowspots tracking api when the user clicks an app. This behavior can be prevented, please see the documentation relating to the nowspots tracking api.
It is strongly suggested that the app should respond responsibly to the height, width and font parameters passed on the query string. If not, the whole user experience thing gets thrown off and the overall quality of the product suffers.
In addition, all parameters specified by the user when configuring the settings for the app will be passed via the query string. Remember, these are keys and values that the app defines in the json provided by the "settings url"