Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
angular-dfp
Advanced tools
Semantic DoubleClick for Publishers (DFP by Google) integration with AngularJS.
<dfp-ad force-safe-frame collapse-if-empty ad-unit="/path/to/my/ad-unit">
<dfp-size width="728" height="90"></dfp-size>
</dfp-ad>
AngularDfp allows you to interact with Google's GPT library and DFP services using only Angular directives, effectively replacing any JavaScript to define and customize your ad slots, as you usually would. Also, it was built especially with infinite-scroll and other dynamic content strategies in mind and has out-of-the-box support for it.
This library solves two problems:
We have defined (nested) directives that effectively cover all the functionality of the GPT library.
In the simplest case, you'll simply want to define an ad with a fixed size. In
that case, you would have a dfp-ad
directive, which requires at least one
nested dfp-size
directive. The dfp-ad
directive additionally takes some
optional attributes, such as the collapseEmptyDiv
option you may be familiar
with from the GPT library. For all options, refer to the documentation, which
can be generated from jsdoc with gulp docs
:
<dfp-ad force-safe-frame
collapse-if-empty
refresh='3s'
ad-unit="/path/to/my/ad-unit">
<dfp-size width="728" height="90"></dfp-size>
</dfp-ad>
A live demo can be found at angular-dfp-demo.appspot.com.
This project is released under the Apache License. For more information, see the LICENSE file.
FAQs
Semantic DoubleClick integration with AngularJS
The npm package angular-dfp receives a total of 0 weekly downloads. As such, angular-dfp popularity was classified as not popular.
We found that angular-dfp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.