WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
[resolved] [Plugin: WPtouch] New Google mobile ads (9 posts)

  1. AllyV4
    Member
    Posted 2 years ago #

    Hi,

    I might be wrong but I think that since I've added the new mobile code ads that Google requires us to add before May, the wp-touch code needs to be changed also because the code doesn't match anymore with the new one.

    Now it's something like this:

    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-***MYCODE***";
    google_ad_slot = "***MYCHANNELCODE***";
    google_ad_width = 320;
    google_ad_height = 50;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    I have doubts that with my new code added in wp-touch, clicks are counted or not. So today I tried clicking one ad with my iPhone and for now nothing has been counted by Google Adsense.

    Thanks!

    http://wordpress.org/extend/plugins/wptouch/

  2. AllyV4
    Member
    Posted 2 years ago #

    Anyone?

  3. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    We'll be including a solution for this in a later release soon to maintain compatibility with Adsense for mobile. Just so you know, WPtouch Pro has already been updated to reflect these changes by Google and maintain compatibility.

  4. sykesjs
    Member
    Posted 2 years ago #

    I fixed this by manually editing: wptouch/include/adsense-new.php. I think it is fairly straight forward... just be sure you back the file up in case you need to update the plugin.

  5. mckaymultimedia
    Member
    Posted 2 years ago #

    sykesjs:

    Could you please provide a little more insight into how exactly you modified the adsense-new.php file to make the ads function in compliance with the New Adsense mobile platform.

    I see the difference in formatting between how original adsense-new.php file is compiling the Adsense code and how the new Adsense mobile code appears but I am having some difficulty getting it to appear in the WPTouch. The only thing that is happening with the fixes I have implemented is that a blank space is now appearing in place of the ads, which is an improvement since an error was appearing before.

    Any further clarification you can provide would be greatly appreciated.

  6. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Hi mckaymultimedia,

    Please make sure you're using the latest version of WPtouch. You'll need to simply include your Google publisher ID (with the pub- prefix) in the WPtouch admin panel and your ads should be showing up as normal. This was tested just now on WPtouch 1.9.41 and WordPress 3.4.

  7. mckaymultimedia
    Member
    Posted 2 years ago #

    After extensive research, I came the conclusion that this is a known compatibility issue with Google Adsense code and Windows Mobile OS. So there is not much I can do about it. It works just fine on IOS and Android so it's not so bad. Thanks for the info though. Hopefully this will provide some insight for others that may be dealing with this issue.

  8. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the follow-up mckaymultimedia!

  9. Zbiggy
    Member
    Posted 2 years ago #

    sykesjs Did you update only wptouch/include/adsense-new.php ? or maybe also wptouch/include/adsense.php ?

    BraveNewCode Inc. Member Did you have any news when the problem will be resolved by the plugin update? I am using WPtouch 1.9.42 and it is not working with the Adsense for Content... Ads are shown on the site but are not reported by Adsense.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags