Adsense with Letterbox Scale

Get help using Construct 2

Post » Wed Nov 14, 2012 11:33 pm

[QUOTE=d640k] Actually, I just read Google's docs for their service and they require that the game is built with Flash: "You can only integrate AdSense for games on web-based Flash games." Can't say for certain if that's still valid in 2012, but that's what it says.[/QUOTE]

-1 bad point for Google.
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Post » Thu Nov 15, 2012 12:33 am

@d640k thanks for this info, i'll dig into this next week to find the best solution.cesisco2012-11-15 00:33:49
B
33
S
11
G
9
Posts: 381
Reputation: 10,153

Post » Mon Jan 28, 2013 11:01 am

@d640k

Maybe you should try to implement ads outside the game canvas? Try this:
1. Set absolute position of ad DIV as 0,0
2. Set absolute Y position of Game DIV as adDiv.Height
3. Paste this to your Index.html:
// Size the canvas to fill the browser viewport.
          jQuery(window).resize(function() {
               cr_sizeCanvas(jQuery(window).width(), jQuery(window).height()-50);
          });

// Resizes canvas size at start to fit the ad banner
          jQuery(document).ready(function() {
               cr_sizeCanvas(jQuery(window).width(), jQuery(window).height()-50);
          });

Adjust the value "50" to your adDiv.height.

Works for me. Hope it will work for you :-)
B
7
S
1
G
1
Posts: 15
Reputation: 1,481

Post » Mon Jan 28, 2013 2:04 pm

I've heard of Adsense accounts getting shut down because of HTML5 game integration. It breaches the TOS and is strongly not recommended.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Mon Jan 28, 2013 2:24 pm

[quote]I've heard of Adsense accounts getting shut down because of HTML5 game integration. It breaches the TOS and is strongly not recommended.[/quote]

This. Two people I take seriously were kicked off Adsense in the last 2 weeks.
B
66
S
25
G
30
Posts: 434
Reputation: 18,178

Previous

Return to How do I....?

Who is online

Users browsing this forum: WhosWho and 16 guests