Acasă / Articles & guides

AdSense ads.txt example (DIRECT vs RESELLER)

Learn the correct AdSense line and when DIRECT or RESELLER is used.

Most site owners using AdSense directly will use DIRECT in their ads.txt line.

Format:

<exchange>, <account>, DIRECT|RESELLER, <cert_authority_id>

Example (DIRECT):

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

If you're working through a reseller network, your partner may ask you to add a RESELLER line for their account too. Only add entries you actually use.

Keep lines clean: comma-separated fields, optional comments after #.