Auto Expand

1,191 views
Skip to first unread message

ali....@gmail.com

unread,
Oct 7, 2015, 8:21:14 AM10/7/15
to Google Web Designer beta
Need Help

How to set up below code in GWD for Auto Expand Banner.

setTimeout(function() { gwdDoubleClickElement.goToPage('expanding-page'); }, 3000); // expands to page after 3s

Thank You!

San Khong

unread,
Oct 12, 2015, 5:28:35 PM10/12/15
to gwd...@googlegroups.com
You can use Google Web Designer's events for that.

In the Events panel, click the + button to add an event.
Select Target = the banner page
Event = Page > Ready to present the page
Action = add custom action
Configuration = 
setTimeout(function() {
  gwd.actions.gwdDoubleclick.goToPage('gwd-ad', 'expanded-page');
}, 3000); // expands to page after 3s


where 'expanded-page' is the id of the expanded page.

Attached is the file.

Hope it helps.
San
GWD Team


testautoexpand.zip

tbrat...@gmail.com

unread,
Nov 11, 2015, 6:27:45 PM11/11/15
to Google Web Designer beta
I would like only the initial expand to be auto. Once closed the first time with the close button I want the "expand" to be user initiated. The above code auto expands again every time the ad is closed with the close button.

ogilvy...@gmail.com

unread,
Nov 17, 2015, 7:31:01 AM11/17/15
to Google Web Designer beta
I second this request please!

ogilvy...@gmail.com

unread,
Nov 17, 2015, 7:34:39 AM11/17/15
to Google Web Designer beta
OK, I've got it: set the Event to 'Page Loaded' then it only runs when first loading page and after that it can be user initiated :-)

Victor Espinoza

unread,
Nov 17, 2015, 4:29:01 PM11/17/15
to Google Web Designer beta
Hi, i made it with timeline events and duplicating "expanded-page". So, you'll have three pages. Then you set the "expanded-page" as principal one, and in its timeline ad an event which goes to "banner-page" at the time you want.

Then, in the "banner-page", ad an event to expand button that goes to "expanded-page-1" which loops with event too.

San Khong

unread,
Nov 18, 2015, 11:25:57 AM11/18/15
to Google Web Designer beta
Yes, please use Page Loaded since this event is only fired once.  Thank you ogilvyonednx.

rhys.m....@gmail.com

unread,
Mar 1, 2017, 10:38:30 PM3/1/17
to Google Web Designer beta
Hey!

Is there any way to expand only on FIRST page load. So the first time they hit the page it expands, then they close it, but then if they refresh it stays collapsed?

Thanks!

bsadv...@gmail.com

unread,
Nov 27, 2017, 3:02:21 AM11/27/17
to Google Web Designer beta
Hi

Thanks for the solution. But when we run 2 expand creatives on a single page, It does not work

below is the demo link. Can you help on this?

http://images.business-standard.com/ads/testpage2.html

San Khong

unread,
Nov 27, 2017, 5:04:38 PM11/27/17
to Google Web Designer beta
bsadvertise, I don't see the ads in your demo link. Have you tried putting the 2 ads in 2 separate iframes?

Thanks,
San
Google Web Designer team

bsadv...@gmail.com

unread,
Nov 28, 2017, 12:19:00 AM11/28/17
to Google Web Designer beta
Dear San

Yes, I have placed 2 tags on this page. If i put them separately, its serves properly/ But when i put then on a single page. it shows blank spot

These are separate expand creative created in google web designer

http://images.business-standard.com/ads/300x250.html

http://images.business-standard.com/ads/728x90.html

When i combine both the tags on a single page, all the banner spots show blank

http://images.business-standard.com/ads/testpage2.html

San Khong

unread,
Nov 28, 2017, 4:59:43 PM11/28/17
to Google Web Designer beta
Yesterday I clicked on the link and did not see the ads as they appeared as blank. But today I saw them both loaded in Chrome and Firefox. Only the 300x250 expands though. Did you make a change to them?


bsadv...@gmail.com

unread,
Nov 29, 2017, 5:02:51 AM11/29/17
to Google Web Designer beta
Sorry My Mistake

It was because I had ticked the "Serve into a SafeFrame"

I have un-ticked it and the banner is now showing blank

Reply all
Reply to author
Forward
0 new messages