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
38
S
9
G
4
Posts: 163
Reputation: 3,998

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.
Goodbye
B
111
S
28
G
295
Posts: 4,549
Reputation: 164,228

Post » Thu Jun 30, 2016 4:50 am

thanks
B
38
S
9
G
4
Posts: 163
Reputation: 3,998


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests