read
This is Part III of integrating Google ads. Previously:
- Part I: Guide to integrating Google Ad Manager
- Part II: How to add Google anchor ad
Integrating interstitial (aka full screen ads) is very similar to anchor ad in Part II.
The only difference is with the publisher tag code and the creative sizes.
Setup Ad Unit
Create a child ad unit eg. interstitial
. Once again, you don’t have to specify the ad sizes.
A full id will be eg. /1234/samwize.com/interstitial
(where 1234 is organization id).
Publisher tag code
googletag.cmd.push(function() {
// Intersitial
googletag.defineOutOfPageSlot('/21861557160/samwize.com/interstitial', googletag.enums.OutOfPageFormat.INTERSTITIAL)
.addService(googletag.pubads());
// Setup anchor, banner ads etc and enableServices()
...
}
Setup Line Order
Similar to anchor ads, this is crucial for interstitial.
For interstitial, the creatives must have these sizes — 300x250, 320x480 or 336x280.