Skip to content

Commit c5aec79

Browse files
authored
Add enable_warnings_2 to example (#517)
Change-Id: I1a491bc4b993e877c7ec813d232354eb6b0db681
1 parent a1c23f4 commit c5aec79

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

google-ads-examples/src/main/java/com/google/ads/googleads/examples/remarketing/UploadStoreSalesTransactions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ private void addTransactionsToOfflineUserDataJob(
488488
userDataJobOperations.size(),
489489
response.getPartialFailureError().getMessage());
490490

491+
// [START enable_warnings_2]
491492
// Checks if any warnings occurred and displays details.
492493
if (response.hasWarning()) {
493494
// Converts the Any in response back to a GoogleAdsFailure object.
@@ -498,6 +499,7 @@ private void addTransactionsToOfflineUserDataJob(
498499
System.out.printf(
499500
"Encountered %d warning(s).%n", warningsFailure.getErrorsCount()));
500501
}
502+
// [END enable_warnings_2]
501503
} else {
502504
System.out.printf(
503505
"Successfully added %d operations to the offline user data job.%n",

0 commit comments

Comments
 (0)