Skip to content

I can not use collapseEmptyDivs and onSlotIsViewable. #220

@mind-chn

Description

@mind-chn
  1. my code
    <DFPSlotsProvider dfpNetworkId='223513049' collapseEmptyDivs>
    and I put onSlotRender={dfpEventData => console.log('slot 1', dfpEventData)} it's showed
    {slotId: "div-apt-ad-H4YaImS13r", event: cu} event: cu {slot: Zb, serviceName: "publisher_ads", isEmpty: true, slotContentChanged: true, size: null, …} slotId: "div-apt-ad-H4YaImS13r" __proto__: Object
    but dont show the Ads.
    if I dont use this when it's dont have Ads render It's have white space.

And
2. I put onSlotIsViewable={dfpEventData => console.log('slot 1 viewable!.', dfpEventData)} in
But dont have anything in my console :)

Thank for your help. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions