SlideShare a Scribd company logo
WebSpectator for Publishers
IntegrationServices Overview

USA (HQ)
100 Wilshire Blvd
Santa Monica CA, 90401
United States
Phone: (+1) 310 566 0340

Brazil
Avenida das Nações Unidas,
11.541, 14º Andar
04578-907 São Paulo
Phone: (+55) 11 5504 3350

United Kingdom
23 Berkeley Square
London, W1J 6HE
Phone: (+44) 2032 869092

Portugal
Rua Fernando Namora, 4
2º Piso A, Ed. Metropolitan
Business Center
2675-487 Odivelas
Phone: (+351) 21 934 03 22
Contents
Summary............................................................................................................................................................ 2
Overview............................................................................................................................................................ 3
API Samples ....................................................................................................................................................... 4
Real-time ....................................................................................................................................................... 4
Get application data .................................................................................................................................. 5
Get campaign data .................................................................................................................................... 6
Integration services ....................................................................................................................................... 7
Auto-monetizer report by date ................................................................................................................. 7
Auto-monetizer report by website ............................................................................................................ 8
Sample dashboard and report ........................................................................................................................... 9

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

1

21-02-2014
Summary
This document presents a high-level overview about the WebSpectator services and integration API to
provide the necessary means for clients and third-parties data consuming.
WebSpectator offers a consistent, reliable and scalable integration infrastructure, so real-time and
reporting data can easily be consumed by any authorized user, despite of the location or the device he is
accessing from.

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

2

21-02-2014
Overview
The figure below shows the overall picture of the WebSpectator, differentiating how real-time and other
type of data can be consumed from the system.

WebSites

BackOffice

Others

Consume real-time data
(dashboards)

ORTC

Consume
reporting data

Integration services

Internal services and
data processing

Data storage
(business data, real-time data,
reports data)

All the data collected from WebSpectator powered applications is processed, aggregated and stored in
databases, using both on-disk and in-memory approaches to persist historically data, as long as offering a
fast access to most recent available data.
Real-time data, typically for dashboards, is queried and consumed using a third-party component called
ORTC, a real-time infrastructure used to accomplish bidirectional communication between WebSpectator
servers and clients, based on a publish/subscribe pattern, providing integration API for several well-known
languages (.Net, Java, Android, iOS, etc.).WebSpectator BackOffice, for example, feeds dashboards realtime data using JavaScript API, sending and receiving JSON messages.
Other type of logged data, used for reports and graphics, can be accessed via WebSpectator Integration
Services, a HTTP based services layer replying with JSON formatted responses.

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

3

21-02-2014
API Samples
The following sections show examples of using each one of the integration API.

Real-time
Prior to present samples on using this API, it is important to explain how authenticationis done and
messages are sent and received in ORTC system.
Each application is given a unique key used to identify it in the ORTC services and to get an authentication
token. The application key and token are then used toconnect the client to the server and authorize each
request. Real-time messages from the server are received in the client subscribing to channels, using
asynchronous callbacks to process each response.
Once the connection is successfully established, client subscribes to real-time channels, sending a message
signaling WebSpectator it wants to be notified on a period basis about certain types of data. Such a request
is sent using aJSON message, with the following structure:
Request
Property
queryName

Description
Real time query to execute and to retrieve data back to client.

action

Action to be performed for the specified query. Client sends a
start message to begin accepting data messages from server.
When no more data is intended to be received (e.g. the user
leaves the page or the application), client sends a stop message.
The identifier of the application client wants to monitor.
The identifier of the entity being queried.
A session identifier generated by the client.
Frequency (seconds) the query will be executed with and data
returned to the client processing callback.
Number of minutes client wants data grouped by (granularity).
Timespan in hours data will be fetched until now, i.e. get data
from the last specified number of hours.

applicationId
entityId
clientId
interval
dataResolution
hours

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

4

Sample values
ApplicationRTDataQuery
AdUnitRTDataQuery
TopZonesForApplicationRTDataQuery
OrderLineRTDataQuery
start | stop

Integer > 0
Integer > 0
String
Integer > 0
Integer >= 0; if 0, no grouping occurs
Integer > 0

21-02-2014
Get application data
Thissample requests application real-time data within the last 24 hours at a 1 second rate.
Request
{
"queryName": “ApplicationRTDataQuery”,
"action": “start”,
"applicationId": “1”,
“entityId”: “1”,
"clientId": “e4r6”,
"interval": 1,
"dataResolution": 0,
"hours": 24
}

Response
{
"identifier":
{
"queryName": "ApplicationRTDataQuery",
"queryInstanceId": 1581393908,
"entityId": 1,
"resolution": 0,
"fromDate": "2014-01-17 17:00:10"
}
"data":
{
"gtsImpressions": 49556,
"activeDuration": 312388.71161436767,
"outOfFocusClosedSessionsDuration": 2670455.4712917875,
"idleDuration": 2381.779970418662,
"traditionalImpressions": 55252,
"engagedUsers": 302,
"potentialSecondPrintGts": 0,
"totalUsers": 2357,
"weeklyVisitors": 268,
"totalUsersMax": 9108,
"idleUsers": 5,
"avgActiveTimeOnApp": 25.189255281403234,
"engagedClosedSessionsDuration": 494618.11867029744,
"closedSessions": 11246,
"totalDuration": 3745416.2629115265,
"monthlyVisitors": 261,
"iabImpressions": 24409,
"totalUsersMin": 1,
"engagedDuration": 562539.3290029807,
"avgTotalTimeOnApp": 306.8555737885075,
"dailyVisitors": 268,
"avgIdleTimeOnApp": 0.2263763088039973,
"activeUsersMin": 0,
"potentialContinuousGts": 0,
"outOfFocusUsersMax": 5925,
"idleUsersMax": 77,
"engagedUsersMin": 0,
"outOfFocusUsersMin": 0,
"engagedUsersMax": 368,
"potentialGts": 0,
"idleUsersMin": 0,
"activeUsers": 677,
"totalClosedSessionsDuration": 3450897.7828255557,
"idleClosedSessionsDuration": 2545.8279688097537,
"outOfFocusDuration": 2868106.44232376,
"activeClosedSessionsDuration": 283278.3648946608,
"avgEngagedTimeOnApp": 43.98169292817868,
"activeUsersMax": 3138,
"outOfFocusUsers": 1373,
"pageviews": 436,
"avgOutOfFocusTimeOnApp": 237.4582492701216,
"anonymousPageviews": 0
},
}

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

5

21-02-2014
Get campaign data
This sample requests campaign real-time data within the last 24 hours at a 1 second rate.
Request
{
"queryName": “OrderLineRTDataQuery”,
"action": “start”,
"applicationId": “1”,
“entityId”: “123”,
"clientId": “e4r6”,
"interval": 1,
"dataResolution": 0,
"hours": 24
}

Response
{
"identifier":
{
"queryName": "OrderLineRTDataQuery",
"queryInstanceId": 1581454523,
"entityId": 123,
"resolution": 0,
"fromDate": "2014-01-17 17:00:10"
}
"data":
{
"gtsImpressions": 49556,
"activeDuration": 312388.71161436767,
"outOfFocusClosedSessionsDuration": 2670455.4712917875,
"idleDuration": 2381.779970418662,
"traditionalImpressions": 55252,
"engagedUsers": 302,
"potentialSecondPrintGts": 0,
"totalUsers": 2357,
"weeklyVisitors": 268,
"totalUsersMax": 9108,
"idleUsers": 5,
"avgActiveTimeOnApp": 25.189255281403234,
"engagedClosedSessionsDuration": 494618.11867029744,
"closedSessions": 11246,
"totalDuration": 3745416.2629115265,
"monthlyVisitors": 261,
"iabImpressions": 24409,
"totalUsersMin": 1,
"engagedDuration": 562539.3290029807,
"avgTotalTimeOnApp": 306.8555737885075,
"dailyVisitors": 268,
"avgIdleTimeOnApp": 0.2263763088039973,
"activeUsersMin": 0,
"potentialContinuousGts": 0,
"outOfFocusUsersMax": 5925,
"idleUsersMax": 77,
"engagedUsersMin": 0,
"outOfFocusUsersMin": 0,
"engagedUsersMax": 368,
"potentialGts": 0,
"idleUsersMin": 0,
"activeUsers": 677,
"totalClosedSessionsDuration": 3450897.7828255557,
"idleClosedSessionsDuration": 2545.8279688097537,
"outOfFocusDuration": 2868106.44232376,
"activeClosedSessionsDuration": 283278.3648946608,
"avgEngagedTimeOnApp": 43.98169292817868,
"activeUsersMax": 3138,
"outOfFocusUsers": 1373,
"pageviews": 436,
"avgOutOfFocusTimeOnApp": 237.4582492701216,
"anonymousPageviews": 0
},
}

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

6

21-02-2014
Integration services
All the available services included in this API accept as the first required parameter the account private key
associated with each publisher. This key is validated and processed by the WebSpectator servers to
authenticate and ensure authorized access to the requested information.
Invalid authentication or unauthorized access result in an error being returned, as also invalid parameters
specification (for example, inexistent website or start date greater than end date).

Auto-monetizer report by date
Arguments
Key – Account private key
DateStart – Report interval start date in the format “yyyy-MM-dd”, example: 2013-12-24
DateEnd – Report interval end date in the format “yyyy-MM-dd”, example: 2013-12-31
Websites – Optional argument, list of websites public keys separated by comma
Request
http://wsp.webspectator.com/PublicServices/GetAutoMonetizerReportByDate?key=[accountkey]&
dateStart=[yyyy-mm-dd]&dateEnd=[yyyy-mm-dd]&websites=[websites-public-key]

Response
{
"result": [
{
"date": "2013-12-29",
"revenue": 106.505,
"click": 890,
"print": 98155,
"ctr": 0.907,
"ecpm": 1.085
},
{
"date": "2013-12-30",
"revenue": 127.86,
"click": 1151,
"print": 120025,
"ctr": 0.959,
"ecpm": 1.065
}
],
"total": {
"revenue": 234.365,
"click": 2041,
"print": 218180,
"ctr": 0.935,
"ecpm": 1.074
}
}

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

7

21-02-2014
Auto-monetizer report by website
Arguments
Key – Account private key
DateStart – Report interval start date in the format “yyyy-MM-dd”, example: 2013-12-24
DateEnd – Report interval end date in the format “yyyy-MM-dd”, example: 2013-12-31
Websites – Optional argument, list of websites public keys separated by comma
Request
http://wsp.webspectator.com/PublicServices/GetAutoMonetizerReportByWebsite?key=[accountke
y]&dateStart=[yyyy-mm-dd]&dateEnd=[yyyy-mm-dd]&websites=[websites-public-key]

Response
{
"result": [
{
"website": "xpto.org",
"revenue": 30.54,
"click": 317,
"print": 21177,
"ctr": 1.497,
"ecpm": 1.442
},
{
"website": "example.com",
"revenue": 13.47,
"click": 75,
"print": 13713,
"ctr": 0.547,
"ecpm": 0.982
}
],
"total": {
"revenue": 44.01,
"click": 392,
"print": 34890,
"ctr": 1.124,
"ecpm": 1.261
}
}

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

8

21-02-2014
Sample dashboard and report
The figures show examples of how real-time and reporting data can be organized to present a complete
overview about an application or campaign.

WSP v2.0 –Integration Services Overview
Ref:#WS- 201401RF-NP

9

21-02-2014

More Related Content

Viewers also liked

2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"
2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"
2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"
Robert Rodenbaugh
 
Best examples of reputation management: international experience
Best examples of reputation management: international experienceBest examples of reputation management: international experience
Best examples of reputation management: international experience
Corporate Excellence - Centre for Reputation Leadership
 
Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...
Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...
Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...
Corporate Excellence - Centre for Reputation Leadership
 
Economic Update Boston 2011
Economic Update Boston 2011Economic Update Boston 2011
Economic Update Boston 2011
Robert Rodenbaugh
 
Executive summary global issues 2014
Executive summary   global issues 2014Executive summary   global issues 2014
Executive summary global issues 2014
Corporate Excellence - Centre for Reputation Leadership
 
From Corporate Brand to Company Brand: Authenticity, Transparency and Origin
From Corporate Brand to Company Brand: Authenticity, Transparency and OriginFrom Corporate Brand to Company Brand: Authenticity, Transparency and Origin
From Corporate Brand to Company Brand: Authenticity, Transparency and Origin
Corporate Excellence - Centre for Reputation Leadership
 
New Horizons and prospects in strategic management of Corporate Reputation
New Horizons and prospects in strategic management of Corporate ReputationNew Horizons and prospects in strategic management of Corporate Reputation
New Horizons and prospects in strategic management of Corporate Reputation
Corporate Excellence - Centre for Reputation Leadership
 
Becoming a citizen brands
Becoming a citizen brandsBecoming a citizen brands
A quality analysis of relationships within the field of PR
A quality analysis of relationships within the field of PRA quality analysis of relationships within the field of PR
A quality analysis of relationships within the field of PR
Corporate Excellence - Centre for Reputation Leadership
 
Making sense of business
Making sense of businessMaking sense of business
WebSpectator - Time as a measurement
WebSpectator - Time as a measurementWebSpectator - Time as a measurement
WebSpectator - Time as a measurement
David Facter
 
Lincoln
LincolnLincoln
Lincoln
operafreak50
 
David jacobs
David jacobsDavid jacobs
David jacobs
Robert Rodenbaugh
 
Milieuprestatie Bouwbesluit 2012
Milieuprestatie Bouwbesluit 2012Milieuprestatie Bouwbesluit 2012
Milieuprestatie Bouwbesluit 2012
gijrath
 
Arpita mehta mphil(0930006)
Arpita mehta mphil(0930006)Arpita mehta mphil(0930006)
Arpita mehta mphil(0930006)
Ravi Prakash
 
Web spectator time as a measurement
Web spectator   time as a measurementWeb spectator   time as a measurement
Web spectator time as a measurement
David Facter
 
Replikacija u bazama podataka
Replikacija u bazama podatakaReplikacija u bazama podataka
Replikacija u bazama podataka
Vatroslav Mileusnić
 

Viewers also liked (17)

2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"
2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"
2013 Presidents' Forum of St. Louis "The Future of Knowledge Work"
 
Best examples of reputation management: international experience
Best examples of reputation management: international experienceBest examples of reputation management: international experience
Best examples of reputation management: international experience
 
Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...
Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...
Reasons and Emotions that Guide Stakeholder´s Decisions and Have an Impact on...
 
Economic Update Boston 2011
Economic Update Boston 2011Economic Update Boston 2011
Economic Update Boston 2011
 
Executive summary global issues 2014
Executive summary   global issues 2014Executive summary   global issues 2014
Executive summary global issues 2014
 
From Corporate Brand to Company Brand: Authenticity, Transparency and Origin
From Corporate Brand to Company Brand: Authenticity, Transparency and OriginFrom Corporate Brand to Company Brand: Authenticity, Transparency and Origin
From Corporate Brand to Company Brand: Authenticity, Transparency and Origin
 
New Horizons and prospects in strategic management of Corporate Reputation
New Horizons and prospects in strategic management of Corporate ReputationNew Horizons and prospects in strategic management of Corporate Reputation
New Horizons and prospects in strategic management of Corporate Reputation
 
Becoming a citizen brands
Becoming a citizen brandsBecoming a citizen brands
Becoming a citizen brands
 
A quality analysis of relationships within the field of PR
A quality analysis of relationships within the field of PRA quality analysis of relationships within the field of PR
A quality analysis of relationships within the field of PR
 
Making sense of business
Making sense of businessMaking sense of business
Making sense of business
 
WebSpectator - Time as a measurement
WebSpectator - Time as a measurementWebSpectator - Time as a measurement
WebSpectator - Time as a measurement
 
Lincoln
LincolnLincoln
Lincoln
 
David jacobs
David jacobsDavid jacobs
David jacobs
 
Milieuprestatie Bouwbesluit 2012
Milieuprestatie Bouwbesluit 2012Milieuprestatie Bouwbesluit 2012
Milieuprestatie Bouwbesluit 2012
 
Arpita mehta mphil(0930006)
Arpita mehta mphil(0930006)Arpita mehta mphil(0930006)
Arpita mehta mphil(0930006)
 
Web spectator time as a measurement
Web spectator   time as a measurementWeb spectator   time as a measurement
Web spectator time as a measurement
 
Replikacija u bazama podataka
Replikacija u bazama podatakaReplikacija u bazama podataka
Replikacija u bazama podataka
 

Similar to Integration Overview

Salesforce Streaming event - PushTopic and Generic Events
Salesforce Streaming event - PushTopic and Generic EventsSalesforce Streaming event - PushTopic and Generic Events
Salesforce Streaming event - PushTopic and Generic Events
Dhanik Sahni
 
Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)
David McCarter
 
Supporting Enterprise System Rollouts with Splunk
Supporting Enterprise System Rollouts with SplunkSupporting Enterprise System Rollouts with Splunk
Supporting Enterprise System Rollouts with Splunk
Erin Sweeney
 
Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)
David McCarter
 
Elewayte Cloud Computing Advancements
Elewayte Cloud Computing AdvancementsElewayte Cloud Computing Advancements
Elewayte Cloud Computing Advancements
Elewayte
 
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
HostedbyConfluent
 
How build scalable IoT cloud applications with microservices
How build scalable IoT cloud applications with microservicesHow build scalable IoT cloud applications with microservices
How build scalable IoT cloud applications with microservices
Dave Chen
 
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
MSDEVMTL
 
SharePoint 2010 Client Object Model
SharePoint 2010 Client Object ModelSharePoint 2010 Client Object Model
SharePoint 2010 Client Object Model
G. Scott Singleton
 
AWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel AvivAWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel Aviv
Amazon Web Services
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
Tamer Rezk
 
Topic2 Understanding Middleware
Topic2 Understanding MiddlewareTopic2 Understanding Middleware
Topic2 Understanding Middleware
sanjoysanyal
 
No Refresh Needed
No Refresh NeededNo Refresh Needed
No Refresh Needed
Daniel Peter
 
2019 hashiconf seattle_consul_ioc
2019 hashiconf seattle_consul_ioc2019 hashiconf seattle_consul_ioc
2019 hashiconf seattle_consul_ioc
Pierre Souchay
 
Building a web application with ontinuation monads
Building a web application with ontinuation monadsBuilding a web application with ontinuation monads
Building a web application with ontinuation monads
Seitaro Yuuki
 
WP7 & Azure
WP7 & AzureWP7 & Azure
WP7 & Azure
Sam Basu
 
senior software developer .net
senior software developer .netsenior software developer .net
senior software developer .net
Rakesh Kumar Kushwaha
 
Time series databases
Time series databasesTime series databases
Time series databases
Source Ministry
 
4Developers: Time series databases
4Developers: Time series databases4Developers: Time series databases
4Developers: Time series databases
PROIDEA
 
Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...
Duane Bodle
 

Similar to Integration Overview (20)

Salesforce Streaming event - PushTopic and Generic Events
Salesforce Streaming event - PushTopic and Generic EventsSalesforce Streaming event - PushTopic and Generic Events
Salesforce Streaming event - PushTopic and Generic Events
 
Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)
 
Supporting Enterprise System Rollouts with Splunk
Supporting Enterprise System Rollouts with SplunkSupporting Enterprise System Rollouts with Splunk
Supporting Enterprise System Rollouts with Splunk
 
Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)Building nTier Applications with Entity Framework Services (Part 2)
Building nTier Applications with Entity Framework Services (Part 2)
 
Elewayte Cloud Computing Advancements
Elewayte Cloud Computing AdvancementsElewayte Cloud Computing Advancements
Elewayte Cloud Computing Advancements
 
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...A Practical Deep Dive into Observability of Streaming Applications with Kosta...
A Practical Deep Dive into Observability of Streaming Applications with Kosta...
 
How build scalable IoT cloud applications with microservices
How build scalable IoT cloud applications with microservicesHow build scalable IoT cloud applications with microservices
How build scalable IoT cloud applications with microservices
 
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
Stephane Lapointe, Frank Boucher & Alexandre Brisebois: Les micro-services et...
 
SharePoint 2010 Client Object Model
SharePoint 2010 Client Object ModelSharePoint 2010 Client Object Model
SharePoint 2010 Client Object Model
 
AWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel AvivAWS IoT - Best of re:Invent Tel Aviv
AWS IoT - Best of re:Invent Tel Aviv
 
Inter process communication
Inter process communicationInter process communication
Inter process communication
 
Topic2 Understanding Middleware
Topic2 Understanding MiddlewareTopic2 Understanding Middleware
Topic2 Understanding Middleware
 
No Refresh Needed
No Refresh NeededNo Refresh Needed
No Refresh Needed
 
2019 hashiconf seattle_consul_ioc
2019 hashiconf seattle_consul_ioc2019 hashiconf seattle_consul_ioc
2019 hashiconf seattle_consul_ioc
 
Building a web application with ontinuation monads
Building a web application with ontinuation monadsBuilding a web application with ontinuation monads
Building a web application with ontinuation monads
 
WP7 & Azure
WP7 & AzureWP7 & Azure
WP7 & Azure
 
senior software developer .net
senior software developer .netsenior software developer .net
senior software developer .net
 
Time series databases
Time series databasesTime series databases
Time series databases
 
4Developers: Time series databases
4Developers: Time series databases4Developers: Time series databases
4Developers: Time series databases
 
Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...Project Business Case and Capital Justification for Implementation of Applica...
Project Business Case and Capital Justification for Implementation of Applica...
 

Recently uploaded

官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
2zjra9bn
 
Learnings from Successful Jobs Searchers
Learnings from Successful Jobs SearchersLearnings from Successful Jobs Searchers
Learnings from Successful Jobs Searchers
Bruce Bennett
 
How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?
How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?
How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?
NWEXAM
 
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
2zjra9bn
 
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAANBUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
cahgading001
 
Introducing Gopay Mobile App For Environment.pptx
Introducing Gopay Mobile App For Environment.pptxIntroducing Gopay Mobile App For Environment.pptx
Introducing Gopay Mobile App For Environment.pptx
FauzanHarits1
 
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdfSwitching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
SocMediaFin - Joyce Sullivan
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
Bruce Bennett
 
Lbs last rank 2023 9988kr47h4744j445.pdf
Lbs last rank 2023 9988kr47h4744j445.pdfLbs last rank 2023 9988kr47h4744j445.pdf
Lbs last rank 2023 9988kr47h4744j445.pdf
ashiquepa3
 
Leave-rules.ppt CCS leave rules 1972 for central govt employees
Leave-rules.ppt CCS leave rules 1972 for central govt employeesLeave-rules.ppt CCS leave rules 1972 for central govt employees
Leave-rules.ppt CCS leave rules 1972 for central govt employees
Sreenivas702647
 
0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf
Thomas GIRARD BDes
 
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
taqyea
 
thyroid case presentation.pptx Kamala's Lakshaman palatial
thyroid case presentation.pptx Kamala's Lakshaman palatialthyroid case presentation.pptx Kamala's Lakshaman palatial
thyroid case presentation.pptx Kamala's Lakshaman palatial
Aditya Raghav
 
Job Finding Apps Everything You Need to Know in 2024
Job Finding Apps Everything You Need to Know in 2024Job Finding Apps Everything You Need to Know in 2024
Job Finding Apps Everything You Need to Know in 2024
SnapJob
 
Leadership Ambassador club Adventist module
Leadership Ambassador club Adventist moduleLeadership Ambassador club Adventist module
Leadership Ambassador club Adventist module
kakomaeric00
 
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...
dsnow9802
 
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
GabrielleSinaga
 
lab.123456789123456789123456789123456789
lab.123456789123456789123456789123456789lab.123456789123456789123456789123456789
lab.123456789123456789123456789123456789
Ghh
 
labb123456789123456789123456789123456789
labb123456789123456789123456789123456789labb123456789123456789123456789123456789
labb123456789123456789123456789123456789
Ghh
 
5 Common Mistakes to Avoid During the Job Application Process.pdf
5 Common Mistakes to Avoid During the Job Application Process.pdf5 Common Mistakes to Avoid During the Job Application Process.pdf
5 Common Mistakes to Avoid During the Job Application Process.pdf
Alliance Jobs
 

Recently uploaded (20)

官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
官方认证美国旧金山州立大学毕业证学位证书案例原版一模一样
 
Learnings from Successful Jobs Searchers
Learnings from Successful Jobs SearchersLearnings from Successful Jobs Searchers
Learnings from Successful Jobs Searchers
 
How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?
How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?
How to Prepare for Fortinet FCP_FAC_AD-6.5 Certification?
 
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
在线制作加拿大萨省大学毕业证文凭证书实拍图原版一模一样
 
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAANBUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
BUKU PENJAGAAN BUKU PENJAGAAN BUKU PENJAGAAN
 
Introducing Gopay Mobile App For Environment.pptx
Introducing Gopay Mobile App For Environment.pptxIntroducing Gopay Mobile App For Environment.pptx
Introducing Gopay Mobile App For Environment.pptx
 
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdfSwitching Careers Slides - JoyceMSullivan SocMediaFin -  2024Jun11.pdf
Switching Careers Slides - JoyceMSullivan SocMediaFin - 2024Jun11.pdf
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
Lbs last rank 2023 9988kr47h4744j445.pdf
Lbs last rank 2023 9988kr47h4744j445.pdfLbs last rank 2023 9988kr47h4744j445.pdf
Lbs last rank 2023 9988kr47h4744j445.pdf
 
Leave-rules.ppt CCS leave rules 1972 for central govt employees
Leave-rules.ppt CCS leave rules 1972 for central govt employeesLeave-rules.ppt CCS leave rules 1972 for central govt employees
Leave-rules.ppt CCS leave rules 1972 for central govt employees
 
0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf0624.speakingengagementsandteaching-01.pdf
0624.speakingengagementsandteaching-01.pdf
 
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
一比一原版布拉德福德大学毕业证(bradford毕业证)如何办理
 
thyroid case presentation.pptx Kamala's Lakshaman palatial
thyroid case presentation.pptx Kamala's Lakshaman palatialthyroid case presentation.pptx Kamala's Lakshaman palatial
thyroid case presentation.pptx Kamala's Lakshaman palatial
 
Job Finding Apps Everything You Need to Know in 2024
Job Finding Apps Everything You Need to Know in 2024Job Finding Apps Everything You Need to Know in 2024
Job Finding Apps Everything You Need to Know in 2024
 
Leadership Ambassador club Adventist module
Leadership Ambassador club Adventist moduleLeadership Ambassador club Adventist module
Leadership Ambassador club Adventist module
 
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...
 
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
Gabrielle M. A. Sinaga Portfolio, Film Student (2024)
 
lab.123456789123456789123456789123456789
lab.123456789123456789123456789123456789lab.123456789123456789123456789123456789
lab.123456789123456789123456789123456789
 
labb123456789123456789123456789123456789
labb123456789123456789123456789123456789labb123456789123456789123456789123456789
labb123456789123456789123456789123456789
 
5 Common Mistakes to Avoid During the Job Application Process.pdf
5 Common Mistakes to Avoid During the Job Application Process.pdf5 Common Mistakes to Avoid During the Job Application Process.pdf
5 Common Mistakes to Avoid During the Job Application Process.pdf
 

Integration Overview

  • 1. WebSpectator for Publishers IntegrationServices Overview USA (HQ) 100 Wilshire Blvd Santa Monica CA, 90401 United States Phone: (+1) 310 566 0340 Brazil Avenida das Nações Unidas, 11.541, 14º Andar 04578-907 São Paulo Phone: (+55) 11 5504 3350 United Kingdom 23 Berkeley Square London, W1J 6HE Phone: (+44) 2032 869092 Portugal Rua Fernando Namora, 4 2º Piso A, Ed. Metropolitan Business Center 2675-487 Odivelas Phone: (+351) 21 934 03 22
  • 2. Contents Summary............................................................................................................................................................ 2 Overview............................................................................................................................................................ 3 API Samples ....................................................................................................................................................... 4 Real-time ....................................................................................................................................................... 4 Get application data .................................................................................................................................. 5 Get campaign data .................................................................................................................................... 6 Integration services ....................................................................................................................................... 7 Auto-monetizer report by date ................................................................................................................. 7 Auto-monetizer report by website ............................................................................................................ 8 Sample dashboard and report ........................................................................................................................... 9 WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 1 21-02-2014
  • 3. Summary This document presents a high-level overview about the WebSpectator services and integration API to provide the necessary means for clients and third-parties data consuming. WebSpectator offers a consistent, reliable and scalable integration infrastructure, so real-time and reporting data can easily be consumed by any authorized user, despite of the location or the device he is accessing from. WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 2 21-02-2014
  • 4. Overview The figure below shows the overall picture of the WebSpectator, differentiating how real-time and other type of data can be consumed from the system. WebSites BackOffice Others Consume real-time data (dashboards) ORTC Consume reporting data Integration services Internal services and data processing Data storage (business data, real-time data, reports data) All the data collected from WebSpectator powered applications is processed, aggregated and stored in databases, using both on-disk and in-memory approaches to persist historically data, as long as offering a fast access to most recent available data. Real-time data, typically for dashboards, is queried and consumed using a third-party component called ORTC, a real-time infrastructure used to accomplish bidirectional communication between WebSpectator servers and clients, based on a publish/subscribe pattern, providing integration API for several well-known languages (.Net, Java, Android, iOS, etc.).WebSpectator BackOffice, for example, feeds dashboards realtime data using JavaScript API, sending and receiving JSON messages. Other type of logged data, used for reports and graphics, can be accessed via WebSpectator Integration Services, a HTTP based services layer replying with JSON formatted responses. WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 3 21-02-2014
  • 5. API Samples The following sections show examples of using each one of the integration API. Real-time Prior to present samples on using this API, it is important to explain how authenticationis done and messages are sent and received in ORTC system. Each application is given a unique key used to identify it in the ORTC services and to get an authentication token. The application key and token are then used toconnect the client to the server and authorize each request. Real-time messages from the server are received in the client subscribing to channels, using asynchronous callbacks to process each response. Once the connection is successfully established, client subscribes to real-time channels, sending a message signaling WebSpectator it wants to be notified on a period basis about certain types of data. Such a request is sent using aJSON message, with the following structure: Request Property queryName Description Real time query to execute and to retrieve data back to client. action Action to be performed for the specified query. Client sends a start message to begin accepting data messages from server. When no more data is intended to be received (e.g. the user leaves the page or the application), client sends a stop message. The identifier of the application client wants to monitor. The identifier of the entity being queried. A session identifier generated by the client. Frequency (seconds) the query will be executed with and data returned to the client processing callback. Number of minutes client wants data grouped by (granularity). Timespan in hours data will be fetched until now, i.e. get data from the last specified number of hours. applicationId entityId clientId interval dataResolution hours WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 4 Sample values ApplicationRTDataQuery AdUnitRTDataQuery TopZonesForApplicationRTDataQuery OrderLineRTDataQuery start | stop Integer > 0 Integer > 0 String Integer > 0 Integer >= 0; if 0, no grouping occurs Integer > 0 21-02-2014
  • 6. Get application data Thissample requests application real-time data within the last 24 hours at a 1 second rate. Request { "queryName": “ApplicationRTDataQuery”, "action": “start”, "applicationId": “1”, “entityId”: “1”, "clientId": “e4r6”, "interval": 1, "dataResolution": 0, "hours": 24 } Response { "identifier": { "queryName": "ApplicationRTDataQuery", "queryInstanceId": 1581393908, "entityId": 1, "resolution": 0, "fromDate": "2014-01-17 17:00:10" } "data": { "gtsImpressions": 49556, "activeDuration": 312388.71161436767, "outOfFocusClosedSessionsDuration": 2670455.4712917875, "idleDuration": 2381.779970418662, "traditionalImpressions": 55252, "engagedUsers": 302, "potentialSecondPrintGts": 0, "totalUsers": 2357, "weeklyVisitors": 268, "totalUsersMax": 9108, "idleUsers": 5, "avgActiveTimeOnApp": 25.189255281403234, "engagedClosedSessionsDuration": 494618.11867029744, "closedSessions": 11246, "totalDuration": 3745416.2629115265, "monthlyVisitors": 261, "iabImpressions": 24409, "totalUsersMin": 1, "engagedDuration": 562539.3290029807, "avgTotalTimeOnApp": 306.8555737885075, "dailyVisitors": 268, "avgIdleTimeOnApp": 0.2263763088039973, "activeUsersMin": 0, "potentialContinuousGts": 0, "outOfFocusUsersMax": 5925, "idleUsersMax": 77, "engagedUsersMin": 0, "outOfFocusUsersMin": 0, "engagedUsersMax": 368, "potentialGts": 0, "idleUsersMin": 0, "activeUsers": 677, "totalClosedSessionsDuration": 3450897.7828255557, "idleClosedSessionsDuration": 2545.8279688097537, "outOfFocusDuration": 2868106.44232376, "activeClosedSessionsDuration": 283278.3648946608, "avgEngagedTimeOnApp": 43.98169292817868, "activeUsersMax": 3138, "outOfFocusUsers": 1373, "pageviews": 436, "avgOutOfFocusTimeOnApp": 237.4582492701216, "anonymousPageviews": 0 }, } WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 5 21-02-2014
  • 7. Get campaign data This sample requests campaign real-time data within the last 24 hours at a 1 second rate. Request { "queryName": “OrderLineRTDataQuery”, "action": “start”, "applicationId": “1”, “entityId”: “123”, "clientId": “e4r6”, "interval": 1, "dataResolution": 0, "hours": 24 } Response { "identifier": { "queryName": "OrderLineRTDataQuery", "queryInstanceId": 1581454523, "entityId": 123, "resolution": 0, "fromDate": "2014-01-17 17:00:10" } "data": { "gtsImpressions": 49556, "activeDuration": 312388.71161436767, "outOfFocusClosedSessionsDuration": 2670455.4712917875, "idleDuration": 2381.779970418662, "traditionalImpressions": 55252, "engagedUsers": 302, "potentialSecondPrintGts": 0, "totalUsers": 2357, "weeklyVisitors": 268, "totalUsersMax": 9108, "idleUsers": 5, "avgActiveTimeOnApp": 25.189255281403234, "engagedClosedSessionsDuration": 494618.11867029744, "closedSessions": 11246, "totalDuration": 3745416.2629115265, "monthlyVisitors": 261, "iabImpressions": 24409, "totalUsersMin": 1, "engagedDuration": 562539.3290029807, "avgTotalTimeOnApp": 306.8555737885075, "dailyVisitors": 268, "avgIdleTimeOnApp": 0.2263763088039973, "activeUsersMin": 0, "potentialContinuousGts": 0, "outOfFocusUsersMax": 5925, "idleUsersMax": 77, "engagedUsersMin": 0, "outOfFocusUsersMin": 0, "engagedUsersMax": 368, "potentialGts": 0, "idleUsersMin": 0, "activeUsers": 677, "totalClosedSessionsDuration": 3450897.7828255557, "idleClosedSessionsDuration": 2545.8279688097537, "outOfFocusDuration": 2868106.44232376, "activeClosedSessionsDuration": 283278.3648946608, "avgEngagedTimeOnApp": 43.98169292817868, "activeUsersMax": 3138, "outOfFocusUsers": 1373, "pageviews": 436, "avgOutOfFocusTimeOnApp": 237.4582492701216, "anonymousPageviews": 0 }, } WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 6 21-02-2014
  • 8. Integration services All the available services included in this API accept as the first required parameter the account private key associated with each publisher. This key is validated and processed by the WebSpectator servers to authenticate and ensure authorized access to the requested information. Invalid authentication or unauthorized access result in an error being returned, as also invalid parameters specification (for example, inexistent website or start date greater than end date). Auto-monetizer report by date Arguments Key – Account private key DateStart – Report interval start date in the format “yyyy-MM-dd”, example: 2013-12-24 DateEnd – Report interval end date in the format “yyyy-MM-dd”, example: 2013-12-31 Websites – Optional argument, list of websites public keys separated by comma Request http://wsp.webspectator.com/PublicServices/GetAutoMonetizerReportByDate?key=[accountkey]& dateStart=[yyyy-mm-dd]&dateEnd=[yyyy-mm-dd]&websites=[websites-public-key] Response { "result": [ { "date": "2013-12-29", "revenue": 106.505, "click": 890, "print": 98155, "ctr": 0.907, "ecpm": 1.085 }, { "date": "2013-12-30", "revenue": 127.86, "click": 1151, "print": 120025, "ctr": 0.959, "ecpm": 1.065 } ], "total": { "revenue": 234.365, "click": 2041, "print": 218180, "ctr": 0.935, "ecpm": 1.074 } } WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 7 21-02-2014
  • 9. Auto-monetizer report by website Arguments Key – Account private key DateStart – Report interval start date in the format “yyyy-MM-dd”, example: 2013-12-24 DateEnd – Report interval end date in the format “yyyy-MM-dd”, example: 2013-12-31 Websites – Optional argument, list of websites public keys separated by comma Request http://wsp.webspectator.com/PublicServices/GetAutoMonetizerReportByWebsite?key=[accountke y]&dateStart=[yyyy-mm-dd]&dateEnd=[yyyy-mm-dd]&websites=[websites-public-key] Response { "result": [ { "website": "xpto.org", "revenue": 30.54, "click": 317, "print": 21177, "ctr": 1.497, "ecpm": 1.442 }, { "website": "example.com", "revenue": 13.47, "click": 75, "print": 13713, "ctr": 0.547, "ecpm": 0.982 } ], "total": { "revenue": 44.01, "click": 392, "print": 34890, "ctr": 1.124, "ecpm": 1.261 } } WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 8 21-02-2014
  • 10. Sample dashboard and report The figures show examples of how real-time and reporting data can be organized to present a complete overview about an application or campaign. WSP v2.0 –Integration Services Overview Ref:#WS- 201401RF-NP 9 21-02-2014