The InfoStride Forum

TECHNOLOGY => Computing and Internet => Topic started by: wealth on Aug 13, 2011, 11:09 AM

Title: Adsense for mobile help
Post by: wealth on Aug 13, 2011, 11:09 AM
Guys pls need help on adsense for mobile placement. I generated the code, include on smf2.0 wap2 using php include but never display, it has pass 150 hours but still not working. Someone pls drop the right code for making it display. Thanks 
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 13, 2011, 02:15 PM
Can you explain the steps already taken?
Title: Re: Adsense for mobile help
Post by: wealth on Aug 13, 2011, 03:44 PM
Thank you. I create a file named ads.php in my forum root and do include('ads.php');
I manage to get 1 page impression in adsense and nothing more. Ad has never show.
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 13, 2011, 07:15 PM
Quote from: wealth on Aug 13, 2011, 03:44 PM
Thank you. I create a file named ads.php in my forum root and do include('ads.php');
I manage to get 1 page impression in adsense and nothing more. Ad has never show.

I will post my instruction later. I am just busy now. Please check back for my post on it.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 14, 2011, 07:50 AM
Quote from: Dewale on Aug 13, 2011, 07:15 PM
Quote from: wealth on Aug 13, 2011, 03:44 PM
Thank you. I create a file named ads.php in my forum root and do include('ads.php');
I manage to get 1 page impression in adsense and nothing more. Ad has never show.

I will post my instruction later. I am just busy now. Please check back for my post on it.
Ok am waiting. Thanks
Title: Re: Adsense for mobile help
Post by: wealth on Aug 14, 2011, 08:59 PM
Reminder please.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 16, 2011, 12:13 PM
Quote from: wealth on Aug 14, 2011, 08:59 PM
Reminder please.
Any help here, it seems topic has been forgotten Lol.... waiting for your kind answers. Thanks
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 16, 2011, 12:49 PM
Your topic is not forgotten. I am only working on some urgent technical issues. I will guide through now.

1. You need to generate Ad Sense code for WAP2.
2. Open Wireless.Template.php in default theme directory in SMF.
3. Create a function for the ad codes as shown below and add before " ?> "

function template_mobileWAP2_Ads()
{
//Starts IFS_Google_AdSense_MobileWAP2

[Ads Code]

//Ends IFS_Google_AdSense_MobileWAP2
}


You next task is to identify where you want your ad to display. Wherever you want the code displayed in the wireless template, just called the following function:

template_mobileWAP2_Ads();

Give it a trial and let me know how it goes.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 16, 2011, 10:43 PM
I actually followed the instructions here but keep parsing errors when viewed with a mobile/pc browser. Thks
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 17, 2011, 03:59 AM
Quote from: wealth on Aug 16, 2011, 10:43 PM
I actually followed the instructions here but keep parsing errors when viewed with a mobile/pc browser. Thks

Can you post the error message or screenshot here?
Title: Re: Adsense for mobile help
Post by: wealth on Aug 17, 2011, 07:04 AM
I don't know how take screen shot in opera-mini view or mobile device. When I visited with opera mini, it displays syntax/parse error
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 17, 2011, 01:44 PM
I am still confused how you generated that codes. Please explain!
Title: Re: Adsense for mobile help
Post by: wealth on Aug 17, 2011, 02:57 PM
Quote from: Dewale on Aug 17, 2011, 01:44 PM
I am still confused how you generated that codes. Please explain!
Well may be your code is an older version.

Adsense for mobile > Device Type > choose Iphone or All Phones > Ad Unit and so on. Finally you submit and get code. Done this process more than 15 times and keep getting the same code
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 17, 2011, 04:05 PM
Quote from: wealth on Aug 17, 2011, 02:57 PM
Quote from: Dewale on Aug 17, 2011, 01:44 PM
I am still confused how you generated that codes. Please explain!
Well may be your code is an older version.

Adsense for mobile > Device Type > choose Iphone or All Phones > Ad Unit and so on. Finally you submit and get code. Done this process more than 15 times and keep getting the same code

I see. You are using old interface and code.

Follow this steps:

1. Switch to New Interface
2. Click on "My ads" in the AdSense Menu
3. Click on "Mobile contents"
4. Create New ad unit
5. Select All Phones

and follow the rest process.... Let me know your result.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 17, 2011, 05:19 PM
Ok gradually coming to solution destination. I followed your last post and got the right results but when I implement the code as instructed, I got the error


Fatal error: Call to undefined function google_set_screen_res() in /home/logger/public_html/Sources/Load.php(2151) : eval()'d code on line 2313
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 17, 2011, 06:16 PM
Use the code I sent initially. Just change Pub ID and AD slotname. I made some re-arrangements while implementing the code then.

Let me know if it works.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 17, 2011, 08:15 PM
Quote from: Dewale on Aug 17, 2011, 06:16 PM
Use the code I sent initially. Just change Pub ID and AD slotname. I made some re-arrangements while implementing the code then.

Let me know if it works.
The following error is displayed when visiting with firefox mozilla browser on a pc



Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Please contact the website owners to inform them of this problem



AND when viewing with opera-mini, hence the following................


Template parse Error
There was a problem loading the /Themes/default/Wireless.template.php

Template or language file.
Please check the syntax and try again - remember, single quotes (') often have to be excape with a slash (\).


     
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 17, 2011, 09:32 PM
Please attach your Wireless.template.php file.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 17, 2011, 10:18 PM
Quote from: Dewale on Aug 17, 2011, 09:32 PM
Please attach your Wireless.template.php file.
Well forum says file too large (maximum allowed 50kb) .... my modified wireless.template.php is more than 100kb. Thanks


2. Hi, is there any way I can still use this sitemap here Sitemap (http://custom.simplemachines.org/mods/index.php?mod=755) but it says corrupt. I manually parse it for 2.0 but it did't show results. Thanks
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 18, 2011, 04:25 AM
Ok. Can I see the exact adsense code you are using?

Please open another topic for Sitemap issue.
Title: Re: Adsense for mobile help
Post by: wealth on Aug 18, 2011, 07:11 AM
Sorry will should close this topic of mine, I am tired but I will open a more better thread on smf sitemap.
Title: Re: Adsense for mobile help
Post by: honeyboi on Aug 20, 2011, 01:43 PM
@ dewale thanks for this info, cause am having the same issue also i did exactly what you wrote with no mistakes but yet it's not working. please help me out. cause i was lookin for help through google thats how i found this trend. thanks in advance.
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 20, 2011, 05:54 PM
Quote from: honeyboi on Aug 20, 2011, 01:43 PM
@ dewale thanks for this info, cause am having the same issue also i did exactly what you wrote with no mistakes but yet it's not working. please help me out. cause i was lookin for help through google thats how i found this trend. thanks in advance.

Which SMF version are you using?

Are you using desktop computer or mobile phone?

Where are you checking the Ads for display? Note that you can only see it on Mobile devices.

Title: Re: Adsense for mobile help
Post by: honeyboi on Aug 21, 2011, 09:20 PM
Quote from: Dewale on Aug 20, 2011, 05:54 PM
Quote from: honeyboi on Aug 20, 2011, 01:43 PM
@ dewale thanks for this info, cause am having the same issue also i did exactly what you wrote with no mistakes but yet it's not working. please help me out. cause i was lookin for help through google thats how i found this trend. thanks in advance.

Which SMF version are you using?

Are you using desktop computer or mobile phone?

Where are you checking the Ads for display? Note that you can only see it on Mobile devices.

I checked it on my mobile it didn't work..

am using smf 2.0
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 21, 2011, 10:31 PM
Were able to view the ads when visited our website (http://www.theinfostride.com (http://www.theinfostride.com))?
Title: Re: Adsense for mobile help
Post by: honeyboi on Aug 22, 2011, 01:03 AM
Quote from: Dewale on Aug 21, 2011, 10:31 PM
Were able to view the ads when visited our website (http://www.theinfostride.com (http://www.theinfostride.com))?

yes cause i used both style on my adsense and admob
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 22, 2011, 04:32 AM
Quote from: honeyboi on Aug 22, 2011, 01:03 AM
yes cause i used both style on my adsense and admob

I don't understand you here. I was asking if you can view TheInfoStrides Ads on your mobile phone when in WAP2.
Title: Re: Adsense for mobile help
Post by: honeyboi on Aug 22, 2011, 05:22 AM
Quote from: Dewale on Aug 22, 2011, 04:32 AM
Quote from: honeyboi on Aug 22, 2011, 01:03 AM
yes cause i used both style on my adsense and admob

I don't understand you here. I was asking if you can view TheInfoStrides Ads on your mobile phone when in WAP2.

yes a google add at the top of your site.
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 22, 2011, 09:24 AM
Ok. I want you to note that there are 3 mobile formats in SMF.

1. WAP2
2. WAP
3. iMode

Explore the WirelessTemplate.php for more details. I'll have to develop a mod that will easily integrate AdSense Mobile Ads with SMF.
Title: Re: Adsense for mobile help
Post by: honeyboi on Aug 22, 2011, 11:24 AM
Yes i know about that bro
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Aug 22, 2011, 01:40 PM
Quote from: honeyboi on Aug 22, 2011, 11:24 AM
Yes i know about that bro

OK
Title: Re: Adsense for mobile help
Post by: MyInfoStride on Sep 04, 2011, 10:18 AM
Good news! SMF Mobile AdSense Manager Mod has just been released. Please visit the link below for details:

SMF Mobile AdSense Manager Mod in WebMaster and SMF Help (http://www.theinfostride.com/forum/index.php?topic=28209)