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
34
S
8
G
4
Posts: 158
Reputation: 3,783

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
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Jun 30, 2016 4:50 am

thanks
B
34
S
8
G
4
Posts: 158
Reputation: 3,783


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests