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

Rendering 300x50 height ad always rendering 300x250 ad block #37

Open
zdraganov opened this issue Jun 21, 2024 · 2 comments
Open

Rendering 300x50 height ad always rendering 300x250 ad block #37

zdraganov opened this issue Jun 21, 2024 · 2 comments

Comments

@zdraganov
Copy link

I have set up an ad with horizontal layout 300 width, 50 height, working in test mode.
When I tried to use that one with the Adsense it renders 300x250 empty block.

  <Adsense
    className='adsbygoogle'
    client='ca-pub-XXXXXXXXXX'
    slot='XXXXXXXX'
    adTest={adTest}
    style={{ width: '300px', height: '50px', display: 'lightblue' }}
  />

When I try to do the same but with tag, it works.

<ins className="adsbygoogle"
       client='ca-pub-XXXXXXX'
       slot='XXXXXXX'
       adTest={adTest}
       style={{width: "300px", height: "50px", background: 'lightblue' }}
></ins>

Any idea what I am doing wrong?

@scttcper
Copy link
Owner

@waha99922
Copy link

I'm also having the same issue. Any fix?

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

3 participants