I'm getting:
Invalid GPT fixed size specification: [[[1024,0],[970,90]],[[768,0],[728,90]],[[330,0],[320,50]]]
My size mapping code looks like this:
window.googletag
.sizeMapping()
.addSize([1024, 0], [970, 90])
.addSize([768, 0], [728, 90])
.addSize([330, 0], [320, 50])
.build()
Does anything look off?
Your script specifies the following :
But what is happening for lower viewport width ? You need to cover all viewport sizes range, starting from 0x0 :
See here for official documentation.
EDIT : the error is about the fixed size, so when you define your slot, you just need to declare the possible creative sizes, not the associated viewport, and THEN apply the sizeMapping :
Detailed here