Archived topic
Auto Ads inside gp main navigation menu area
5 replies · Started by Derek on October 20, 2018
Hi,
I'm wondering how I can stop Google's auto ads from appearing inside of my main navigation menu. Sometimes ads show up INSIDE the nav menu like where my main menu links are. I have google auto ads set as a hook in gp elements under the location of entire site....if only nav menu were in the exclude options :P
Any direction would be appreciated very much :) Thanks!
Hi Derek,
Not quite sure if I understand.
So you are inserting the add using Hooks? Which hook are you using?
Let me know :)
Hi Leo, sorry I wasn't clear. I have the following in the wp-head hook using elements.
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-#############",
enable_page_level_ads: true
});
</script>
I'm not sure if it's possible to tell them where not to show up. It's strange that Google would choose inside the navigation though. Is there no option to specify a parent element?
Yeah I thought that was weird too. I was hoping the answer was something simple like putting the code in another hook area. Anyway I'll mess around with it and report back if something works, or if I find it's do to something I did with css.
Sounds good. I'll keep my eye out for a solution as well.