Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not use collapseEmptyDivs and onSlotIsViewable. #220

Open
mind-chn opened this issue May 7, 2021 · 0 comments
Open

I can not use collapseEmptyDivs and onSlotIsViewable. #220

mind-chn opened this issue May 7, 2021 · 0 comments
Labels

Comments

@mind-chn
Copy link

mind-chn commented May 7, 2021

  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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants