Skip to content

Commit 5b704f3

Browse files
Fix comment in ValidateTextAd code example (#405)
1 parent 0b06a54 commit 5b704f3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

google-ads-examples/src/main/java/com/google/ads/googleads/examples/campaignmanagement/ValidateTextAd.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ private void runExample(GoogleAdsClient googleAdsClient, long customerId, long a
146146
System.out.println("There were validation error(s) while adding expanded text ad.");
147147

148148
if (e.getGoogleAdsFailure() != null) {
149-
// Note: Depending on the ad type, you may get back policy violation errors as
150-
// either PolicyFindingError or PolicyViolationError. ExpandedTextAds return
151-
// errors as PolicyFindingError, so only this case is illustrated here. See
149+
// Note: Policy violation errors are returned as PolicyFindingErrors. See
152150
// https://developers.google.com/google-ads/api/docs/policy-exemption/overview
153151
// for additional details.
154152
List<GoogleAdsError> policyFindingErrors =

0 commit comments

Comments
 (0)