Skip to content
Public Ticket #17429

using google ad manager with soledad

Conversation thread

lukeacarpenter replied

Customer Reply

Hi, Thank you for this. I've given up on trying to get this to work at this stage. Thank you for your help though. Luke

PenciDesign Supporter replied

Staff Reply

Hi,

Your ADS code only display 1 time on your page. For the in-feed ADS code, please read this article: https://support.google.com/adsense/answer/9189560?hl=en

Please get the ADS code similar to this:

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

Don't use an ADS code that pushes your ads to the specific ID on Post Feed.

Regards,
PenciDesign.


lukeacarpenter replied

Customer Reply

Hi,

Thanks, I've now got ads appearing in fixed locations like top of post and category pages. Though when I put the google ad manager ad unit tag in the In-feed ads code area it is only showing the ad in the first location. The second and subsequent locations in the feed are blank. I have attached screenshots. I thought I read somewhere that a google ad manager ad unit could only exist once on a page. So I wondered if placing the ad unit tag in the in-feed ads code area works? Should it work showing a different ad from my ad unit line items at the different intervals within the feed of posts?

Thanks, Luke

lukeacarpenter replied

Customer Reply

Hi, Thanks. I had edited so many things and generated tags so many times I messed it up. I have to be honest I was also making a rookie mistake and had adblocker running which I think got me in a mess originally. Your reference pointed me towards publisher console javascript: googletag.openConsole() which was very useful. 

Thanks, Luke

PenciDesign Supporter replied

Staff Reply

Hi,

The Google Ad code display on your page, but you add the wrong location on your ads code, so the ads can't be display. You can see the error on the console of the browser: 

image.png

Please read this article for more information about your issues: https://support.google.com/admanager/answer/9903080?hl=en

Regards,
PenciDesign.


lukeacarpenter started the conversation

Conversation Start

Hi,

I'm hoping that I can use google ad manager with the soledad theme. I have added the google ad manager ad unit body tag to the Add Google Adsense/Custom HTML code locations within the theme that I would like to serve my ads though they don't seem to be working. Should I be able to add the body tag from google ad manager ad unit to this field? For reference I am using header and footer plugin to add the header tag from the google ad manager ad unit that I am trying to serve ads from.

Thanks, Luke

Want to join this conversation or access attachments? Sign in first.