
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@rentpath/react-simple-dfp
Advanced tools
A simple React component for DFP - DoubleClick for Publishers based on @amobiz/react-simple-dfp.
A simple React component for DFP - DoubleClick for Publishers.
npm install react-simple-dfp
<Dfp adUnitPath='/6355419/Travel' adSize={[728, 90]} adTargeting={{ test: 'infinitescroll' }}/>
{string}, required Full path of the ad unit with the network code and unit code.
"/6355419/Travel"
{array}, required Width and height of the added slot. This is the size that is used in the ad request if no responsive size mapping is provided or the size of the viewport is smaller than the smallest size provided in the mapping.
[728, 90]
{string}, optional ID of the DOM element that will contain this ad unit.
"div-gpt-ad-1234567890123-0"
{object}, optional Sets a custom targeting parameter for this slot. Values set here will overwrite targeting parameters set on the service that this slot uses.
{
"test": "infinitescroll",
"sport": ["rugby", "rowing"]
}
{object}, optional CSS Style for this component.
{
"padding": "20px",
"background": "#fff"
}
{bool}, optional Sets whether the slot component should be hidden when there is no ad in the slot. This overrides the service-level settings.
false
{func}, optional This event is fired when a slot on the page has finished rendering. The event is fired by the service that rendered the slot. Example: To listen to companion ads, add a listener to the companionAds service, not the pubads service.
{func}, optional This event is fired when an impression becomes viewable, according to the Active View criteria.
git clone git@github.com:amobiz/react-simple-dfp.git
cd react-simple-dfp
open index.html
package.jsonNote: Collaborators can also draft a release to set off the package publishing workflow.
FAQs
A simple React component for DFP - DoubleClick for Publishers based on @amobiz/react-simple-dfp.
We found that @rentpath/react-simple-dfp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.