Skip to content

Commit a4fe895

Browse files
Fix comment in ValidateTextAd code example (googleads#388)
1 parent 970950b commit a4fe895

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

examples/campaign_management/validate_text_ad.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,8 @@ def main(client, customer_id, ad_group_id):
6969
"text ad."
7070
)
7171
for error in ex.failure.errors:
72-
# Note: Depending on the ad type, you may get back policy violation
73-
# errors as either PolicyFindingError or PolicyViolationError.
74-
# ExpandedTextAds return errors as PolicyFindingError, so only this
75-
# case is illustrated here. For additional details, see
72+
# Note: Policy violation errors are returned as PolicyFindingErrors.
73+
# For additional details, see
7674
# https://developers.google.com/google-ads/api/docs/policy-exemption/overview
7775
if (
7876
error.error_code.policy_finding_error

0 commit comments

Comments
 (0)