Skip to content
Public Ticket #28679

Ads.txt code

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

1. Please go to Appearance → Customize → Custom CSS then add the following custom CSS code:

#side-ads-right,
#side-ads-left {
    min-height: 800px;
}

2. The code you've added is already showing on the front end, which means the problem doesn't lie with Soledad. The code I sent will force this area to always display with a height of 800px.

HUx43q5.png

Regards,
PenciDesign.



WA replied

Customer Reply

Dear Support, 

After waiting for two days, I see no changes to the right side banner. There is no display of vertical ads on the right side. As shown in the image attached in the previous post. Kindly advise. 

PenciDesign Supporter replied

Staff Reply

Hi,

The problem is that Google has not yet delivered the ad banner to this unit. Please wait a few hours and then check again.

Regards,
PenciDesign.


WA replied

Customer Reply

Please see attachment. I have inserted google ads code for display ads - Vertical banner.

 I have chosen right banner. clicked on Float Left Right Ads. But I don't see the ad displayed. The others for single and homepage is working fine only for the right banner is not working. 

Kindly advise

WA replied

Customer Reply

You are right, I had the wrong code, I was working on it for long hours. Thank you for correcting this. 

PenciDesign Supporter replied

Staff Reply

Hi,

Here is the screenshot containing the custom code you added to the single post. It is already showing on the front-end, but the ads are not displaying, which means you have not added the correct ads code: https://imgur.com/a/tjoxzbj

Please check and make sure you have added the correct ads banner code from Google.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

Your ads.txt file now shows the correct content:

eJAz6zG.png

Please clear all the browser caches and check again.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

Please send me the code you received from Google, and I'll help you add it.

Regards,
PenciDesign.


WA replied

Customer Reply

yes I added the code from google to the ads.txt file which I created and the content is there. But when  I check my website url.ads.txt it's blank. But if you open the file there is Content there. 

I have been trying for the past 10 hours and learning from tutorials it should be a simple copy and paste. 

WA replied

Customer Reply

I copied the ads.txt  content directly from google. copy and paste. 

This is what is shown on google instructions:

Copy and paste the following code into your ads.txt file and upload to your site's root directory. If you have an existing ads.txt file, paste the code there. Changes may take a few days to update. If you're not sure where to add your ads.txt file, go to your site's help page for specific instructions, or see the ads.txt guide for more details.

with google.com and my ID and code.

Google gives the exact code needed to be added to the Ads.txt file. Which I did. It could be its blocked by something.

PenciDesign Supporter replied

Staff Reply

Hi,

Please put the content into the ads.txt file:

# ads.txt file for Example.com
# This file lists the authorized digital advertising sellers for Example.com # Authorized sellers
google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0
appnexus.com, 1234, DIRECT, a1b2c3d4e5f6
rubiconproject.com, 5678, DIRECT, 0abcd1234efgh5678 # Reseller relationships
indexexchange.com, 9876, RESELLER, 1234abcd5678efgh
openx.com, 5432, RESELLER, abc123def456ghi789 # Additional authorized sellers
sovrn.com, 1111, DIRECT, abcdef123456
pubmatic.com, 2222, DIRECT, 123456abcdef
adtech.com, 3333, RESELLER, abc123def456ghi789

Explanation of the format:
  1. Domain Name (e.g., google.com): The domain of the advertising system.
  2. Publisher ID (e.g., pub-1234567890123456): The identifier associated with the account or publisher in the advertising system.
  3. Relationship Type (DIRECT or RESELLER): Indicates if the publisher is directly authorized (DIRECT) or through a reseller (RESELLER).
  4. Certification Authority ID (optional, e.g., f08c47fec0942fa0): An ID that identifies the advertising system in a globally unique manner.

Feel free to modify the example with your specific information.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

If you need to manually insert the ad code, please go to Dashboard → Soledad → Ads Manager.

Regards,
PenciDesign.


WA replied

Customer Reply

I dont like the auto google ads, I would like to add different ads manually copying the code and placing it for all posts only. 

Kindly advise how to add the code for only post pages to place ads in between the content of the posts. 

Where to add the code. In the ads manager tab of the theme. 

PenciDesign Supporter replied

Staff Reply

Hi,

Please also send me your site URL.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

For this case, please send me your WordPress admin account in a PRIVATE reply.
I'll log in and try to help you check this problem.

Regards,
PenciDesign.


WA replied

Customer Reply

I followed the instructions it didn't work. It showed blank.

I used "File Manager Pro" plugin, there is an easy youtube tutorial and it shows how to add the file manually.

I added and I can see the ads.txt file in the root folder. But when i check the URL its not showing ads.txt file. I checked the text entered correct. I checked the file name is correct. 

Kindly advise. 

WA started the conversation

Conversation Start

where do I add Ads.txt code?

I see the theme comes with Ads manager. Is it possible to use these settings for controlling where google ads go instead of using the AdSense by ad unit option to customize the ads locations.

thank you 

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