Skip to content

Commit

Permalink
Merge pull request #725 from googleads/add-includecode-tag
Browse files Browse the repository at this point in the history
Update GetCampaigns.java by adding an includecode tag
  • Loading branch information
AnashOommen authored Aug 4, 2023
2 parents 89ce4a2 + 787e6c1 commit 5d57ec7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -108,4 +109,5 @@ private void runExample(GoogleAdsClient googleAdsClient, long customerId) {
}
}
}
// [END get_campaigns]
}

0 comments on commit 5d57ec7

Please sign in to comment.