Page-level ads problems!

Posted in: Newspaper
Post count: 67

Where do I put the adsense code Page-level ads in my theme?

The indication is enter the code: <head> tag (or above the <body> tag)

But I did not think …

Can someone help me?

Thank you.

Post count: 23312

Hello Thalisson,

You have to insert the script between the head tag in header section, like this -> http://screencast.com/t/RxHTuwnLPFPj Please try to implement this feature according to their documentation here
-> https://support.google.com/adxseller/answer/6068103?hl=en Also, if you want to display your ad only for certain pages or template, you have to put some conditions through the code to accomplish that. For more references about these functions, please check the codex here -> https://developer.wordpress.org/reference/functions/is_page/ -> https://developer.wordpress.org/reference/functions/is_page_template/
Please notice that is not a simple task and if you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thank you for your understanding!

Post count: 67

Thank you very much!

Worked perfectly!

Post count: 23

Hello Catalin,

With your last instructions, Page-level ads are working great for me on pages! My main concern is, how do I implement it in order to make them appear in all posts? Where do I have to include the code?

Looking forward to hearing from you,

Thank you!

Post count: 22421

Hi,
Well we have not tested them to work on posts. Even the name says it pretty clear: ‘PAGE level’ ads, not post level ads. You will have to ask google if they work on posts as well. We cannot say for sure as we have not tested them. Sorry
Thanks.

Post count: 23

Hi Bogdan,

Thanks for your answer. However, google hasn’t created this kind of ads exclusively for wordpress, that means that the meaning of their PAGE level ads it doesn’t actually refer to the “pages” or “posts” distinction we have in WordPress.

They basically consider page any url on internet. I will ask them anyway but any clue on where could I place them?

Thanks!

Post count: 22421

Hi,

I understand this but this type of ads was not officially tested.
As the reference Catalin gave above with conditions to place them on pages, wordpress offers conditions to check if the “page” is a post:
https://developer.wordpress.org/reference/functions/is_single/
You can try to test without anything else. simply add the above code in the head section of the theme and then use the ad code in the theme panel ad spots. There are post ad spots as well – the article ads.
I hope this helps.

Thank you!

Post count: 1

script adsense ads BantenNews.co.id not showing.

I have updated to Newsmag version 4.2, but I can not put the script in the ads column automatically provided on the theme. Every scripting is always missing after hitting the save button.

Currently installation of adsense script can only be done manually

Post count: 22421

Hello,

This issue is not related to the ads themselves. You have a conflict going on that removes any code you add. It is either a plugin conflict, or file permissions or a rule in your htaccess. Please contact us on our email address at contact@tagdiv.com and provide a link to your site and wp-admin (login information and admin rights) so we can login and investigate. Please also include a link to this conversation.

Thank you!

Post count: 15

Hi, I entered the code page_level ads (google adsense) before that of analitycs, I do not know if it is an impression but it seems that both analytics and page-level ads work …
or at least for sure those at the page level work

Post count: 15

it’s fine with chrome but not with firefox
🙁

Post count: 22421

Hello,

Please check adblock as I keep it active on Firefox as well. Could be worth a shot.
Please also note this is not an official implementation for the page level ads. They were never tested so we cannot assure their full compatibility with the theme. If this method fails, you will have to use an external ad plugin.

Thank you!

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.