How do I display adsense ads with crosswalk

Get help using Construct 2

Post » Mon Mar 10, 2014 10:25 pm

Does anyone know of a tutorial or a complete example on how to show adsense ads in android/crosswalk apps?
B
5
Posts: 10
Reputation: 247

Post » Mon Mar 10, 2014 11:56 pm

Poses iFrame plugin?
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Tue Mar 11, 2014 12:35 am

WHere can I get this plugin? I tried using an iframe in the index.html and the ad loaded fine however theres no way to close the ad to go back to the game.
B
5
Posts: 10
Reputation: 247

Post » Tue Mar 11, 2014 1:22 am

I found and installed the plugin. I like how the ad scales but it seems slow and choppy. Also i get the same results after clicking the ad i cannot close the ad and return to the game.
B
5
Posts: 10
Reputation: 247

Post » Sat Mar 22, 2014 6:03 am

AfterI changed the code base to BETA Crosswalk 4.32.76.5 on Cordova 3.3.0 the ad works properly using podes plugin and I am able to use the back button to return to the game :) YAY!
B
5
Posts: 10
Reputation: 247

Post » Tue Mar 25, 2014 12:52 pm

mobdev brother steps please how you integrate with the game .. send email to me supjana @ gmail.com
B
7
S
1
G
1
Posts: 79
Reputation: 716

Post » Sat Mar 29, 2014 7:18 pm

So how do you put the adsense into poses iframe?
B
7
S
1
Posts: 19
Reputation: 495

Post » Mon Mar 31, 2014 4:05 pm

Hi, this works for me:

- Create a html file like so..

Code: Select all
<!DOCTYPE html><!--HTML5 doctype-->
<html><head>
<head>
<title>Google Adsense</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body>


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 <!-- Mobile Banner -->
 <ins class="adsbygoogle"
    style="display:inline-block;width:320px;height:50px"
    data-ad-client="ca-pub-6887935823876135"
    data-ad-slot="8629732603"></ins>
 <script>
  (adsbygoogle = window.adsbygoogle || []).push({});
 </script>


</body>
</html>


- Change the bit in the middle with the code from google adsense: http://prntscr.com/35sj11
- Upload the html file to a server
- In construct 2, link the html file to the iframe like this: http://prntscr.com/35shhj
- Laugh :D
B
10
S
1
Posts: 20
Reputation: 564

Post » Tue Apr 01, 2014 4:11 am

tariqayubi wrote:Hi, this works for me:

- Create a html file like so..

Code: Select all
<!DOCTYPE html><!--HTML5 doctype-->
<html><head>
<head>
<title>Google Adsense</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body>


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 <!-- Mobile Banner -->
 <ins class="adsbygoogle"
    style="display:inline-block;width:320px;height:50px"
    data-ad-client="ca-pub-6887935823876135"
    data-ad-slot="8629732603"></ins>
 <script>
  (adsbygoogle = window.adsbygoogle || []).push({});
 </script>


</body>
</html>


- Change the bit in the middle with the code from google adsense: http://prntscr.com/35sj11
- Upload the html file to a server
- In construct 2, link the html file to the iframe like this: http://prntscr.com/35shhj
- Laugh :D

@tariqayubi

The only problem I see with this is that it is an adsense violation to place ads in an iframe in this manner.

support.google(DOT)com/adsense/answer/1346295
B
7
S
1
Posts: 19
Reputation: 495

Post » Tue Apr 01, 2014 8:43 am

Heya,
Thanks, didn't actually know. Anyway, a good alternative is leadbolt ads which from what I've read DOES allow iframe usage in this way.
B
10
S
1
Posts: 20
Reputation: 564

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests