Coder Social home page Coder Social logo

Comments (5)

rinatkhaziev avatar rinatkhaziev commented on August 25, 2024

Hey @tddewey,

What's the use case? E.g. Ad network/ ad platform, example ad code?

from ad-code-manager.

tddewey avatar tddewey commented on August 25, 2024

Doubleclick for publishers, async tag. Each ad_tag_id outputs this:

        <!-- %tag_id% -->
        <div id='%div%' style='width:%width%px; height:%height%px;'>
            <script type='text/javascript'>
                googletag.cmd.push(function() { googletag.display('%div%'); });
            </script>
        </div>

Except for one ad_tag as a placeholder that, in the header, defines the configuration for all of them and adds some targeting variables that are set up in the ad code manager admin. I can paste up my full configuration if it'd help.

from ad-code-manager.

rinatkhaziev avatar rinatkhaziev commented on August 25, 2024

@jeremyfelt what's your 3 cents on this one? I remember your gist with DFP JS config, i checked it but there's nothing regarding whitelisting url. May be we could introduce a filter like acm_no_url_in_tag to skip whitelist check
/cc @danielbachhuber

from ad-code-manager.

danielbachhuber avatar danielbachhuber commented on August 25, 2024

Why don't we just search for the URL token in the string and ignore the whitelist check if there isn't one?

from ad-code-manager.

rinatkhaziev avatar rinatkhaziev commented on August 25, 2024

Totally!

from ad-code-manager.

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.