Class LogScrubber

java.lang.Object
com.google.ads.googleads.lib.logging.scrub.LogScrubber

public class LogScrubber extends Object
Implements log scrubbing, e.g. for removing PII.

WARNING: THIS CLASS IS HIGHLY PERFORMANCE SENSITIVE

Every RPC calls this class at least twice (once each for request + response). Be extremely careful not to increase latency. This class is an exception to the "premature optimization is the root of all evil" rule-of-thumb; we should be proactive about optimizing performance here.

  • Field Details

  • Method Details

    • getInstance

      public static LogScrubber getInstance()
    • edit

      public Object edit(Object input)
      Scrubs a given input. Only supports Message instances, all other objects are returned unmodified.