You are here

function hook_adstxt in AdsTxt 8

Same name and namespace in other branches
  1. 7 adstxt.api.php \hook_adstxt()

Add additional lines to the site's ads.txt file.

Return value

array An array of strings to add to the ads.txt.

1 invocation of hook_adstxt()
AdsTxtController::build in src/Controller/AdsTxtController.php
Serves the configured ads.txt file.

File

./adstxt.api.php, line 14
Hooks provided by the adstxt module.

Code

function hook_adstxt() {
  return [
    'greenadexchange.com, 12345, DIRECT, AEC242',
    'blueadexchange.com, 4536, DIRECT',
    'silverssp.com, 9675, RESELLER',
  ];
}