Professional Documents
Culture Documents
-
This documentation describes how to implement and use our different formats.
Table of content
1.Formats
1.1 Impact
1.2 Inline
1.3 Skyline
1.4 Billboard
1.5 Static
2. Tag parameters
2.1 Required parameters
2.2 Optional parameters
2.3 Simple API “onReady(api)”
3. Ad Serving in Google Ad Manager (formerly known as DFP 1x1)
Step1: Create a new Ad Unit (Inventory tab)
Step2: Generate tags
Step3: Create a new Order/Line Item (Orders tab)
Step4: Add a new Creative (Creatives tab)
4. Multiple formats on the same page
2
1.Formats
You can checkout live demos of our formats from our gallery:
https://app.impactify.io/formats-gallery
For a better user experience, you can put one or multiple tags per page. You just need to
choose the right formats that you need for your pages.
Note: only the static format is compatible with players included inside a safe iframe.
1.1 Impact
The player is positioned fixed to the viewport, usually at the bottom of the screen.
Mobile Desktop
3
<script>
window.impactifyTag = window.impactifyTag || [];
impactifyTag.push({
appId: 'paste-your-app-id'
,format: 'screen'
,style: 'impact'
});
(function(d, s, id) {
var js, ijs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://ad.impactify.io/static/ad/tag.js';
ijs.parentNode.insertBefore(js, ijs);
}(document, 'script', 'impactify-sdk'));
</script>
4
1.2 Inline
The video player starts out as an in-page video player that is not sticky. As the user scrolls
the page, it transitions from playing in the in-page video player to playing in a sticky video
player like the Impact Screen.
Mobile
Desktop
Paste the tag inside the main column where you want the player to appear:
5
<div id='impactify-screen-inline'></div>
<script>
window.impactifyTag = window.impactifyTag || [];
impactifyTag.push({
appId: 'paste-your-app-id'
,format: 'screen'
,style: 'inline'
});
(function(d, s, id) {
var js, ijs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://ad.impactify.io/static/ad/tag.js';
ijs.parentNode.insertBefore(js, ijs);
}(document, 'script', 'impactify-sdk'));
</script>
6
1.3 Skyline
The Skyline format is an Inline format that's sticky at the top of the viewport.
It starts out as an in-page video player that is not sticky. As the user scrolls the page, it
transitions from playing in the in-page video player to playing in a sticky video player like the
Impact Screen.
Mobile
Desktop
Paste the tag inside the main column where you want the player to appear:
7
<div id='impactify-screen-skyline'></div>
<script>
window.impactifyTag = window.impactifyTag || [];
impactifyTag.push({
appId: 'paste-your-app-id'
,format: 'screen'
,style: 'skyline'
});
(function(d, s, id) {
var js, ijs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://ad.impactify.io/static/ad/tag.js';
ijs.parentNode.insertBefore(js, ijs);
}(document, 'script', 'impactify-sdk'));
</script>
8
1.4 Billboard
The Billboard format starts out at the top of the page as a static (not sticky). As the user
scrolls the page, the format transitions from playing in the in-page video player to playing in a
sticky video player like the Impact format.
The key difference between this format and the Inline is that once the Billboard format is in
impact mode (sticky) and you scroll back up to the top of the page it will not transform back
to a Static format anymore (it will disappear).
Mobile
Desktop
9
Paste the tag inside the <body> tag:
<script>
window.impactifyTag = window.impactifyTag || [];
impactifyTag.push({
appId: 'paste-your-app-id'
,format: 'screen'
,style: 'billboard'
});
(function(d, s, id) {
var js, ijs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://ad.impactify.io/static/ad/tag.js';
ijs.parentNode.insertBefore(js, ijs);
}(document, 'script', 'impactify-sdk'));
</script>
10
1.5 Static
The static format acts like an in-page video player that is not sticky, when the user scrolls
past it it will disappear.
Mobile Desktop
Paste the tag inside the main column where you want the player to appear:
<div id='impactify-screen-static'></div>
<script>
window.impactifyTag = window.impactifyTag || [];
impactifyTag.push({
appId: 'paste-your-app-id'
,format: 'screen'
,style: 'static'
});
(function(d, s, id) {
var js, ijs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://ad.impactify.io/static/ad/tag.js';
ijs.parentNode.insertBefore(js, ijs);
}(document, 'script', 'impactify-sdk'));
</script>
11
2. Tag parameters
This section contains technical information and is targeted towards tech-savvy people that
are familiar with HTML5 and Javascript.
language string change the language to be used by the SDK for language of
things like “Skip ad” translations the browser
onClose function Callback function fired when the format has null
closed
onReady function Callback function fired when the format is ready. null
12
display of the format via the API object.
alwaysMuted boolean Mute the sound of the format every time False
Example code
<script>
window.impactifyTag = window.impactifyTag || [];
impactifyTag.push({
"appId": "myportal.com",
"format": "screen",
"style": "impact",
"disableInitialLoad": true,
"onReady": function(impactifyApi){
// SDK is ready
top.publisherApi = impactifyApi;
},
"onAd": function(){
console.log('Ad started...');
},
"onNoAd": function(){
console.log('No ad to display');
}
});
(function(d, s, id) {
var js, ijs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://ad.impactify.io/static/ad/tag.js';
ijs.parentNode.insertBefore(js, ijs);
}(document, 'script', 'impactify-sdk'));
</script>
13
3. Ad Serving in Google Ad Manager (formerly
known as DFP 1x1)
All of our tags can be delivered via most common ad serving platforms through just a 1×1
pixel tag.
14
Step2: Generate tags
Generate the Google Publisher Tag. Copy and paste the tag in the head and body section of
your HTML.
1. Click on “Generate the tags”.
2. Select the newly created ad unit.
3. Choose “Type” Google Publisher Tag.
4. Copy and paste the tag results in the appropriate sections of your HTML.
15
Step3: Create a new Order/Line Item (Orders tab)
16
Step4: Add a new Creative (Creatives tab)
17
4. Multiple formats on the same page
If you have multiple formats on the same page (exp: four in-line formats) they will
behave like an in-read. When the user scrolls away, one of the in-lines would transform
into impact mode and it will stick to the bottom right corner, while the other formats will
check to see if there is an active format in impact mode, in this case there is one,
therefore the remaining In-line formats will not transform to impact mode and will stay in
in-read mode.
You can see that the top right format has transformed into impact mode at the bottom
right on the page, while the other formats stayed in in-read mode.
18