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

Render More than one ads with same sizeMapping values #91

Open
IsmaelMiber opened this issue Dec 5, 2018 · 0 comments
Open

Render More than one ads with same sizeMapping values #91

IsmaelMiber opened this issue Dec 5, 2018 · 0 comments

Comments

@IsmaelMiber
Copy link

IsmaelMiber commented Dec 5, 2018

I have to render ads in a slider so the first slide only render and the other didn't, it only render first one only
any help in it ?

Code:
`<Slider
className="slider row"
{...settings}
prevArrow={}
nextArrow={}
>


<GPT
id="div-gpt-ad-1536488522928-0"
type="filmStrip"
adUnitPath="/58320291/cbc_sofra_desktop/Filmstrip_test"
sizeMapping={[
{ viewport: [0, 0], slot: [320, 480] },
{ viewport: [480, 0], slot: [480, 320] },
{ viewport: [768, 0], slot: [768, 1024] },
{ viewport: [1024, 0], slot: [1024, 768] }
]}
/>

        <div className="ads__element">
          <GPT
            targeting={{ "Film-Strip" : "Video" }}
            id="div-gpt-ad-1543922261963-0"
            type="filmStrip"
            adUnitPath="/58320291/cbc_sofra_desktop/Filmstrip_test"
            sizeMapping={[
              { viewport: [0, 0], slot: [320, 480] },
              { viewport: [480, 0], slot: [480, 320] },
              { viewport: [768, 0], slot: [768, 1024] },
              { viewport: [1024, 0], slot: [1024, 768] }
            ]}
          />
        </div>
    </Slider>`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant