Skip to content
ads-block / 5.20.1-rc.3506

ads-block 5.20.1-rc.3506

Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/ads-block@5.20.1-rc.3506
Install via package.json:
"@wpmedia/ads-block": "5.20.1-rc.3506"

About this version

@wpmedia/ads-block

This is the AdsBlock feature that utilizes the ArcAds library to render Google DFP advertisements. It will allow PageBuilder editors to select an 'Ad Type' as well as 'display' configuration option. It also includes the option of displaying or hiding an 'ADVERTISEMENT' label above the ad unit.

Acceptance Criteria

  • Add AC relevant to the block

Props

Prop Required Type Description
adType yes string 'Ad Type' configuration to use for ad unit instance
displayAdLabel yes boolean Indicates whether or not to display advertisement label

ANS Schema

Outline any schema information requirements necessary to know for ths block

ANS Fields

  • n/a

Internationalization fields

Phrase key Default (English)
key english translation

Events

Blocks can emit events. The following is a list of events that are emitted by this block.

Event Name Description
eventName Describe the event

Event Listening

Include block specific instructions for event listening.

OR

This block does not emit any events.

Additional Considerations

  • This block is using arcads@6.1.1. See here for more info on the library. It is a DFP wrapper created by Arc Publishing with publishers in mind. Please note that this package is not supported by Themes developers.