What reaches the analytics and conversion parameter logs: ANY records every custom parameter except the registered ones with recordInAnalytics false; ONLY_VERIFIED records only registered parameters with recordInAnalytics true.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/custom-parameter-policy.do
What reaches the analytics and conversion parameter logs: ANY records every custom parameter except the registered ones with recordInAnalytics false; ONLY_VERIFIED records only registered parameters with recordInAnalytics true. Targeting, macros and click/conversion forwarding never depend on it. Refused while the policy is LEGACY: move the Analytics configuration list first (custom-parameter-policy/adopt-legacy). Logs follow within a minute. Requires the CUSTOM_PARAMETERS admin permission (Admin → Targeting presets → Custom parameters).
Form Params
policystringrequired
ANY or ONLY_VERIFIED
ONLY_VERIFIED
Responses
200
{policy}
400
policy is not ANY or ONLY_VERIFIED
401
Authentication error
403
Insufficient permissions, naming the missing one
409
The Analytics configuration list still decides; adopt it first
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://YOUR-NETWORK-DOMAIN/rest-api/custom-parameter-policy.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["policy"] = "ONLY_VERIFIED" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());