Hype HTML5 & Google studio Dynamic Creative

Afternoon everyone!
Just wanted to check whether anyone had had any experience implementing Google Studio Dynamic Creative based off a Google Sheets into a Hype Document;
https://support.google.com/richmedia/answer/3526354?hl=en
I’ve been supplied that so I think it’s doable, but just wanted to check whether anyone had a template or similar I could look over and see exactly where all this stuff is implemented… I learn better looking at source and files rather than reading.

Hope that makes sense :slight_smile:
Thanks all!

I don’t see why this wouldn’t work, but I haven’t encountered this myself. Just make sure that when you link to the spreadsheet, you do it after the enabler has loaded (after the //run things here line below)

// If true, start function. If false, listen for INIT.
window.onload = function() {
  if (Enabler.isInitialized()) {
    enablerInitHandler();
  } else {
    Enabler.addEventListener(studio.events.StudioEvent.INIT, enablerInitHandler);
  }
}

function enablerInitHandler() {
   // run things here. 
document.getElementById('headline').innerHTML = dynamicContent.SampleElement[0].headline;
}

I would run all your setup code as a JS function in the <head> of your document so it can load asynchronously alongside your Hype document. If you’ve made progress on this please share what you can :slight_smile:

any luck? just came across the need for table making solution in need of connecting data…thx

Seems like you’re good for now? Pull data from a Google Spreadsheet to Hype

1 Like

Thanks Daniel, so far so good. can’t say I’m proud but I’m making it work, thank you!

2 Likes

Has anyone managed to figure this out? I am struggling

Can you share what you have so far?

I think this is a good example of it working in Hype:

here’s where it ended up, didn’t go far and haven’t touched it since. no major integrations here pretty basic https://helpfortramilies.org/

1 Like