Support » Plugin: Ads for WP - Advanced Ads & Adsense Solution for WP & AMP » Text-align & responsive banner

  • Resolved Natalya

    (@nalitana)


    Hello! The problem is that alignment is not added in the ad styles, the “text-align” property is empty. And another problem with the Google responsive banner. There are only fixed values in the size list. Therefore, in the version without AMP, banners are not displayed. If you set the size of the adaptive banner and check the “Responsive” box, the banner will not become adaptive anyway. It would be possible to add a block to the “Custom Code”, but then the ad does not appear on the pages and in the Browser Console we will see an error. If you could add adaptive size to your settings, it would be ideal. Or maybe I’m doing something wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Magazine3

    (@magazine3)

    Thank you for using the plugin and amazing feedback!

    Can we please take the issues one by one?

    1) The problem is that alignment is not added in the ad styles, the “text-align” property is empty.
    A) Are you adding the text somewhere or the image banner? Please help me understand why would you need text-align properly?

    2) problem with the Google responsive banner. There are only fixed values in the size list. Therefore, in the version without AMP, banners are not displayed. If you set the size of the adaptive banner and check the “Responsive” box, the banner will not become adaptive anyway.
    A) Can you please share the URL and the exact ad spot which is setup as per the above and the screenshot of that ad’s settings from backend.

    3) It would be possible to add a block to the “Custom Code”, but then the ad does not appear on the pages and in the Browser Console we will see an error.
    A) when you say “add a block” do you mean you are adding a custom code and if so then can you share the code that you are adding so that I can test it myself?

    4) If you could add adaptive size to your settings
    A) I hope by “Adaptive settings” you mean the ad should be resized automatically, if that’s the case, we already have this feature. Or perhaps I’m looking in the wrong direction. Can you elaborate a little on Adaptive settings?

    Hello!
    Block alignment does not work on a site version without AMP. See the screenshot, “text-aligne” property is empty.

    As you know, Google has adaptive (responsive) banners in which there are no fixed sizes. But when adding blocks through the plugin, you must specify a size that is not provided for in the code of responsive Adsense banners. The responsive Google AMP banner also has parameters width = “100vw” and data-auto-format = “rspv”, which are not in the plugin settings. Because of this, the banner does not become responsive and Google says that it is necessary to optimize the ad by making it responsive, i.e. without fixed sizes. Adsense code example.

    There are no sizes in this code of a responsive banner for a site without AMP. But in the plugin I must specify it.

    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-#"
         data-ad-slot="#"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    For example, for AMP, in the plugin settings there is no 320 height and 100vw width, respectively, I can not add this banner. Even if I check the box “responsive”, I still can not choose the height.

    <amp-ad width="100vw" height=320
         type="adsense"
         data-ad-client="ca-pub-#"
         data-ad-slot="#"
         data-auto-format="rspv"
         data-full-width>
      <div overflow></div>
    </amp-ad>
    

    Screenshot text-align and responsive ads

    • This reply was modified 7 months, 1 week ago by Natalya.
    Plugin Author Magazine3

    (@magazine3)

    Thanks for the amazing detailed explanation.

    I have created a bug report for this: https://github.com/ahmedkaludi/ads-for-wp/issues/229

    We will fix this in the upcoming updates for sure.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text-align & responsive banner’ is closed to new replies.