Is there a way to expand an advert outside of the window width within a GPT (Google Publisher Tag) Safeframe?

前端 未结 1 965
日久生厌
日久生厌 2021-01-22 00:07

I am trying to create an advert that will expand past the side of the page. Using the GPT Safeframe preview tool I am receiving the error \"Invalid EXPAND_REQUEST message. Reaso

1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 00:43

    unfortunately, it's not possible to avoid this behaviour, but i made a workaround, that will "wait", until user is scrolled in place, that is suitable to expand, check this example, that will push banner from bottom, when user have enought space from bottom to expand whole creative:

    some lines to make container height
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line
    line

    hope it helps!

    edit:

    I found better solution here: Unable to access contents of a safeframe returned by Google adx

    0 讨论(0)
提交回复
热议问题