Giter Site home page Giter Site logo

Comments (7)

claudiulodro avatar claudiulodro commented on August 29, 2024

Related issue for non-AMP responsive ads: #51

from newspack-ads.

claudiulodro avatar claudiulodro commented on August 29, 2024

Might be able to do something with fluid layout, possibly combined with multi-size ads

For example, if we set layout="fluid" and add the sizes the user has defined as the multi-size parameter, in theory it would render the largest ad of the defined sizes that would fit the screen. Need to test to make sure it won't render ads that are larger than the viewport, though.

from newspack-ads.

claudiulodro avatar claudiulodro commented on August 29, 2024

The only really good solution here that I've been able to figure out is AMP Plus using the non-AMP ad handling. Then it works nicely. Since this bug doesn't affect in-content ads injected via SCAIP, it's not a huge issue.

from newspack-ads.

claudiulodro avatar claudiulodro commented on August 29, 2024

I dont think it makes sense to have responsive ad blocks after #98. The logic would get weird. Responsive ad blocks can be achieved where necessary by placing two ad units next to each other and hiding/showing the appropriate unit based on viewport size with some custom CSS.

from newspack-ads.

claudiulodro avatar claudiulodro commented on August 29, 2024

Since Ad blocks are primarily used on homepages, after further thinking it does make sense to make them responsive. As far as I can tell, there is no ad placement that wouldn't be improved if the ad was responsive.

from newspack-ads.

kmwilkerson avatar kmwilkerson commented on August 29, 2024

@claudiulodro I believe this issue has been solved with the recent release of #196 -- are we good to close this issue?

from newspack-ads.

miguelpeixe avatar miguelpeixe commented on August 29, 2024

The block was refactored to work with the Placements system and its unified per-provider rendering strategy.

from newspack-ads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.