Google Adsense for smartphones - adsense

I have a website which uses Adsense for the homepage etcetera. Now, I want to replace this one with an mobile ad, also from Adsense. My question is: is this possible? I tried setting the desktop ads to display: none; and implementing a chtml encoded ad, but I get nothing at all...
I have no subdomain for my mobile website; it's just a responsive site. Doesn't that count?
PS: I am testing it on an iPhone

My answer:
Yes it is possible. Patience is the key word. I set them both and used display: none for the desktop version if it is a mobile browser. Now it works like a charm :)

Related

Facebook mobile workaround no longer working

Until today, I was able to add ?ref=ts to a Facebook tab url & it would be mobile-friendly.
Not today. Has anyone else experienced this? Is there a workaround to the workaround?
Link for example: https://www.facebook.com/microartssandbox2015/app/924049424328019/?ref=ts
Works fine on desktop.
However, on mobile, I get:
The page you requested cannot be display right now ...
This has never really worked for me. The general (and well known) workaround is to use an external website and redirect to the Page on desktop. On mobile, you just stay on the external website.

Facebook sharer not working in mobile devices

I have setup a link to share on facebook, this way:
var points=0;
points = update_points(points)
document.getElementById("share-link").innerHTML='<a id="facebook-share" href="http://www.facebook.com/sharer.php?&p[url]=http://www.example.com/index.php?score='+points+'" target="_blank">Facebook</a>
I used javacript to build the link because the url to share depend on score obtained.
So this is working perfectly on desktop browsers (Safari, Firefox, Chrome, IE, etc..). The problem is only with mobile devices. The link doesn't work at all. Actually the link sent to sharer through mobile devices is something like "http://":
I managed to solve the issue by changing the url like that:
document.getElementById("share-link").innerHTML='<a id="facebook-share" href="http://www.facebook.com/sharer.php?u=http://www.example.com/index.php?score='+points+'" target="_blank">Facebook</a>
So the problem seems to be the "&p[url]" in url (that is working well on all desktop browsers):
http://www.facebook.com/sharer.php?&p[url]=
You may then prefer this approach which seems less buggy:
http://www.facebook.com/sharer.php?u=

Mobile e-mail body : change links depending on client apps

Note : read both answers below, thery helped us.
Original question:
Want to show appropriate deep link : http://en.wikipedia.org/wiki/Mobile_deep_linking so if android and no our app installed : show android app link, else html page link
App sends email to users. Want to be able to change links depending on device. If desktop - as is. If mobile go thru mail body and add "m." to all the href OR other link if our native app installed.
Do mobile mail clients run js?
Do I need to encode the js in anyway. Tried google but not able to get the right keywords to search for. End up on page about send grid or using js to send an email.
I want js inside email body. I know can change template at server, but want it to be dynamic to current client. So same email opened on desktop -> desktop links ; inside mobile app or browser - mobile links.
Or other html solution would be cool. W3 are you listening?
You can show/hide links depending on device using media queries. Try this:
<style>
#media only screen and (max-device-width: 500px) {
a[class=mobileLink] {
display: inline !important;
font-size: 24px !important;
}
a[class=desktopLink] {
display: none !important;
}
}
</style>
<!-- Starting link switching technique -->
HTML page link
<a href="link/for/mobile/version" class="mobileLink" style="display:none;
font-size:0px">Mobile page link</a>
<!-- End link switching technique -->
Yes, Outlook ignores display:none but if the link is just text, font-size:0px should take care that.
Want to show appropriate deep link : http://en.wikipedia.org/wiki/Mobile_deep_linking so if android and no our app installed : show android app link, else html page link
This cannot be done in emails, but it can be done in landing pages, like the web version of your email.
App sends email to users. Want to be able to change links depending on device. If desktop - as is. If mobile go thru mail body and add "m." to all the href OR other link if our native app installed.
This can be done by using media queries to hide/show desktop or mobile content when appropriate. (Responsive emails.)
Do mobile mail clients run js?
No -- security issues.
Do I need to encode the js in anyway. Tried google but not able to get the right keywords to search for. End up on page about send grid or using js to send an email.
There's nothing you can do to get JS to work in email clients. It just won't work.
I want js inside email body. I know can change template at server, but want it to be dynamic to current client. So same email opened on desktop -> desktop links ; inside mobile app or browser - mobile links.
Once again, this can be done using media queries. (Responsive emails.) There are some drawbacks, but I suggest doing a Google search for "Responsive Emails" to get started.
Or other html solution would be cool. W3 are you listening?
There's nothing they can do in the email world. Unlike web browsers, where there are set standards, in the email world, anything goes.
Edit: Although using media queries to show the appropriate link/button for the devices, it's not a bulletproof solution. The best solution is to use your web server's power to determine where the user should go, depending on their user agent or viewport size.
There is a more modern solution, that is supported natively by mobile platforms.
On ios it's called universal links and on Android app links.

How to make a phone number callable on mobile devices in newsletters?

These are the various options that i have tried using table structure for newsletters. My problem is that on the click of the phone number on mobile devices and it redirects to a new page having the callto or tel in its url, whereas in browsers it redirects to a blank page. Help me out on this.
9865551555
9865551555
Be sure to include the country code. The format found in this tutorial worked well for me.
(986) 555-5155

Google Adsense is not visible

I inserted Google Adsense code to my site, I received mail from Google that all is ok and that adv will work after some hours. but it's third day that it 's not showen. I looked at the browser code and saw that at the script code is written style="display: none; visibility: hidden; "
Why? How can I fix it? What is wrong, can anyone help me?
sometimes not relevant ads with price quote is available ads not shown, but try in other links of same website it will works
remove adblocking softwares and widgets of browsers
may be ads was block due to rules violation
check browser supports adobe flash