Trying to add google adsense to a text widget – No luck!

  • Unknown's avatar

    Hi guys,

    I’ve been following directions on adding adverts from Google AdSense to my WordPress site by pasting the codes that are generated when you make an ad in Google AdSense straight into text widgets on my sidebar.

    For example, here’s an ad code:

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– Slim –>
    <ins class=”adsbygoogle”
    style=”display:inline-block;width:300px;height:600px”
    data-ad-client=”ca-pub-5757857188192945″
    data-ad-slot=”6252199315″></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    But pasting these straight into a text widget doesn’t seem to work – the ads aren’t displaying. I’ve tried making my sidebars larger so there’s more space, but still no luck.

    Does anyone know what I’m doing wrong, please?

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi, third party advertising isn’t allowed on WordPress.com sites:

    http://en.support.wordpress.com/advertising/

    Take a look at WordAds:

    WordAds

  • Unknown's avatar

    But my site is hosted on HostGator, not WordPress?

    I thought it was only sites hosted by WordPress that were problematic in that regard?

  • Unknown's avatar

    To add – Just read the advertising article and it specifies that:

    ‘You can run any ads you’d like if you manage your own WordPress installation. More info, including hosting recommendations, can be found at get.wp.com.’

    Mine’s hosted externally from WordPress, so Google AdSense should work fine, yes?

  • Unknown's avatar

    since you are not hosted here – your blog is not supported here

    The site you are asking about does not seem to be hosted on WordPress.COM so you need to make friends over at WordPress.ORG the keepers of the software you are using.

    https://en.forums.wordpress.com/topic/7-things-to-know-before-posting-in-wordpresscom-forums?replies=1

    This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/

    The forum at WordPress.ORG is not connected to WordPress.COM so you will need to open an account at .ORG if you do not already have one. You may use the same email at WordPress.ORG as you do at WordPress.COM.

    For more on the difference: http://support.wordpress.com/com-vs-org/

    If you are asking for help with a WordPress.COM site then we need a link to that site to give you accurate help.

  • The topic ‘Trying to add google adsense to a text widget – No luck!’ is closed to new replies.