diff --git a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java index 8206e71e35..6ec4faca92 100644 --- a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java +++ b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java @@ -83,6 +83,7 @@ public static void main(String[] args) throws IOException { * @param customerId the client customer ID. * @throws GoogleAdsException if an API request failed with one or more service errors. */ + // [START get_campaigns] private void runExample(GoogleAdsClient googleAdsClient, long customerId) { try (GoogleAdsServiceClient googleAdsServiceClient = googleAdsClient.getLatestVersion().createGoogleAdsServiceClient()) { @@ -108,4 +109,5 @@ private void runExample(GoogleAdsClient googleAdsClient, long customerId) { } } } + // [END get_campaigns] }