Skip to content

Add SearchForLanguageAndCarrierConstants example#271

Merged
jradcliff merged 5 commits intomasterfrom
langcarrierconstants-ex
Apr 16, 2020
Merged

Add SearchForLanguageAndCarrierConstants example#271
jradcliff merged 5 commits intomasterfrom
langcarrierconstants-ex

Conversation

@jradcliff
Copy link
Copy Markdown
Member

Based on Perl library example in PR 9 (still under review).

private void runExample(GoogleAdsClient googleAdsClient) {
GeoTargetConstantServiceClient geoTargetClient =
googleAdsClient.getLatestVersion().createGeoTargetConstantServiceClient();
try (GeoTargetConstantServiceClient geoTargetClient =
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key change for this example. Ensures the service client is properly closed upon completion.

@jradcliff jradcliff requested review from devchas and nwbirnie April 8, 2020 15:42
@jradcliff
Copy link
Copy Markdown
Member Author

The Perl example appears to be complete now, but if there are further changes there I'll incorporate them before merging this one.

Copy link
Copy Markdown
Contributor

@devchas devchas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor nit/question.

@jradcliff jradcliff merged commit b17856f into master Apr 16, 2020
@jradcliff jradcliff deleted the langcarrierconstants-ex branch April 16, 2020 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants