Removes one stored line by its id and returns the advertiser's lines.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/advertisers/{advertiserId}/ads-txt/{lineId}/delete.do
Removes one stored line by its id and returns the advertiser's lines. Requires ENABLED level on the ADVERTISER_ADS_TXT permission and UPDATE permission on the advertiser.
Path Params
advertiserIdintegerrequired
Unique numeric ID of the advertiser
1001
lineIdintegerrequired
ID of the line, as the GET returns it
42
Responses
200
Line removed
400
Bad request — invalid or missing parameters
401
Authentication error
403
No ADVERTISER_ADS_TXT permission, or the advertiser is outside the caller's shares
404
Advertiser not found, or the advertiser has no line with that id
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/advertisers/1001/ads-txt/42/delete.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());