GET

Get Ads Txt


Retrieves the Ads.txt file.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Ads.txt
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/promote-seo-robots-server/v2/ads

Query Params
subdomainstring

Subdomain of Ads.txt, for example www, es, fr. Default is www.

Response Object
adsTxtAdsTxt

Ads txt object

Get Ads.txt Example
Request
cURL
curl GET https://www.wix.com/_api/promote-seo-txt-file-server/v2/ads \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: <AUTH>' \ -H 'subdomain: www'
Response
JSON
{ "adsTxt": { "content": "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0", "default": false, "subdomain": "www" } }
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?