How do I set my expandable banner to work as google lightbox ad after using GWD?

603 views
Skip to first unread message

Victor Espinoza

unread,
Aug 27, 2015, 7:30:12 PM8/27/15
to Google Web Designer beta

Hello, ive been using the GWD for my banners, but i just saw this double click guide: Set up your HTML5 files and I dont really know how to set those functions and codes directly in GWD.

I realized that there are many codes that are set by default, as the "Enabler" code which is explained in that guide (Add the HTML5 Enabler), but there are many others as the EXPAND TO FULL SCREEN functions, that I dont know how to set.

Ingresar el código aquí...
Events

  • studio.events.StudioEvent.FULLSCREEN_SUPPORT
  • studio.events.StudioEvent.FULLSCREEN_DIMENSIONS
  • studio.events.StudioEvent.FULLSCREEN_EXPAND_START
  • studio.events.StudioEvent.FULLSCREEN_EXPAND_FINISH
  • studio.events.StudioEvent.FULLSCREEN_COLLAPSE_START
  • studio.events.StudioEvent.FULLSCREEN_COLLAPSE_FINISH

Methods

  • Enabler.queryFullscreenSupport()

  • Enabler.queryFullscreenDimensions()

  • Enabler.requestFullscreenExpand(opt_width, opt_height)

  • Enabler.finishFullscreenExpand()

  • Enabler.requestFullscreenCollapse()

  • Enabler.finishFullscreenCollapse()


To set up the fullscreen expand panel:

  1. Set up your variables and register event listeners. To determine if fullscreen is available, call Enabler.queryFullscreenSupport().


     Enabler.addEventListener(studio.events.StudioEvent.FULLSCREEN_SUPPORT,
         
    function(e) {
            supported
    = e.supported;
         
    });
     
    Enabler.queryFullscreenSupport();

    // Show the previously hidden fullscreen button once you know it will work:
     
    if (e.supported) {
         fsBtn
    .style.display = 'block';
     
    }

     


I've studied the codes in your "lightbox video templates" but are quite different from the GWD generated codes. I thought all these functions could be set from GWD as events, but I guess those will be CUSTOM ones.

How Do i set up correctly my expandable banners created in GWD as LIGHTBOX ADS without being a webmaster and with certainty that it will work properly as lightbox ad once loaded (expands/callapses full page, recognizes if i´m in a touchable or not and shows the corresponding invitation,etc) ?

I hope you can help me. Thanks in advance.


Jaz

unread,
Aug 31, 2015, 12:24:06 PM8/31/15
to Google Web Designer beta
Hi All,

We've just released support for this today, check out the announcement: http://goo.gl/5pGkJU

You can also take a look at our new Percent Authoring videos!

thx
jaz
Program Manager, GWD
Reply all
Reply to author
Forward
0 new messages