1.1.2 • Published 9 months ago
nypr-ads v1.1.2
nypr-ads
{{dfp-ad
slotClassNames="l-constrained aligncenter leaderboard"
slot="6483581/leaderboard/wqxr_leaderboard_demo"
target="leaderboard_ad_home"
mapping=(array (array 0 (array 300 50)) (array 758 (array 728 90)) (array 1203 (array 970 415)))
sizes=(array (array 970 415) (array 728 90) (array 300 50))
}}
Things you might want to know when using this addon:
For an ad to display, both the full slot name and the ad size have to match something being served out of DFP
the slot name above is
6483581/leaderboard/wqxr_leaderboard_demo
The mapping parameter above says:
- for screen sizes between 0px wide and 757px wide, use ads from the
300 x 50
slot - for screen sizes between 757px wide and 1203, use ads from the
728 x 90
slot - for screen sizes above 1203 use
970 x 415
- for screen sizes between 0px wide and 757px wide, use ads from the
The sizes above say:
- there is a
970 x 415
slot, a728 x 90
slot, and a300 x 50
slot
- there is a