how to create a div ?

For developers using the Construct 2 Javascript SDK

Post » Wed Jun 29, 2016 3:38 pm

I am trying to integrate google IMA SDK:
https://developers.google.com/interacti ... try-it-out

how can make this function work?

Code: Select all
function createAdDisplayContainer() {
  // We assume the adContainer is the DOM id of the element that will house
  // the ads.
 
  adDisplayContainer = new google.ima.AdDisplayContainer(
      document.getElementById('adContainer'), videoContent);
     //document.getElementById('div'), videoContent);
}
B
33
S
8
G
4
Posts: 155
Reputation: 3,752

Post » Thu Jun 30, 2016 2:22 am

Here is the code to create a div in my youtube plugin.
And here is the code to create google youtube object with that div element.

You could also find the sample code of creating html element in official textbox plugin.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Thu Jun 30, 2016 4:50 am

thanks
B
33
S
8
G
4
Posts: 155
Reputation: 3,752


Return to Javascript SDK

Who is online

Users browsing this forum: ST314 and 0 guests