How do I display adsense ads with crosswalk

0 favourites
  • 11 posts
From the Asset Store
StartApp Ads
$11.99 USD
[ C2 ] [ C3 ] support C3 build service | You can use Banner Ads, Interstitial Ads and Video Reward Ads.
  • Does anyone know of a tutorial or a complete example on how to show adsense ads in android/crosswalk apps?

  • Poses iFrame plugin?

  • 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.

  • 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.

  • 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!

  • mobdev brother steps please how you integrate with the game .. send email to me supjana gmail.com

  • So how do you put the adsense into poses iframe?

  • Hi, this works for me:

    • Create a html file like so..
    <!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>
    [/code:3ukmzy5b]
    
    [ul]
    	[li]Change the bit in the middle with the code from google adsense: [url=http://prntscr.com/35sj11]http://prntscr.com/35sj11[/url][/li]
    	[li]Upload the html file to a server[/li]
    	[li]In construct 2, link the html file to the iframe like this: [url=http://prntscr.com/35shhj]http://prntscr.com/35shhj[/url][/li]
    	[li]Laugh <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">[/li]
    [/ul]
  • Hi, this works for me:

    - Create a html file like so..

    <!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>
    [/code:2hqikz1z]
    
    - Change the bit in the middle with the code from google adsense: [url=http://prntscr.com/35sj11]http://prntscr.com/35sj11[/url]
    - Upload the html file to a server
    - In construct 2, link the html file to the iframe like this: [url=http://prntscr.com/35shhj]http://prntscr.com/35shhj[/url]
    - Laugh <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">
    

    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

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yeah, unfortunately I believe Google AdSense specifically for games requires some insane number of minimum game plays per month, last time I checked. If you pass I think you can get their API and such, but otherwise, don't risk getting caught or your money is gone and so is your AdSense.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)