This recipe teaches you how to add an ads.txt file to your Wix site (for example at https://www.example.com/ads.txt).
import {ok, notFound, serverError} from 'wix-http-functions';
let adstxt = `<ADS.TXT CONTENT FROM ADPLUGG SUPPORT GOES HERE>`;
export function get_Adstxt(request) {
let options = {
"headers": {
"Content-Type": "text/plain"
},
"body": adstxt
};
return ok(options);
}
<ADS.TXT CONTENT FROM ADPLUGG SUPPORT GOES HERE>
in the code with the ads.txt content that you received from AdPlugg Support.