I've started using the method described here http://www.labnol.org/internet/google-adsense-responsive-design/25252/ for responsive google adsense ads. Any chance this type of functionality could be built into Managed Ads blocks?
I'll do some looking into the existing code and see if anything pops out.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | responsive ad.png | 178.55 KB | subhojit777 |
Comments
Comment #3
mrP commented@jcnventura - That's certainly a viable approach. I've struggled with theme level block display alternatives where caching is concerned.
Nonetheless, there are usable solutions out there without needing to build it into this module.
Thanks for your feedback.
Also, note that Google is rolling out some async code that seems to make it a lot easier to get a responsive ad size. I may add a drupal_alter call to allow themes to change the ad size easily.
I have no idea how to create a generic algorithm to adjust the responsive ad size. I think this really needs to be a theme-level decision.
I've added support for Google's responsive ads solution.
Automatically closed - issue fixed for 2 weeks with no activity.
| Status | File | Size |
|---|---|---|
| new | responsive ad.png | 178.55 KB |
I do not think the issue fixed. I am using this token [adsense:responsive:xxxx], but I do not responsive ad. This is what I get.
Seems like it does not work on window resize, but works in mobile devices though. Google ads were rendering properly in mobile devices and there were no horizontal scrollbars. Thanks :)
Automatically closed - issue fixed for 2 weeks with no activity.
Comment #12
summit commentedHi,
I do not think this is completely fixed see also https://www.drupal.org/node/2585355
I am not able to get responsive ads working as block or as token.
Greetings, Martijn
Opening two issues only helps to waste everyone's time.
Comment #14
summit commentedHi,
That was not my intention. I thought token and working of the block where different issues.
Sorry if I misinterpreted.
Greetings, Martijn
Comment #1
jcnventuraIt would be possible, not sure however, if this should be handled by the module, or by the theme.. You can create the different ad blocks with the module, and have the theme enable/disable the appropriate block.