Skip to content

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

Description

@zdraganov

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions