-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
executable file
·45 lines (41 loc) · 2.17 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Module: Lazy Loading Ad Slots
Description
===========
The module is using the Doubleclick for Publishers (DFP) as a base for
the google slot declaration/display JavaScript.
It provides a context reaction which is allowing us to configuration bundles.
Installation
============
Copy the module directory in to your Drupal:
/sites/all/modules directory as usual.
Configuration
=============
There is no special configuration page for the module.
All we need to do is create the context that represents
bundles of configurations.
A context reaction will have following parameters:
DFP TAG -- Allows you to choose which DFP tag to use for this
bundle of configurations
IDENTIFIER -- Allows you to specify a string in order to recognize
the bundle when using in a custom implementation
ADD ON SCROLL -- Whether to add the Ad on page instantly(on page load)
or on scroll;
Top pixels -- How many pixels before arriving into the viewable Ad
should request be fired;
AD PLACEMENT -- Allows to input CSS selectors(per line) which determine
where the ad will be added;
Please note that a valid selector has to end up into one
match. For example p:nth-child(3n+0) will not work due to
technical limitation and desiring to not overcomplicate
the JavaScript implementation.
If you specify more than one selectors(per line) - this
is totally fine as the Ad Slot is going to be cloned and
will generate a new Slot ID;
ATTACH HOW -- Whether to add the Ad After or Before specified CSS
selectors;
Don't render the Ad -- This option can be used when we want to send all the
parameters in Drupal.settings but not calling the
JavaScript implementation in order to be handled in
custom implementation;
Async rendering -- Wrap the Slot declaration into cmd.push() to be
handled asynchronously