
com.google.ads.googleads.v9.services.package-info Maven / Gradle / Ivy
Show all versions of google-ads-stubs-v9 Show documentation
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* The interfaces provided are listed below, along with usage samples.
*
* ======================= AccessibleBiddingStrategyServiceClient =======================
*
*
Service Description: Service to read accessible bidding strategies.
*
*
Sample for AccessibleBiddingStrategyServiceClient:
*
*
{@code
* try (AccessibleBiddingStrategyServiceClient accessibleBiddingStrategyServiceClient =
* AccessibleBiddingStrategyServiceClient.create()) {
* AccessibleBiddingStrategyName resourceName =
* AccessibleBiddingStrategyName.of("[CUSTOMER_ID]", "[BIDDING_STRATEGY_ID]");
* AccessibleBiddingStrategy response =
* accessibleBiddingStrategyServiceClient.getAccessibleBiddingStrategy(resourceName);
* }
* }
*
* ======================= AccountBudgetProposalServiceClient =======================
*
*
Service Description: A service for managing account-level budgets via proposals.
*
*
A proposal is a request to create a new budget or make changes to an existing one.
*
*
Reads for account-level budgets managed by these proposals will be supported in a future
* version. Until then, please use the BudgetOrderService from the AdWords API. Learn more at
* https://developers.google.com/adwords/api/docs/guides/budget-order
*
*
Mutates: The CREATE operation creates a new proposal. UPDATE operations aren't supported. The
* REMOVE operation cancels a pending proposal.
*
*
Sample for AccountBudgetProposalServiceClient:
*
*
{@code
* try (AccountBudgetProposalServiceClient accountBudgetProposalServiceClient =
* AccountBudgetProposalServiceClient.create()) {
* AccountBudgetProposalName resourceName =
* AccountBudgetProposalName.of("[CUSTOMER_ID]", "[ACCOUNT_BUDGET_PROPOSAL_ID]");
* AccountBudgetProposal response =
* accountBudgetProposalServiceClient.getAccountBudgetProposal(resourceName);
* }
* }
*
* ======================= AccountBudgetServiceClient =======================
*
*
Service Description: A service for fetching an account-level budget.
*
*
Account-level budgets are mutated by creating proposal resources.
*
*
Sample for AccountBudgetServiceClient:
*
*
{@code
* try (AccountBudgetServiceClient accountBudgetServiceClient =
* AccountBudgetServiceClient.create()) {
* AccountBudgetName resourceName = AccountBudgetName.of("[CUSTOMER_ID]", "[ACCOUNT_BUDGET_ID]");
* AccountBudget response = accountBudgetServiceClient.getAccountBudget(resourceName);
* }
* }
*
* ======================= AccountLinkServiceClient =======================
*
*
Service Description: This service allows management of links between Google Ads accounts and
* other accounts.
*
*
Sample for AccountLinkServiceClient:
*
*
{@code
* try (AccountLinkServiceClient accountLinkServiceClient = AccountLinkServiceClient.create()) {
* AccountLinkName resourceName = AccountLinkName.of("[CUSTOMER_ID]", "[ACCOUNT_LINK_ID]");
* AccountLink response = accountLinkServiceClient.getAccountLink(resourceName);
* }
* }
*
* ======================= AdGroupAdAssetViewServiceClient =======================
*
*
Service Description: Service to fetch ad group ad asset views.
*
*
Sample for AdGroupAdAssetViewServiceClient:
*
*
{@code
* try (AdGroupAdAssetViewServiceClient adGroupAdAssetViewServiceClient =
* AdGroupAdAssetViewServiceClient.create()) {
* AdGroupAdAssetViewName resourceName =
* AdGroupAdAssetViewName.of(
* "[CUSTOMER_ID]", "[AD_GROUP_ID]", "[AD_ID]", "[ASSET_ID]", "[FIELD_TYPE]");
* AdGroupAdAssetView response =
* adGroupAdAssetViewServiceClient.getAdGroupAdAssetView(resourceName);
* }
* }
*
* ======================= AdGroupAdLabelServiceClient =======================
*
*
Service Description: Service to manage labels on ad group ads.
*
*
Sample for AdGroupAdLabelServiceClient:
*
*
{@code
* try (AdGroupAdLabelServiceClient adGroupAdLabelServiceClient =
* AdGroupAdLabelServiceClient.create()) {
* AdGroupAdLabelName resourceName =
* AdGroupAdLabelName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[AD_ID]", "[LABEL_ID]");
* AdGroupAdLabel response = adGroupAdLabelServiceClient.getAdGroupAdLabel(resourceName);
* }
* }
*
* ======================= AdGroupAdServiceClient =======================
*
*
Service Description: Service to manage ads in an ad group.
*
*
Sample for AdGroupAdServiceClient:
*
*
{@code
* try (AdGroupAdServiceClient adGroupAdServiceClient = AdGroupAdServiceClient.create()) {
* AdGroupAdName resourceName = AdGroupAdName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[AD_ID]");
* AdGroupAd response = adGroupAdServiceClient.getAdGroupAd(resourceName);
* }
* }
*
* ======================= AdGroupAssetServiceClient =======================
*
*
Service Description: Service to manage ad group assets.
*
*
Sample for AdGroupAssetServiceClient:
*
*
{@code
* try (AdGroupAssetServiceClient adGroupAssetServiceClient = AdGroupAssetServiceClient.create()) {
* AdGroupAssetName resourceName =
* AdGroupAssetName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[ASSET_ID]", "[FIELD_TYPE]");
* AdGroupAsset response = adGroupAssetServiceClient.getAdGroupAsset(resourceName);
* }
* }
*
* ======================= AdGroupAudienceViewServiceClient =======================
*
*
Service Description: Service to manage ad group audience views.
*
*
Sample for AdGroupAudienceViewServiceClient:
*
*
{@code
* try (AdGroupAudienceViewServiceClient adGroupAudienceViewServiceClient =
* AdGroupAudienceViewServiceClient.create()) {
* AdGroupAudienceViewName resourceName =
* AdGroupAudienceViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* AdGroupAudienceView response =
* adGroupAudienceViewServiceClient.getAdGroupAudienceView(resourceName);
* }
* }
*
* ======================= AdGroupBidModifierServiceClient =======================
*
*
Service Description: Service to manage ad group bid modifiers.
*
*
Sample for AdGroupBidModifierServiceClient:
*
*
{@code
* try (AdGroupBidModifierServiceClient adGroupBidModifierServiceClient =
* AdGroupBidModifierServiceClient.create()) {
* AdGroupBidModifierName resourceName =
* AdGroupBidModifierName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* AdGroupBidModifier response =
* adGroupBidModifierServiceClient.getAdGroupBidModifier(resourceName);
* }
* }
*
* ======================= AdGroupCriterionCustomizerServiceClient =======================
*
*
Service Description: Service to manage ad group criterion customizer
*
*
Sample for AdGroupCriterionCustomizerServiceClient:
*
*
{@code
* try (AdGroupCriterionCustomizerServiceClient adGroupCriterionCustomizerServiceClient =
* AdGroupCriterionCustomizerServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateAdGroupCriterionCustomizersResponse response =
* adGroupCriterionCustomizerServiceClient.mutateAdGroupCriterionCustomizers(
* customerId, operations);
* }
* }
*
* ======================= AdGroupCriterionLabelServiceClient =======================
*
*
Service Description: Service to manage labels on ad group criteria.
*
*
Sample for AdGroupCriterionLabelServiceClient:
*
*
{@code
* try (AdGroupCriterionLabelServiceClient adGroupCriterionLabelServiceClient =
* AdGroupCriterionLabelServiceClient.create()) {
* AdGroupCriterionLabelName resourceName =
* AdGroupCriterionLabelName.of(
* "[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]", "[LABEL_ID]");
* AdGroupCriterionLabel response =
* adGroupCriterionLabelServiceClient.getAdGroupCriterionLabel(resourceName);
* }
* }
*
* ======================= AdGroupCriterionServiceClient =======================
*
*
Service Description: Service to manage ad group criteria.
*
*
Sample for AdGroupCriterionServiceClient:
*
*
{@code
* try (AdGroupCriterionServiceClient adGroupCriterionServiceClient =
* AdGroupCriterionServiceClient.create()) {
* AdGroupCriterionName resourceName =
* AdGroupCriterionName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* AdGroupCriterion response = adGroupCriterionServiceClient.getAdGroupCriterion(resourceName);
* }
* }
*
* ======================= AdGroupCriterionSimulationServiceClient =======================
*
*
Service Description: Service to fetch ad group criterion simulations.
*
*
Sample for AdGroupCriterionSimulationServiceClient:
*
*
{@code
* try (AdGroupCriterionSimulationServiceClient adGroupCriterionSimulationServiceClient =
* AdGroupCriterionSimulationServiceClient.create()) {
* AdGroupCriterionSimulationName resourceName =
* AdGroupCriterionSimulationName.of(
* "[CUSTOMER_ID]",
* "[AD_GROUP_ID]",
* "[CRITERION_ID]",
* "[TYPE]",
* "[MODIFICATION_METHOD]",
* "[START_DATE]",
* "[END_DATE]");
* AdGroupCriterionSimulation response =
* adGroupCriterionSimulationServiceClient.getAdGroupCriterionSimulation(resourceName);
* }
* }
*
* ======================= AdGroupCustomizerServiceClient =======================
*
*
Service Description: Service to manage ad group customizer
*
*
Sample for AdGroupCustomizerServiceClient:
*
*
{@code
* try (AdGroupCustomizerServiceClient adGroupCustomizerServiceClient =
* AdGroupCustomizerServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateAdGroupCustomizersResponse response =
* adGroupCustomizerServiceClient.mutateAdGroupCustomizers(customerId, operations);
* }
* }
*
* ======================= AdGroupExtensionSettingServiceClient =======================
*
*
Service Description: Service to manage ad group extension settings.
*
*
Sample for AdGroupExtensionSettingServiceClient:
*
*
{@code
* try (AdGroupExtensionSettingServiceClient adGroupExtensionSettingServiceClient =
* AdGroupExtensionSettingServiceClient.create()) {
* AdGroupExtensionSettingName resourceName =
* AdGroupExtensionSettingName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[EXTENSION_TYPE]");
* AdGroupExtensionSetting response =
* adGroupExtensionSettingServiceClient.getAdGroupExtensionSetting(resourceName);
* }
* }
*
* ======================= AdGroupFeedServiceClient =======================
*
*
Service Description: Service to manage ad group feeds.
*
*
Sample for AdGroupFeedServiceClient:
*
*
{@code
* try (AdGroupFeedServiceClient adGroupFeedServiceClient = AdGroupFeedServiceClient.create()) {
* AdGroupFeedName resourceName =
* AdGroupFeedName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[FEED_ID]");
* AdGroupFeed response = adGroupFeedServiceClient.getAdGroupFeed(resourceName);
* }
* }
*
* ======================= AdGroupLabelServiceClient =======================
*
*
Service Description: Service to manage labels on ad groups.
*
*
Sample for AdGroupLabelServiceClient:
*
*
{@code
* try (AdGroupLabelServiceClient adGroupLabelServiceClient = AdGroupLabelServiceClient.create()) {
* AdGroupLabelName resourceName =
* AdGroupLabelName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[LABEL_ID]");
* AdGroupLabel response = adGroupLabelServiceClient.getAdGroupLabel(resourceName);
* }
* }
*
* ======================= AdGroupServiceClient =======================
*
*
Service Description: Service to manage ad groups.
*
*
Sample for AdGroupServiceClient:
*
*
{@code
* try (AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.create()) {
* AdGroupName resourceName = AdGroupName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]");
* AdGroup response = adGroupServiceClient.getAdGroup(resourceName);
* }
* }
*
* ======================= AdGroupSimulationServiceClient =======================
*
*
Service Description: Service to fetch ad group simulations.
*
*
Sample for AdGroupSimulationServiceClient:
*
*
{@code
* try (AdGroupSimulationServiceClient adGroupSimulationServiceClient =
* AdGroupSimulationServiceClient.create()) {
* AdGroupSimulationName resourceName =
* AdGroupSimulationName.of(
* "[CUSTOMER_ID]",
* "[AD_GROUP_ID]",
* "[TYPE]",
* "[MODIFICATION_METHOD]",
* "[START_DATE]",
* "[END_DATE]");
* AdGroupSimulation response =
* adGroupSimulationServiceClient.getAdGroupSimulation(resourceName);
* }
* }
*
* ======================= AdParameterServiceClient =======================
*
*
Service Description: Service to manage ad parameters.
*
*
Sample for AdParameterServiceClient:
*
*
{@code
* try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
* AdParameterName resourceName =
* AdParameterName.of(
* "[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]", "[PARAMETER_INDEX]");
* AdParameter response = adParameterServiceClient.getAdParameter(resourceName);
* }
* }
*
* ======================= AdScheduleViewServiceClient =======================
*
*
Service Description: Service to fetch ad schedule views.
*
*
Sample for AdScheduleViewServiceClient:
*
*
{@code
* try (AdScheduleViewServiceClient adScheduleViewServiceClient =
* AdScheduleViewServiceClient.create()) {
* AdScheduleViewName resourceName =
* AdScheduleViewName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]");
* AdScheduleView response = adScheduleViewServiceClient.getAdScheduleView(resourceName);
* }
* }
*
* ======================= AdServiceClient =======================
*
*
Service Description: Service to manage ads.
*
*
Sample for AdServiceClient:
*
*
{@code
* try (AdServiceClient adServiceClient = AdServiceClient.create()) {
* AdName resourceName = AdName.of("[CUSTOMER_ID]", "[AD_ID]");
* Ad response = adServiceClient.getAd(resourceName);
* }
* }
*
* ======================= AgeRangeViewServiceClient =======================
*
*
Service Description: Service to manage age range views.
*
*
Sample for AgeRangeViewServiceClient:
*
*
{@code
* try (AgeRangeViewServiceClient ageRangeViewServiceClient = AgeRangeViewServiceClient.create()) {
* AgeRangeViewName resourceName =
* AgeRangeViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* AgeRangeView response = ageRangeViewServiceClient.getAgeRangeView(resourceName);
* }
* }
*
* ======================= AssetFieldTypeViewServiceClient =======================
*
*
Service Description: Service to fetch asset field type views.
*
*
Sample for AssetFieldTypeViewServiceClient:
*
*
{@code
* try (AssetFieldTypeViewServiceClient assetFieldTypeViewServiceClient =
* AssetFieldTypeViewServiceClient.create()) {
* AssetFieldTypeViewName resourceName =
* AssetFieldTypeViewName.of("[CUSTOMER_ID]", "[FIELD_TYPE]");
* AssetFieldTypeView response =
* assetFieldTypeViewServiceClient.getAssetFieldTypeView(resourceName);
* }
* }
*
* ======================= AssetGroupAssetServiceClient =======================
*
*
Service Description: Service to manage asset group asset.
*
*
Sample for AssetGroupAssetServiceClient:
*
*
{@code
* try (AssetGroupAssetServiceClient assetGroupAssetServiceClient =
* AssetGroupAssetServiceClient.create()) {
* AssetGroupAssetName resourceName =
* AssetGroupAssetName.of("[CUSTOMER_ID]", "[ASSET_GROUP_ID]", "[ASSET_ID]", "[FIELD_TYPE]");
* AssetGroupAsset response = assetGroupAssetServiceClient.getAssetGroupAsset(resourceName);
* }
* }
*
* ======================= AssetGroupListingGroupFilterServiceClient =======================
*
*
Service Description: Service to manage asset group listing group filter.
*
*
Sample for AssetGroupListingGroupFilterServiceClient:
*
*
{@code
* try (AssetGroupListingGroupFilterServiceClient assetGroupListingGroupFilterServiceClient =
* AssetGroupListingGroupFilterServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateAssetGroupListingGroupFiltersResponse response =
* assetGroupListingGroupFilterServiceClient.mutateAssetGroupListingGroupFilters(
* customerId, operations);
* }
* }
*
* ======================= AssetGroupServiceClient =======================
*
*
Service Description: Service to manage asset group
*
*
Sample for AssetGroupServiceClient:
*
*
{@code
* try (AssetGroupServiceClient assetGroupServiceClient = AssetGroupServiceClient.create()) {
* AssetGroupName resourceName = AssetGroupName.of("[CUSTOMER_ID]", "[ASSET_GROUP_ID]");
* AssetGroup response = assetGroupServiceClient.getAssetGroup(resourceName);
* }
* }
*
* ======================= AssetServiceClient =======================
*
*
Service Description: Service to manage assets. Asset types can be created with AssetService
* are YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be created with Ad
* inline.
*
*
Sample for AssetServiceClient:
*
*
{@code
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
* AssetName resourceName = AssetName.of("[CUSTOMER_ID]", "[ASSET_ID]");
* Asset response = assetServiceClient.getAsset(resourceName);
* }
* }
*
* ======================= AssetSetAssetServiceClient =======================
*
*
Service Description: Service to manage asset set asset.
*
*
Sample for AssetSetAssetServiceClient:
*
*
{@code
* try (AssetSetAssetServiceClient assetSetAssetServiceClient =
* AssetSetAssetServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateAssetSetAssetsResponse response =
* assetSetAssetServiceClient.mutateAssetSetAssets(customerId, operations);
* }
* }
*
* ======================= AssetSetServiceClient =======================
*
*
Service Description: Service to manage asset set
*
*
Sample for AssetSetServiceClient:
*
*
{@code
* try (AssetSetServiceClient assetSetServiceClient = AssetSetServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateAssetSetsResponse response =
* assetSetServiceClient.mutateAssetSets(customerId, operations);
* }
* }
*
* ======================= BatchJobServiceClient =======================
*
*
Service Description: Service to manage batch jobs.
*
*
Sample for BatchJobServiceClient:
*
*
{@code
* try (BatchJobServiceClient batchJobServiceClient = BatchJobServiceClient.create()) {
* String customerId = "customerId-1581184615";
* BatchJobOperation operation = BatchJobOperation.newBuilder().build();
* MutateBatchJobResponse response = batchJobServiceClient.mutateBatchJob(customerId, operation);
* }
* }
*
* ======================= BiddingDataExclusionServiceClient =======================
*
*
Service Description: Service to manage bidding data exclusions.
*
*
Sample for BiddingDataExclusionServiceClient:
*
*
{@code
* try (BiddingDataExclusionServiceClient biddingDataExclusionServiceClient =
* BiddingDataExclusionServiceClient.create()) {
* BiddingDataExclusionName resourceName =
* BiddingDataExclusionName.of("[CUSTOMER_ID]", "[SEASONALITY_EVENT_ID]");
* BiddingDataExclusion response =
* biddingDataExclusionServiceClient.getBiddingDataExclusion(resourceName);
* }
* }
*
* ======================= BiddingSeasonalityAdjustmentServiceClient =======================
*
*
Service Description: Service to manage bidding seasonality adjustments.
*
*
Sample for BiddingSeasonalityAdjustmentServiceClient:
*
*
{@code
* try (BiddingSeasonalityAdjustmentServiceClient biddingSeasonalityAdjustmentServiceClient =
* BiddingSeasonalityAdjustmentServiceClient.create()) {
* BiddingSeasonalityAdjustmentName resourceName =
* BiddingSeasonalityAdjustmentName.of("[CUSTOMER_ID]", "[SEASONALITY_EVENT_ID]");
* BiddingSeasonalityAdjustment response =
* biddingSeasonalityAdjustmentServiceClient.getBiddingSeasonalityAdjustment(resourceName);
* }
* }
*
* ======================= BiddingStrategyServiceClient =======================
*
*
Service Description: Service to manage bidding strategies.
*
*
Sample for BiddingStrategyServiceClient:
*
*
{@code
* try (BiddingStrategyServiceClient biddingStrategyServiceClient =
* BiddingStrategyServiceClient.create()) {
* BiddingStrategyName resourceName =
* BiddingStrategyName.of("[CUSTOMER_ID]", "[BIDDING_STRATEGY_ID]");
* BiddingStrategy response = biddingStrategyServiceClient.getBiddingStrategy(resourceName);
* }
* }
*
* ======================= BiddingStrategySimulationServiceClient =======================
*
*
Service Description: Service to fetch bidding strategy simulations.
*
*
Sample for BiddingStrategySimulationServiceClient:
*
*
{@code
* try (BiddingStrategySimulationServiceClient biddingStrategySimulationServiceClient =
* BiddingStrategySimulationServiceClient.create()) {
* BiddingStrategySimulationName resourceName =
* BiddingStrategySimulationName.of(
* "[CUSTOMER_ID]",
* "[BIDDING_STRATEGY_ID]",
* "[TYPE]",
* "[MODIFICATION_METHOD]",
* "[START_DATE]",
* "[END_DATE]");
* BiddingStrategySimulation response =
* biddingStrategySimulationServiceClient.getBiddingStrategySimulation(resourceName);
* }
* }
*
* ======================= BillingSetupServiceClient =======================
*
*
Service Description: A service for designating the business entity responsible for accrued
* costs.
*
*
A billing setup is associated with a payments account. Billing-related activity for all
* billing setups associated with a particular payments account will appear on a single invoice
* generated monthly.
*
*
Mutates: The REMOVE operation cancels a pending billing setup. The CREATE operation creates a
* new billing setup.
*
*
Sample for BillingSetupServiceClient:
*
*
{@code
* try (BillingSetupServiceClient billingSetupServiceClient = BillingSetupServiceClient.create()) {
* BillingSetupName resourceName = BillingSetupName.of("[CUSTOMER_ID]", "[BILLING_SETUP_ID]");
* BillingSetup response = billingSetupServiceClient.getBillingSetup(resourceName);
* }
* }
*
* ======================= CampaignAssetServiceClient =======================
*
*
Service Description: Service to manage campaign assets.
*
*
Sample for CampaignAssetServiceClient:
*
*
{@code
* try (CampaignAssetServiceClient campaignAssetServiceClient =
* CampaignAssetServiceClient.create()) {
* CampaignAssetName resourceName =
* CampaignAssetName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[ASSET_ID]", "[FIELD_TYPE]");
* CampaignAsset response = campaignAssetServiceClient.getCampaignAsset(resourceName);
* }
* }
*
* ======================= CampaignAssetSetServiceClient =======================
*
*
Service Description: Service to manage campaign asset set
*
*
Sample for CampaignAssetSetServiceClient:
*
*
{@code
* try (CampaignAssetSetServiceClient campaignAssetSetServiceClient =
* CampaignAssetSetServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCampaignAssetSetsResponse response =
* campaignAssetSetServiceClient.mutateCampaignAssetSets(customerId, operations);
* }
* }
*
* ======================= CampaignAudienceViewServiceClient =======================
*
*
Service Description: Service to manage campaign audience views.
*
*
Sample for CampaignAudienceViewServiceClient:
*
*
{@code
* try (CampaignAudienceViewServiceClient campaignAudienceViewServiceClient =
* CampaignAudienceViewServiceClient.create()) {
* CampaignAudienceViewName resourceName =
* CampaignAudienceViewName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]");
* CampaignAudienceView response =
* campaignAudienceViewServiceClient.getCampaignAudienceView(resourceName);
* }
* }
*
* ======================= CampaignBidModifierServiceClient =======================
*
*
Service Description: Service to manage campaign bid modifiers.
*
*
Sample for CampaignBidModifierServiceClient:
*
*
{@code
* try (CampaignBidModifierServiceClient campaignBidModifierServiceClient =
* CampaignBidModifierServiceClient.create()) {
* CampaignBidModifierName resourceName =
* CampaignBidModifierName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]");
* CampaignBidModifier response =
* campaignBidModifierServiceClient.getCampaignBidModifier(resourceName);
* }
* }
*
* ======================= CampaignBudgetServiceClient =======================
*
*
Service Description: Service to manage campaign budgets.
*
*
Sample for CampaignBudgetServiceClient:
*
*
{@code
* try (CampaignBudgetServiceClient campaignBudgetServiceClient =
* CampaignBudgetServiceClient.create()) {
* CampaignBudgetName resourceName =
* CampaignBudgetName.of("[CUSTOMER_ID]", "[CAMPAIGN_BUDGET_ID]");
* CampaignBudget response = campaignBudgetServiceClient.getCampaignBudget(resourceName);
* }
* }
*
* ======================= CampaignConversionGoalServiceClient =======================
*
*
Service Description: Service to manage campaign conversion goal.
*
*
Sample for CampaignConversionGoalServiceClient:
*
*
{@code
* try (CampaignConversionGoalServiceClient campaignConversionGoalServiceClient =
* CampaignConversionGoalServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCampaignConversionGoalsResponse response =
* campaignConversionGoalServiceClient.mutateCampaignConversionGoals(customerId, operations);
* }
* }
*
* ======================= CampaignCriterionServiceClient =======================
*
*
Service Description: Service to manage campaign criteria.
*
*
Sample for CampaignCriterionServiceClient:
*
*
{@code
* try (CampaignCriterionServiceClient campaignCriterionServiceClient =
* CampaignCriterionServiceClient.create()) {
* CampaignCriterionName resourceName =
* CampaignCriterionName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]");
* CampaignCriterion response =
* campaignCriterionServiceClient.getCampaignCriterion(resourceName);
* }
* }
*
* ======================= CampaignCriterionSimulationServiceClient =======================
*
*
Service Description: Service to fetch campaign criterion simulations.
*
*
Sample for CampaignCriterionSimulationServiceClient:
*
*
{@code
* try (CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient =
* CampaignCriterionSimulationServiceClient.create()) {
* CampaignCriterionSimulationName resourceName =
* CampaignCriterionSimulationName.of(
* "[CUSTOMER_ID]",
* "[CAMPAIGN_ID]",
* "[CRITERION_ID]",
* "[TYPE]",
* "[MODIFICATION_METHOD]",
* "[START_DATE]",
* "[END_DATE]");
* CampaignCriterionSimulation response =
* campaignCriterionSimulationServiceClient.getCampaignCriterionSimulation(resourceName);
* }
* }
*
* ======================= CampaignCustomizerServiceClient =======================
*
*
Service Description: Service to manage campaign customizer
*
*
Sample for CampaignCustomizerServiceClient:
*
*
{@code
* try (CampaignCustomizerServiceClient campaignCustomizerServiceClient =
* CampaignCustomizerServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCampaignCustomizersResponse response =
* campaignCustomizerServiceClient.mutateCampaignCustomizers(customerId, operations);
* }
* }
*
* ======================= CampaignDraftServiceClient =======================
*
*
Service Description: Service to manage campaign drafts.
*
*
Sample for CampaignDraftServiceClient:
*
*
{@code
* try (CampaignDraftServiceClient campaignDraftServiceClient =
* CampaignDraftServiceClient.create()) {
* CampaignDraftName resourceName =
* CampaignDraftName.of("[CUSTOMER_ID]", "[BASE_CAMPAIGN_ID]", "[DRAFT_ID]");
* CampaignDraft response = campaignDraftServiceClient.getCampaignDraft(resourceName);
* }
* }
*
* ======================= CampaignExperimentServiceClient =======================
*
*
Service Description: CampaignExperimentService manages the life cycle of campaign experiments.
* It is used to create new experiments from drafts, modify experiment properties, promote changes
* in an experiment back to its base campaign, graduate experiments into new stand-alone campaigns,
* and to remove an experiment.
*
*
An experiment consists of two variants or arms - the base campaign and the experiment
* campaign, directing a fixed share of traffic to each arm. A campaign experiment is created from a
* draft of changes to the base campaign and will be a snapshot of changes in the draft at the time
* of creation.
*
*
Sample for CampaignExperimentServiceClient:
*
*
{@code
* try (CampaignExperimentServiceClient campaignExperimentServiceClient =
* CampaignExperimentServiceClient.create()) {
* CampaignExperimentName resourceName =
* CampaignExperimentName.of("[CUSTOMER_ID]", "[CAMPAIGN_EXPERIMENT_ID]");
* CampaignExperiment response =
* campaignExperimentServiceClient.getCampaignExperiment(resourceName);
* }
* }
*
* ======================= CampaignExtensionSettingServiceClient =======================
*
*
Service Description: Service to manage campaign extension settings.
*
*
Sample for CampaignExtensionSettingServiceClient:
*
*
{@code
* try (CampaignExtensionSettingServiceClient campaignExtensionSettingServiceClient =
* CampaignExtensionSettingServiceClient.create()) {
* CampaignExtensionSettingName resourceName =
* CampaignExtensionSettingName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[EXTENSION_TYPE]");
* CampaignExtensionSetting response =
* campaignExtensionSettingServiceClient.getCampaignExtensionSetting(resourceName);
* }
* }
*
* ======================= CampaignFeedServiceClient =======================
*
*
Service Description: Service to manage campaign feeds.
*
*
Sample for CampaignFeedServiceClient:
*
*
{@code
* try (CampaignFeedServiceClient campaignFeedServiceClient = CampaignFeedServiceClient.create()) {
* CampaignFeedName resourceName =
* CampaignFeedName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[FEED_ID]");
* CampaignFeed response = campaignFeedServiceClient.getCampaignFeed(resourceName);
* }
* }
*
* ======================= CampaignLabelServiceClient =======================
*
*
Service Description: Service to manage labels on campaigns.
*
*
Sample for CampaignLabelServiceClient:
*
*
{@code
* try (CampaignLabelServiceClient campaignLabelServiceClient =
* CampaignLabelServiceClient.create()) {
* CampaignLabelName resourceName =
* CampaignLabelName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[LABEL_ID]");
* CampaignLabel response = campaignLabelServiceClient.getCampaignLabel(resourceName);
* }
* }
*
* ======================= CampaignServiceClient =======================
*
*
Service Description: Service to manage campaigns.
*
*
Sample for CampaignServiceClient:
*
*
{@code
* try (CampaignServiceClient campaignServiceClient = CampaignServiceClient.create()) {
* CampaignName resourceName = CampaignName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]");
* Campaign response = campaignServiceClient.getCampaign(resourceName);
* }
* }
*
* ======================= CampaignSharedSetServiceClient =======================
*
*
Service Description: Service to manage campaign shared sets.
*
*
Sample for CampaignSharedSetServiceClient:
*
*
{@code
* try (CampaignSharedSetServiceClient campaignSharedSetServiceClient =
* CampaignSharedSetServiceClient.create()) {
* CampaignSharedSetName resourceName =
* CampaignSharedSetName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[SHARED_SET_ID]");
* CampaignSharedSet response =
* campaignSharedSetServiceClient.getCampaignSharedSet(resourceName);
* }
* }
*
* ======================= CampaignSimulationServiceClient =======================
*
*
Service Description: Service to fetch campaign simulations.
*
*
Sample for CampaignSimulationServiceClient:
*
*
{@code
* try (CampaignSimulationServiceClient campaignSimulationServiceClient =
* CampaignSimulationServiceClient.create()) {
* CampaignSimulationName resourceName =
* CampaignSimulationName.of(
* "[CUSTOMER_ID]",
* "[CAMPAIGN_ID]",
* "[TYPE]",
* "[MODIFICATION_METHOD]",
* "[START_DATE]",
* "[END_DATE]");
* CampaignSimulation response =
* campaignSimulationServiceClient.getCampaignSimulation(resourceName);
* }
* }
*
* ======================= CarrierConstantServiceClient =======================
*
*
Service Description: Service to fetch carrier constants.
*
*
Sample for CarrierConstantServiceClient:
*
*
{@code
* try (CarrierConstantServiceClient carrierConstantServiceClient =
* CarrierConstantServiceClient.create()) {
* CarrierConstantName resourceName = CarrierConstantName.of("[CRITERION_ID]");
* CarrierConstant response = carrierConstantServiceClient.getCarrierConstant(resourceName);
* }
* }
*
* ======================= ChangeStatusServiceClient =======================
*
*
Service Description: Service to fetch change statuses.
*
*
Sample for ChangeStatusServiceClient:
*
*
{@code
* try (ChangeStatusServiceClient changeStatusServiceClient = ChangeStatusServiceClient.create()) {
* ChangeStatusName resourceName = ChangeStatusName.of("[CUSTOMER_ID]", "[CHANGE_STATUS_ID]");
* ChangeStatus response = changeStatusServiceClient.getChangeStatus(resourceName);
* }
* }
*
* ======================= ClickViewServiceClient =======================
*
*
Service Description: Service to fetch click views.
*
*
Sample for ClickViewServiceClient:
*
*
{@code
* try (ClickViewServiceClient clickViewServiceClient = ClickViewServiceClient.create()) {
* ClickViewName resourceName = ClickViewName.of("[CUSTOMER_ID]", "[DATE]", "[GCLID]");
* ClickView response = clickViewServiceClient.getClickView(resourceName);
* }
* }
*
* ======================= CombinedAudienceServiceClient =======================
*
*
Service Description: Service to manage combined audiences. This service can be used to list
* all your combined audiences with metadata, but won't show the structure and components of the
* combined audience.
*
*
Sample for CombinedAudienceServiceClient:
*
*
{@code
* try (CombinedAudienceServiceClient combinedAudienceServiceClient =
* CombinedAudienceServiceClient.create()) {
* CombinedAudienceName resourceName =
* CombinedAudienceName.of("[CUSTOMER_ID]", "[COMBINED_AUDIENCE_ID]");
* CombinedAudience response = combinedAudienceServiceClient.getCombinedAudience(resourceName);
* }
* }
*
* ======================= ConversionActionServiceClient =======================
*
*
Service Description: Service to manage conversion actions.
*
*
Sample for ConversionActionServiceClient:
*
*
{@code
* try (ConversionActionServiceClient conversionActionServiceClient =
* ConversionActionServiceClient.create()) {
* ConversionActionName resourceName =
* ConversionActionName.of("[CUSTOMER_ID]", "[CONVERSION_ACTION_ID]");
* ConversionAction response = conversionActionServiceClient.getConversionAction(resourceName);
* }
* }
*
* ======================= ConversionAdjustmentUploadServiceClient =======================
*
*
Service Description: Service to upload conversion adjustments.
*
*
Sample for ConversionAdjustmentUploadServiceClient:
*
*
{@code
* try (ConversionAdjustmentUploadServiceClient conversionAdjustmentUploadServiceClient =
* ConversionAdjustmentUploadServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List conversionAdjustments = new ArrayList<>();
* boolean partialFailure = true;
* UploadConversionAdjustmentsResponse response =
* conversionAdjustmentUploadServiceClient.uploadConversionAdjustments(
* customerId, conversionAdjustments, partialFailure);
* }
* }
*
* ======================= ConversionCustomVariableServiceClient =======================
*
*
Service Description: Service to manage conversion custom variables.
*
*
Sample for ConversionCustomVariableServiceClient:
*
*
{@code
* try (ConversionCustomVariableServiceClient conversionCustomVariableServiceClient =
* ConversionCustomVariableServiceClient.create()) {
* ConversionCustomVariableName resourceName =
* ConversionCustomVariableName.of("[CUSTOMER_ID]", "[CONVERSION_CUSTOM_VARIABLE_ID]");
* ConversionCustomVariable response =
* conversionCustomVariableServiceClient.getConversionCustomVariable(resourceName);
* }
* }
*
* ======================= ConversionGoalCampaignConfigServiceClient =======================
*
*
Service Description: Service to manage conversion goal campaign config.
*
*
Sample for ConversionGoalCampaignConfigServiceClient:
*
*
{@code
* try (ConversionGoalCampaignConfigServiceClient conversionGoalCampaignConfigServiceClient =
* ConversionGoalCampaignConfigServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateConversionGoalCampaignConfigsResponse response =
* conversionGoalCampaignConfigServiceClient.mutateConversionGoalCampaignConfigs(
* customerId, operations);
* }
* }
*
* ======================= ConversionUploadServiceClient =======================
*
*
Service Description: Service to upload conversions.
*
*
Sample for ConversionUploadServiceClient:
*
*
{@code
* try (ConversionUploadServiceClient conversionUploadServiceClient =
* ConversionUploadServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List conversions = new ArrayList<>();
* boolean partialFailure = true;
* UploadClickConversionsResponse response =
* conversionUploadServiceClient.uploadClickConversions(
* customerId, conversions, partialFailure);
* }
* }
*
* ======================= ConversionValueRuleServiceClient =======================
*
*
Service Description: Service to manage conversion value rules.
*
*
Sample for ConversionValueRuleServiceClient:
*
*
{@code
* try (ConversionValueRuleServiceClient conversionValueRuleServiceClient =
* ConversionValueRuleServiceClient.create()) {
* ConversionValueRuleName resourceName =
* ConversionValueRuleName.of("[CUSTOMER_ID]", "[CONVERSION_VALUE_RULE_ID]");
* ConversionValueRule response =
* conversionValueRuleServiceClient.getConversionValueRule(resourceName);
* }
* }
*
* ======================= ConversionValueRuleSetServiceClient =======================
*
*
Service Description: Service to manage conversion value rule sets.
*
*
Sample for ConversionValueRuleSetServiceClient:
*
*
{@code
* try (ConversionValueRuleSetServiceClient conversionValueRuleSetServiceClient =
* ConversionValueRuleSetServiceClient.create()) {
* ConversionValueRuleSetName resourceName =
* ConversionValueRuleSetName.of("[CUSTOMER_ID]", "[CONVERSION_VALUE_RULE_SET_ID]");
* ConversionValueRuleSet response =
* conversionValueRuleSetServiceClient.getConversionValueRuleSet(resourceName);
* }
* }
*
* ======================= CurrencyConstantServiceClient =======================
*
*
Service Description: Service to fetch currency constants.
*
*
Sample for CurrencyConstantServiceClient:
*
*
{@code
* try (CurrencyConstantServiceClient currencyConstantServiceClient =
* CurrencyConstantServiceClient.create()) {
* CurrencyConstantName resourceName = CurrencyConstantName.of("[CODE]");
* CurrencyConstant response = currencyConstantServiceClient.getCurrencyConstant(resourceName);
* }
* }
*
* ======================= CustomAudienceServiceClient =======================
*
*
Service Description: Service to manage custom audiences.
*
*
Sample for CustomAudienceServiceClient:
*
*
{@code
* try (CustomAudienceServiceClient customAudienceServiceClient =
* CustomAudienceServiceClient.create()) {
* CustomAudienceName resourceName =
* CustomAudienceName.of("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]");
* CustomAudience response = customAudienceServiceClient.getCustomAudience(resourceName);
* }
* }
*
* ======================= CustomConversionGoalServiceClient =======================
*
*
Service Description: Service to manage custom conversion goal.
*
*
Sample for CustomConversionGoalServiceClient:
*
*
{@code
* try (CustomConversionGoalServiceClient customConversionGoalServiceClient =
* CustomConversionGoalServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCustomConversionGoalsResponse response =
* customConversionGoalServiceClient.mutateCustomConversionGoals(customerId, operations);
* }
* }
*
* ======================= CustomInterestServiceClient =======================
*
*
Service Description: Service to manage custom interests.
*
*
Sample for CustomInterestServiceClient:
*
*
{@code
* try (CustomInterestServiceClient customInterestServiceClient =
* CustomInterestServiceClient.create()) {
* CustomInterestName resourceName =
* CustomInterestName.of("[CUSTOMER_ID]", "[CUSTOM_INTEREST_ID]");
* CustomInterest response = customInterestServiceClient.getCustomInterest(resourceName);
* }
* }
*
* ======================= CustomerAssetServiceClient =======================
*
*
Service Description: Service to manage customer assets.
*
*
Sample for CustomerAssetServiceClient:
*
*
{@code
* try (CustomerAssetServiceClient customerAssetServiceClient =
* CustomerAssetServiceClient.create()) {
* CustomerAssetName resourceName =
* CustomerAssetName.of("[CUSTOMER_ID]", "[ASSET_ID]", "[FIELD_TYPE]");
* CustomerAsset response = customerAssetServiceClient.getCustomerAsset(resourceName);
* }
* }
*
* ======================= CustomerClientLinkServiceClient =======================
*
*
Service Description: Service to manage customer client links.
*
*
Sample for CustomerClientLinkServiceClient:
*
*
{@code
* try (CustomerClientLinkServiceClient customerClientLinkServiceClient =
* CustomerClientLinkServiceClient.create()) {
* CustomerClientLinkName resourceName =
* CustomerClientLinkName.of("[CUSTOMER_ID]", "[CLIENT_CUSTOMER_ID]", "[MANAGER_LINK_ID]");
* CustomerClientLink response =
* customerClientLinkServiceClient.getCustomerClientLink(resourceName);
* }
* }
*
* ======================= CustomerClientServiceClient =======================
*
*
Service Description: Service to get clients in a customer's hierarchy.
*
*
Sample for CustomerClientServiceClient:
*
*
{@code
* try (CustomerClientServiceClient customerClientServiceClient =
* CustomerClientServiceClient.create()) {
* CustomerClientName resourceName =
* CustomerClientName.of("[CUSTOMER_ID]", "[CLIENT_CUSTOMER_ID]");
* CustomerClient response = customerClientServiceClient.getCustomerClient(resourceName);
* }
* }
*
* ======================= CustomerConversionGoalServiceClient =======================
*
*
Service Description: Service to manage customer conversion goal.
*
*
Sample for CustomerConversionGoalServiceClient:
*
*
{@code
* try (CustomerConversionGoalServiceClient customerConversionGoalServiceClient =
* CustomerConversionGoalServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCustomerConversionGoalsResponse response =
* customerConversionGoalServiceClient.mutateCustomerConversionGoals(customerId, operations);
* }
* }
*
* ======================= CustomerCustomizerServiceClient =======================
*
*
Service Description: Service to manage customer customizer
*
*
Sample for CustomerCustomizerServiceClient:
*
*
{@code
* try (CustomerCustomizerServiceClient customerCustomizerServiceClient =
* CustomerCustomizerServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCustomerCustomizersResponse response =
* customerCustomizerServiceClient.mutateCustomerCustomizers(customerId, operations);
* }
* }
*
* ======================= CustomerExtensionSettingServiceClient =======================
*
*
Service Description: Service to manage customer extension settings.
*
*
Sample for CustomerExtensionSettingServiceClient:
*
*
{@code
* try (CustomerExtensionSettingServiceClient customerExtensionSettingServiceClient =
* CustomerExtensionSettingServiceClient.create()) {
* CustomerExtensionSettingName resourceName =
* CustomerExtensionSettingName.of("[CUSTOMER_ID]", "[EXTENSION_TYPE]");
* CustomerExtensionSetting response =
* customerExtensionSettingServiceClient.getCustomerExtensionSetting(resourceName);
* }
* }
*
* ======================= CustomerFeedServiceClient =======================
*
*
Service Description: Service to manage customer feeds.
*
*
Sample for CustomerFeedServiceClient:
*
*
{@code
* try (CustomerFeedServiceClient customerFeedServiceClient = CustomerFeedServiceClient.create()) {
* CustomerFeedName resourceName = CustomerFeedName.of("[CUSTOMER_ID]", "[FEED_ID]");
* CustomerFeed response = customerFeedServiceClient.getCustomerFeed(resourceName);
* }
* }
*
* ======================= CustomerLabelServiceClient =======================
*
*
Service Description: Service to manage labels on customers.
*
*
Sample for CustomerLabelServiceClient:
*
*
{@code
* try (CustomerLabelServiceClient customerLabelServiceClient =
* CustomerLabelServiceClient.create()) {
* CustomerLabelName resourceName = CustomerLabelName.of("[CUSTOMER_ID]", "[LABEL_ID]");
* CustomerLabel response = customerLabelServiceClient.getCustomerLabel(resourceName);
* }
* }
*
* ======================= CustomerManagerLinkServiceClient =======================
*
*
Service Description: Service to manage customer-manager links.
*
*
Sample for CustomerManagerLinkServiceClient:
*
*
{@code
* try (CustomerManagerLinkServiceClient customerManagerLinkServiceClient =
* CustomerManagerLinkServiceClient.create()) {
* CustomerManagerLinkName resourceName =
* CustomerManagerLinkName.of("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]");
* CustomerManagerLink response =
* customerManagerLinkServiceClient.getCustomerManagerLink(resourceName);
* }
* }
*
* ======================= CustomerNegativeCriterionServiceClient =======================
*
*
Service Description: Service to manage customer negative criteria.
*
*
Sample for CustomerNegativeCriterionServiceClient:
*
*
{@code
* try (CustomerNegativeCriterionServiceClient customerNegativeCriterionServiceClient =
* CustomerNegativeCriterionServiceClient.create()) {
* CustomerNegativeCriterionName resourceName =
* CustomerNegativeCriterionName.of("[CUSTOMER_ID]", "[CRITERION_ID]");
* CustomerNegativeCriterion response =
* customerNegativeCriterionServiceClient.getCustomerNegativeCriterion(resourceName);
* }
* }
*
* ======================= CustomerServiceClient =======================
*
*
Service Description: Service to manage customers.
*
*
Sample for CustomerServiceClient:
*
*
{@code
* try (CustomerServiceClient customerServiceClient = CustomerServiceClient.create()) {
* CustomerName resourceName = CustomerName.of("[CUSTOMER_ID]");
* Customer response = customerServiceClient.getCustomer(resourceName);
* }
* }
*
* ======================= CustomerUserAccessInvitationServiceClient =======================
*
*
Service Description: This service manages the access invitation extended to users for a given
* customer.
*
*
Sample for CustomerUserAccessInvitationServiceClient:
*
*
{@code
* try (CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient =
* CustomerUserAccessInvitationServiceClient.create()) {
* CustomerUserAccessInvitationName resourceName =
* CustomerUserAccessInvitationName.of("[CUSTOMER_ID]", "[INVITATION_ID]");
* CustomerUserAccessInvitation response =
* customerUserAccessInvitationServiceClient.getCustomerUserAccessInvitation(resourceName);
* }
* }
*
* ======================= CustomerUserAccessServiceClient =======================
*
*
Service Description: This service manages the permissions of a user on a given customer.
*
*
Sample for CustomerUserAccessServiceClient:
*
*
{@code
* try (CustomerUserAccessServiceClient customerUserAccessServiceClient =
* CustomerUserAccessServiceClient.create()) {
* CustomerUserAccessName resourceName = CustomerUserAccessName.of("[CUSTOMER_ID]", "[USER_ID]");
* CustomerUserAccess response =
* customerUserAccessServiceClient.getCustomerUserAccess(resourceName);
* }
* }
*
* ======================= CustomizerAttributeServiceClient =======================
*
*
Service Description: Service to manage customizer attribute
*
*
Sample for CustomizerAttributeServiceClient:
*
*
{@code
* try (CustomizerAttributeServiceClient customizerAttributeServiceClient =
* CustomizerAttributeServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List operations = new ArrayList<>();
* MutateCustomizerAttributesResponse response =
* customizerAttributeServiceClient.mutateCustomizerAttributes(customerId, operations);
* }
* }
*
* ======================= DetailPlacementViewServiceClient =======================
*
*
Service Description: Service to fetch Detail Placement views.
*
*
Sample for DetailPlacementViewServiceClient:
*
*
{@code
* try (DetailPlacementViewServiceClient detailPlacementViewServiceClient =
* DetailPlacementViewServiceClient.create()) {
* DetailPlacementViewName resourceName =
* DetailPlacementViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[BASE64_PLACEMENT]");
* DetailPlacementView response =
* detailPlacementViewServiceClient.getDetailPlacementView(resourceName);
* }
* }
*
* ======================= DetailedDemographicServiceClient =======================
*
*
Service Description: Service to fetch Google Ads Detailed Demographics.
*
*
Sample for DetailedDemographicServiceClient:
*
*
{@code
* try (DetailedDemographicServiceClient detailedDemographicServiceClient =
* DetailedDemographicServiceClient.create()) {
* DetailedDemographicName resourceName =
* DetailedDemographicName.of("[CUSTOMER_ID]", "[DETAILED_DEMOGRAPHIC_ID]");
* DetailedDemographic response =
* detailedDemographicServiceClient.getDetailedDemographic(resourceName);
* }
* }
*
* ======================= DisplayKeywordViewServiceClient =======================
*
*
Service Description: Service to manage display keyword views.
*
*
Sample for DisplayKeywordViewServiceClient:
*
*
{@code
* try (DisplayKeywordViewServiceClient displayKeywordViewServiceClient =
* DisplayKeywordViewServiceClient.create()) {
* DisplayKeywordViewName resourceName =
* DisplayKeywordViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* DisplayKeywordView response =
* displayKeywordViewServiceClient.getDisplayKeywordView(resourceName);
* }
* }
*
* ======================= DistanceViewServiceClient =======================
*
*
Service Description: Service to fetch distance views.
*
*
Sample for DistanceViewServiceClient:
*
*
{@code
* try (DistanceViewServiceClient distanceViewServiceClient = DistanceViewServiceClient.create()) {
* DistanceViewName resourceName =
* DistanceViewName.of("[CUSTOMER_ID]", "[PLACEHOLDER_CHAIN_ID]", "[DISTANCE_BUCKET]");
* DistanceView response = distanceViewServiceClient.getDistanceView(resourceName);
* }
* }
*
* ======================= DomainCategoryServiceClient =======================
*
*
Service Description: Service to fetch domain categories.
*
*
Sample for DomainCategoryServiceClient:
*
*
{@code
* try (DomainCategoryServiceClient domainCategoryServiceClient =
* DomainCategoryServiceClient.create()) {
* DomainCategoryName resourceName =
* DomainCategoryName.of(
* "[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[BASE64_CATEGORY]", "[LANGUAGE_CODE]");
* DomainCategory response = domainCategoryServiceClient.getDomainCategory(resourceName);
* }
* }
*
* ======================= DynamicSearchAdsSearchTermViewServiceClient =======================
*
*
Service Description: Service to fetch dynamic search ads views.
*
*
Sample for DynamicSearchAdsSearchTermViewServiceClient:
*
*
{@code
* try (DynamicSearchAdsSearchTermViewServiceClient dynamicSearchAdsSearchTermViewServiceClient =
* DynamicSearchAdsSearchTermViewServiceClient.create()) {
* DynamicSearchAdsSearchTermViewName resourceName =
* DynamicSearchAdsSearchTermViewName.of(
* "[CUSTOMER_ID]",
* "[AD_GROUP_ID]",
* "[SEARCH_TERM_FINGERPRINT]",
* "[HEADLINE_FINGERPRINT]",
* "[LANDING_PAGE_FINGERPRINT]",
* "[PAGE_URL_FINGERPRINT]");
* DynamicSearchAdsSearchTermView response =
* dynamicSearchAdsSearchTermViewServiceClient.getDynamicSearchAdsSearchTermView(
* resourceName);
* }
* }
*
* ======================= ExpandedLandingPageViewServiceClient =======================
*
*
Service Description: Service to fetch expanded landing page views.
*
*
Sample for ExpandedLandingPageViewServiceClient:
*
*
{@code
* try (ExpandedLandingPageViewServiceClient expandedLandingPageViewServiceClient =
* ExpandedLandingPageViewServiceClient.create()) {
* ExpandedLandingPageViewName resourceName =
* ExpandedLandingPageViewName.of("[CUSTOMER_ID]", "[EXPANDED_FINAL_URL_FINGERPRINT]");
* ExpandedLandingPageView response =
* expandedLandingPageViewServiceClient.getExpandedLandingPageView(resourceName);
* }
* }
*
* ======================= ExtensionFeedItemServiceClient =======================
*
*
Service Description: Service to manage extension feed items.
*
*
Sample for ExtensionFeedItemServiceClient:
*
*
{@code
* try (ExtensionFeedItemServiceClient extensionFeedItemServiceClient =
* ExtensionFeedItemServiceClient.create()) {
* ExtensionFeedItemName resourceName =
* ExtensionFeedItemName.of("[CUSTOMER_ID]", "[FEED_ITEM_ID]");
* ExtensionFeedItem response =
* extensionFeedItemServiceClient.getExtensionFeedItem(resourceName);
* }
* }
*
* ======================= FeedItemServiceClient =======================
*
*
Service Description: Service to manage feed items.
*
*
Sample for FeedItemServiceClient:
*
*
{@code
* try (FeedItemServiceClient feedItemServiceClient = FeedItemServiceClient.create()) {
* FeedItemName resourceName = FeedItemName.of("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_ID]");
* FeedItem response = feedItemServiceClient.getFeedItem(resourceName);
* }
* }
*
* ======================= FeedItemSetLinkServiceClient =======================
*
*
Service Description: Service to manage feed item set links.
*
*
Sample for FeedItemSetLinkServiceClient:
*
*
{@code
* try (FeedItemSetLinkServiceClient feedItemSetLinkServiceClient =
* FeedItemSetLinkServiceClient.create()) {
* FeedItemSetLinkName resourceName =
* FeedItemSetLinkName.of(
* "[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_SET_ID]", "[FEED_ITEM_ID]");
* FeedItemSetLink response = feedItemSetLinkServiceClient.getFeedItemSetLink(resourceName);
* }
* }
*
* ======================= FeedItemSetServiceClient =======================
*
*
Service Description: Service to manage feed Item Set
*
*
Sample for FeedItemSetServiceClient:
*
*
{@code
* try (FeedItemSetServiceClient feedItemSetServiceClient = FeedItemSetServiceClient.create()) {
* FeedItemSetName resourceName =
* FeedItemSetName.of("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_SET_ID]");
* FeedItemSet response = feedItemSetServiceClient.getFeedItemSet(resourceName);
* }
* }
*
* ======================= FeedItemTargetServiceClient =======================
*
*
Service Description: Service to manage feed item targets.
*
*
Sample for FeedItemTargetServiceClient:
*
*
{@code
* try (FeedItemTargetServiceClient feedItemTargetServiceClient =
* FeedItemTargetServiceClient.create()) {
* FeedItemTargetName resourceName =
* FeedItemTargetName.of(
* "[CUSTOMER_ID]",
* "[FEED_ID]",
* "[FEED_ITEM_ID]",
* "[FEED_ITEM_TARGET_TYPE]",
* "[FEED_ITEM_TARGET_ID]");
* FeedItemTarget response = feedItemTargetServiceClient.getFeedItemTarget(resourceName);
* }
* }
*
* ======================= FeedMappingServiceClient =======================
*
*
Service Description: Service to manage feed mappings.
*
*
Sample for FeedMappingServiceClient:
*
*
{@code
* try (FeedMappingServiceClient feedMappingServiceClient = FeedMappingServiceClient.create()) {
* FeedMappingName resourceName =
* FeedMappingName.of("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_MAPPING_ID]");
* FeedMapping response = feedMappingServiceClient.getFeedMapping(resourceName);
* }
* }
*
* ======================= FeedPlaceholderViewServiceClient =======================
*
*
Service Description: Service to fetch feed placeholder views.
*
*
Sample for FeedPlaceholderViewServiceClient:
*
*
{@code
* try (FeedPlaceholderViewServiceClient feedPlaceholderViewServiceClient =
* FeedPlaceholderViewServiceClient.create()) {
* FeedPlaceholderViewName resourceName =
* FeedPlaceholderViewName.of("[CUSTOMER_ID]", "[PLACEHOLDER_TYPE]");
* FeedPlaceholderView response =
* feedPlaceholderViewServiceClient.getFeedPlaceholderView(resourceName);
* }
* }
*
* ======================= FeedServiceClient =======================
*
*
Service Description: Service to manage feeds.
*
*
Sample for FeedServiceClient:
*
*
{@code
* try (FeedServiceClient feedServiceClient = FeedServiceClient.create()) {
* FeedName resourceName = FeedName.of("[CUSTOMER_ID]", "[FEED_ID]");
* Feed response = feedServiceClient.getFeed(resourceName);
* }
* }
*
* ======================= GenderViewServiceClient =======================
*
*
Service Description: Service to manage gender views.
*
*
Sample for GenderViewServiceClient:
*
*
{@code
* try (GenderViewServiceClient genderViewServiceClient = GenderViewServiceClient.create()) {
* GenderViewName resourceName =
* GenderViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* GenderView response = genderViewServiceClient.getGenderView(resourceName);
* }
* }
*
* ======================= GeoTargetConstantServiceClient =======================
*
*
Service Description: Service to fetch geo target constants.
*
*
Sample for GeoTargetConstantServiceClient:
*
*
{@code
* try (GeoTargetConstantServiceClient geoTargetConstantServiceClient =
* GeoTargetConstantServiceClient.create()) {
* GeoTargetConstantName resourceName = GeoTargetConstantName.of("[CRITERION_ID]");
* GeoTargetConstant response =
* geoTargetConstantServiceClient.getGeoTargetConstant(resourceName);
* }
* }
*
* ======================= GeographicViewServiceClient =======================
*
*
Service Description: Service to manage geographic views.
*
*
Sample for GeographicViewServiceClient:
*
*
{@code
* try (GeographicViewServiceClient geographicViewServiceClient =
* GeographicViewServiceClient.create()) {
* GeographicViewName resourceName =
* GeographicViewName.of("[CUSTOMER_ID]", "[COUNTRY_CRITERION_ID]", "[LOCATION_TYPE]");
* GeographicView response = geographicViewServiceClient.getGeographicView(resourceName);
* }
* }
*
* ======================= GoogleAdsFieldServiceClient =======================
*
*
Service Description: Service to fetch Google Ads API fields.
*
*
Sample for GoogleAdsFieldServiceClient:
*
*
{@code
* try (GoogleAdsFieldServiceClient googleAdsFieldServiceClient =
* GoogleAdsFieldServiceClient.create()) {
* GoogleAdsFieldName resourceName = GoogleAdsFieldName.of("[GOOGLE_ADS_FIELD]");
* GoogleAdsField response = googleAdsFieldServiceClient.getGoogleAdsField(resourceName);
* }
* }
*
* ======================= GoogleAdsServiceClient =======================
*
*
Service Description: Service to fetch data and metrics across resources.
*
*
Sample for GoogleAdsServiceClient:
*
*
{@code
* try (GoogleAdsServiceClient googleAdsServiceClient = GoogleAdsServiceClient.create()) {
* String customerId = "customerId-1581184615";
* List mutateOperations = new ArrayList<>();
* MutateGoogleAdsResponse response =
* googleAdsServiceClient.mutate(customerId, mutateOperations);
* }
* }
*
* ======================= GroupPlacementViewServiceClient =======================
*
*
Service Description: Service to fetch Group Placement views.
*
*
Sample for GroupPlacementViewServiceClient:
*
*
{@code
* try (GroupPlacementViewServiceClient groupPlacementViewServiceClient =
* GroupPlacementViewServiceClient.create()) {
* GroupPlacementViewName resourceName =
* GroupPlacementViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[BASE64_PLACEMENT]");
* GroupPlacementView response =
* groupPlacementViewServiceClient.getGroupPlacementView(resourceName);
* }
* }
*
* ======================= HotelGroupViewServiceClient =======================
*
*
Service Description: Service to manage Hotel Group Views.
*
*
Sample for HotelGroupViewServiceClient:
*
*
{@code
* try (HotelGroupViewServiceClient hotelGroupViewServiceClient =
* HotelGroupViewServiceClient.create()) {
* HotelGroupViewName resourceName =
* HotelGroupViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* HotelGroupView response = hotelGroupViewServiceClient.getHotelGroupView(resourceName);
* }
* }
*
* ======================= HotelPerformanceViewServiceClient =======================
*
*
Service Description: Service to manage Hotel Performance Views.
*
*
Sample for HotelPerformanceViewServiceClient:
*
*
{@code
* try (HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient =
* HotelPerformanceViewServiceClient.create()) {
* HotelPerformanceViewName resourceName = HotelPerformanceViewName.of("[CUSTOMER_ID]");
* HotelPerformanceView response =
* hotelPerformanceViewServiceClient.getHotelPerformanceView(resourceName);
* }
* }
*
* ======================= IncomeRangeViewServiceClient =======================
*
*
Service Description: Service to manage income range views.
*
*
Sample for IncomeRangeViewServiceClient:
*
*
{@code
* try (IncomeRangeViewServiceClient incomeRangeViewServiceClient =
* IncomeRangeViewServiceClient.create()) {
* IncomeRangeViewName resourceName =
* IncomeRangeViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* IncomeRangeView response = incomeRangeViewServiceClient.getIncomeRangeView(resourceName);
* }
* }
*
* ======================= InvoiceServiceClient =======================
*
*
Service Description: A service to fetch invoices issued for a billing setup during a given
* month.
*
*
Sample for InvoiceServiceClient:
*
*
{@code
* try (InvoiceServiceClient invoiceServiceClient = InvoiceServiceClient.create()) {
* String customerId = "customerId-1581184615";
* String billingSetup = "billingSetup-1435075390";
* String issueYear = "issueYear184914102";
* MonthOfYearEnum.MonthOfYear issueMonth = MonthOfYearEnum.MonthOfYear.forNumber(0);
* ListInvoicesResponse response =
* invoiceServiceClient.listInvoices(customerId, billingSetup, issueYear, issueMonth);
* }
* }
*
* ======================= KeywordPlanAdGroupKeywordServiceClient =======================
*
*
Service Description: Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is
* required to add ad group keywords. Positive and negative keywords are supported. A maximum of
* 10,000 positive keywords are allowed per keyword plan. A maximum of 1,000 negative keywords are
* allower per keyword plan. This includes campaign negative keywords and ad group negative
* keywords.
*
*
Sample for KeywordPlanAdGroupKeywordServiceClient:
*
*
{@code
* try (KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient =
* KeywordPlanAdGroupKeywordServiceClient.create()) {
* KeywordPlanAdGroupKeywordName resourceName =
* KeywordPlanAdGroupKeywordName.of("[CUSTOMER_ID]", "[KEYWORD_PLAN_AD_GROUP_KEYWORD_ID]");
* KeywordPlanAdGroupKeyword response =
* keywordPlanAdGroupKeywordServiceClient.getKeywordPlanAdGroupKeyword(resourceName);
* }
* }
*
* ======================= KeywordPlanAdGroupServiceClient =======================
*
*
Service Description: Service to manage Keyword Plan ad groups.
*
*
Sample for KeywordPlanAdGroupServiceClient:
*
*
{@code
* try (KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient =
* KeywordPlanAdGroupServiceClient.create()) {
* KeywordPlanAdGroupName resourceName =
* KeywordPlanAdGroupName.of("[CUSTOMER_ID]", "[KEYWORD_PLAN_AD_GROUP_ID]");
* KeywordPlanAdGroup response =
* keywordPlanAdGroupServiceClient.getKeywordPlanAdGroup(resourceName);
* }
* }
*
* ======================= KeywordPlanCampaignKeywordServiceClient =======================
*
*
Service Description: Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is
* required to add the campaign keywords. Only negative keywords are supported. A maximum of 1000
* negative keywords are allowed per plan. This includes both campaign negative keywords and ad
* group negative keywords.
*
*
Sample for KeywordPlanCampaignKeywordServiceClient:
*
*
{@code
* try (KeywordPlanCampaignKeywordServiceClient keywordPlanCampaignKeywordServiceClient =
* KeywordPlanCampaignKeywordServiceClient.create()) {
* KeywordPlanCampaignKeywordName resourceName =
* KeywordPlanCampaignKeywordName.of("[CUSTOMER_ID]", "[KEYWORD_PLAN_CAMPAIGN_KEYWORD_ID]");
* KeywordPlanCampaignKeyword response =
* keywordPlanCampaignKeywordServiceClient.getKeywordPlanCampaignKeyword(resourceName);
* }
* }
*
* ======================= KeywordPlanCampaignServiceClient =======================
*
*
Service Description: Service to manage Keyword Plan campaigns.
*
*
Sample for KeywordPlanCampaignServiceClient:
*
*
{@code
* try (KeywordPlanCampaignServiceClient keywordPlanCampaignServiceClient =
* KeywordPlanCampaignServiceClient.create()) {
* KeywordPlanCampaignName resourceName =
* KeywordPlanCampaignName.of("[CUSTOMER_ID]", "[KEYWORD_PLAN_CAMPAIGN_ID]");
* KeywordPlanCampaign response =
* keywordPlanCampaignServiceClient.getKeywordPlanCampaign(resourceName);
* }
* }
*
* ======================= KeywordPlanIdeaServiceClient =======================
*
*
Service Description: Service to generate keyword ideas.
*
*
Sample for KeywordPlanIdeaServiceClient:
*
*
{@code
* try (KeywordPlanIdeaServiceClient keywordPlanIdeaServiceClient =
* KeywordPlanIdeaServiceClient.create()) {
* GenerateKeywordIdeasRequest request =
* GenerateKeywordIdeasRequest.newBuilder()
* .setCustomerId("customerId-1581184615")
* .setLanguage("language-1613589672")
* .addAllGeoTargetConstants(new ArrayList())
* .setIncludeAdultKeywords(true)
* .setPageToken("pageToken873572522")
* .setPageSize(883849137)
* .addAllKeywordAnnotation(
* new ArrayList())
* .setAggregateMetrics(KeywordPlanAggregateMetrics.newBuilder().build())
* .setHistoricalMetricsOptions(HistoricalMetricsOptions.newBuilder().build())
* .build();
* for (GenerateKeywordIdeaResult element :
* keywordPlanIdeaServiceClient.generateKeywordIdeas(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
* ======================= KeywordPlanServiceClient =======================
*
*
Service Description: Service to manage keyword plans.
*
*
Sample for KeywordPlanServiceClient:
*
*
{@code
* try (KeywordPlanServiceClient keywordPlanServiceClient = KeywordPlanServiceClient.create()) {
* KeywordPlanName resourceName = KeywordPlanName.of("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]");
* KeywordPlan response = keywordPlanServiceClient.getKeywordPlan(resourceName);
* }
* }
*
* ======================= KeywordThemeConstantServiceClient =======================
*
*
Service Description: Service to fetch Smart Campaign keyword themes.
*
*
Sample for KeywordThemeConstantServiceClient:
*
*
{@code
* try (KeywordThemeConstantServiceClient keywordThemeConstantServiceClient =
* KeywordThemeConstantServiceClient.create()) {
* KeywordThemeConstantName resourceName =
* KeywordThemeConstantName.of("[EXPRESS_CATEGORY_ID]", "[EXPRESS_SUB_CATEGORY_ID]");
* KeywordThemeConstant response =
* keywordThemeConstantServiceClient.getKeywordThemeConstant(resourceName);
* }
* }
*
* ======================= KeywordViewServiceClient =======================
*
*
Service Description: Service to manage keyword views.
*
*
Sample for KeywordViewServiceClient:
*
*
{@code
* try (KeywordViewServiceClient keywordViewServiceClient = KeywordViewServiceClient.create()) {
* KeywordViewName resourceName =
* KeywordViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* KeywordView response = keywordViewServiceClient.getKeywordView(resourceName);
* }
* }
*
* ======================= LabelServiceClient =======================
*
*
Service Description: Service to manage labels.
*
*
Sample for LabelServiceClient:
*
*
{@code
* try (LabelServiceClient labelServiceClient = LabelServiceClient.create()) {
* LabelName resourceName = LabelName.of("[CUSTOMER_ID]", "[LABEL_ID]");
* Label response = labelServiceClient.getLabel(resourceName);
* }
* }
*
* ======================= LandingPageViewServiceClient =======================
*
*
Service Description: Service to fetch landing page views.
*
*
Sample for LandingPageViewServiceClient:
*
*
{@code
* try (LandingPageViewServiceClient landingPageViewServiceClient =
* LandingPageViewServiceClient.create()) {
* LandingPageViewName resourceName =
* LandingPageViewName.of("[CUSTOMER_ID]", "[UNEXPANDED_FINAL_URL_FINGERPRINT]");
* LandingPageView response = landingPageViewServiceClient.getLandingPageView(resourceName);
* }
* }
*
* ======================= LanguageConstantServiceClient =======================
*
*
Service Description: Service to fetch language constants.
*
*
Sample for LanguageConstantServiceClient:
*
*
{@code
* try (LanguageConstantServiceClient languageConstantServiceClient =
* LanguageConstantServiceClient.create()) {
* LanguageConstantName resourceName = LanguageConstantName.of("[CRITERION_ID]");
* LanguageConstant response = languageConstantServiceClient.getLanguageConstant(resourceName);
* }
* }
*
* ======================= LifeEventServiceClient =======================
*
*
Service Description: Service to fetch Google Ads Life Events.
*
*
Sample for LifeEventServiceClient:
*
*
{@code
* try (LifeEventServiceClient lifeEventServiceClient = LifeEventServiceClient.create()) {
* LifeEventName resourceName = LifeEventName.of("[CUSTOMER_ID]", "[LIFE_EVENT_ID]");
* LifeEvent response = lifeEventServiceClient.getLifeEvent(resourceName);
* }
* }
*
* ======================= LocationViewServiceClient =======================
*
*
Service Description: Service to fetch location views.
*
*
Sample for LocationViewServiceClient:
*
*
{@code
* try (LocationViewServiceClient locationViewServiceClient = LocationViewServiceClient.create()) {
* LocationViewName resourceName =
* LocationViewName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]");
* LocationView response = locationViewServiceClient.getLocationView(resourceName);
* }
* }
*
* ======================= ManagedPlacementViewServiceClient =======================
*
*
Service Description: Service to manage Managed Placement views.
*
*
Sample for ManagedPlacementViewServiceClient:
*
*
{@code
* try (ManagedPlacementViewServiceClient managedPlacementViewServiceClient =
* ManagedPlacementViewServiceClient.create()) {
* ManagedPlacementViewName resourceName =
* ManagedPlacementViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* ManagedPlacementView response =
* managedPlacementViewServiceClient.getManagedPlacementView(resourceName);
* }
* }
*
* ======================= MediaFileServiceClient =======================
*
*
Service Description: Service to manage media files.
*
*
Sample for MediaFileServiceClient:
*
*
{@code
* try (MediaFileServiceClient mediaFileServiceClient = MediaFileServiceClient.create()) {
* MediaFileName resourceName = MediaFileName.of("[CUSTOMER_ID]", "[MEDIA_FILE_ID]");
* MediaFile response = mediaFileServiceClient.getMediaFile(resourceName);
* }
* }
*
* ======================= MerchantCenterLinkServiceClient =======================
*
*
Service Description: This service allows management of links between Google Ads and Google
* Merchant Center.
*
*
Sample for MerchantCenterLinkServiceClient:
*
*
{@code
* try (MerchantCenterLinkServiceClient merchantCenterLinkServiceClient =
* MerchantCenterLinkServiceClient.create()) {
* String customerId = "customerId-1581184615";
* ListMerchantCenterLinksResponse response =
* merchantCenterLinkServiceClient.listMerchantCenterLinks(customerId);
* }
* }
*
* ======================= MobileAppCategoryConstantServiceClient =======================
*
*
Service Description: Service to fetch mobile app category constants.
*
*
Sample for MobileAppCategoryConstantServiceClient:
*
*
{@code
* try (MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient =
* MobileAppCategoryConstantServiceClient.create()) {
* MobileAppCategoryConstantName resourceName =
* MobileAppCategoryConstantName.of("[MOBILE_APP_CATEGORY_ID]");
* MobileAppCategoryConstant response =
* mobileAppCategoryConstantServiceClient.getMobileAppCategoryConstant(resourceName);
* }
* }
*
* ======================= MobileDeviceConstantServiceClient =======================
*
*
Service Description: Service to fetch mobile device constants.
*
*
Sample for MobileDeviceConstantServiceClient:
*
*
{@code
* try (MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient =
* MobileDeviceConstantServiceClient.create()) {
* MobileDeviceConstantName resourceName = MobileDeviceConstantName.of("[CRITERION_ID]");
* MobileDeviceConstant response =
* mobileDeviceConstantServiceClient.getMobileDeviceConstant(resourceName);
* }
* }
*
* ======================= OfflineUserDataJobServiceClient =======================
*
*
Service Description: Service to manage offline user data jobs.
*
*
Sample for OfflineUserDataJobServiceClient:
*
*
{@code
* try (OfflineUserDataJobServiceClient offlineUserDataJobServiceClient =
* OfflineUserDataJobServiceClient.create()) {
* String customerId = "customerId-1581184615";
* OfflineUserDataJob job = OfflineUserDataJob.newBuilder().build();
* CreateOfflineUserDataJobResponse response =
* offlineUserDataJobServiceClient.createOfflineUserDataJob(customerId, job);
* }
* }
*
* ======================= OperatingSystemVersionConstantServiceClient =======================
*
*
Service Description: Service to fetch Operating System Version constants.
*
*
Sample for OperatingSystemVersionConstantServiceClient:
*
*
{@code
* try (OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient =
* OperatingSystemVersionConstantServiceClient.create()) {
* OperatingSystemVersionConstantName resourceName =
* OperatingSystemVersionConstantName.of("[CRITERION_ID]");
* OperatingSystemVersionConstant response =
* operatingSystemVersionConstantServiceClient.getOperatingSystemVersionConstant(
* resourceName);
* }
* }
*
* ======================= PaidOrganicSearchTermViewServiceClient =======================
*
*
Service Description: Service to fetch paid organic search term views.
*
*
Sample for PaidOrganicSearchTermViewServiceClient:
*
*
{@code
* try (PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient =
* PaidOrganicSearchTermViewServiceClient.create()) {
* PaidOrganicSearchTermViewName resourceName =
* PaidOrganicSearchTermViewName.of(
* "[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[AD_GROUP_ID]", "[BASE64_SEARCH_TERM]");
* PaidOrganicSearchTermView response =
* paidOrganicSearchTermViewServiceClient.getPaidOrganicSearchTermView(resourceName);
* }
* }
*
* ======================= ParentalStatusViewServiceClient =======================
*
*
Service Description: Service to manage parental status views.
*
*
Sample for ParentalStatusViewServiceClient:
*
*
{@code
* try (ParentalStatusViewServiceClient parentalStatusViewServiceClient =
* ParentalStatusViewServiceClient.create()) {
* ParentalStatusViewName resourceName =
* ParentalStatusViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* ParentalStatusView response =
* parentalStatusViewServiceClient.getParentalStatusView(resourceName);
* }
* }
*
* ======================= PaymentsAccountServiceClient =======================
*
*
Service Description: Service to provide payments accounts that can be used to set up
* consolidated billing.
*
*
Sample for PaymentsAccountServiceClient:
*
*
{@code
* try (PaymentsAccountServiceClient paymentsAccountServiceClient =
* PaymentsAccountServiceClient.create()) {
* String customerId = "customerId-1581184615";
* ListPaymentsAccountsResponse response =
* paymentsAccountServiceClient.listPaymentsAccounts(customerId);
* }
* }
*
* ======================= ProductBiddingCategoryConstantServiceClient =======================
*
*
Service Description: Service to fetch Product Bidding Categories.
*
*
Sample for ProductBiddingCategoryConstantServiceClient:
*
*
{@code
* try (ProductBiddingCategoryConstantServiceClient productBiddingCategoryConstantServiceClient =
* ProductBiddingCategoryConstantServiceClient.create()) {
* ProductBiddingCategoryConstantName resourceName =
* ProductBiddingCategoryConstantName.of("[COUNTRY_CODE]", "[LEVEL]", "[ID]");
* ProductBiddingCategoryConstant response =
* productBiddingCategoryConstantServiceClient.getProductBiddingCategoryConstant(
* resourceName);
* }
* }
*
* ======================= ProductGroupViewServiceClient =======================
*
*
Service Description: Service to manage product group views.
*
*
Sample for ProductGroupViewServiceClient:
*
*
{@code
* try (ProductGroupViewServiceClient productGroupViewServiceClient =
* ProductGroupViewServiceClient.create()) {
* ProductGroupViewName resourceName =
* ProductGroupViewName.of("[CUSTOMER_ID]", "[ADGROUP_ID]", "[CRITERION_ID]");
* ProductGroupView response = productGroupViewServiceClient.getProductGroupView(resourceName);
* }
* }
*
* ======================= ReachPlanServiceClient =======================
*
*
Service Description: Reach Plan Service gives users information about audience size that can
* be reached through advertisement on YouTube. In particular, GenerateReachForecast provides
* estimated number of people of specified demographics that can be reached by an ad in a given
* market by a campaign of certain duration with a defined budget.
*
*
Sample for ReachPlanServiceClient:
*
*
{@code
* try (ReachPlanServiceClient reachPlanServiceClient = ReachPlanServiceClient.create()) {
* ListPlannableLocationsRequest request = ListPlannableLocationsRequest.newBuilder().build();
* ListPlannableLocationsResponse response =
* reachPlanServiceClient.listPlannableLocations(request);
* }
* }
*
* ======================= RecommendationServiceClient =======================
*
*
Service Description: Service to manage recommendations.
*
*
Sample for RecommendationServiceClient:
*
*
{@code
* try (RecommendationServiceClient recommendationServiceClient =
* RecommendationServiceClient.create()) {
* RecommendationName resourceName =
* RecommendationName.of("[CUSTOMER_ID]", "[RECOMMENDATION_ID]");
* Recommendation response = recommendationServiceClient.getRecommendation(resourceName);
* }
* }
*
* ======================= RemarketingActionServiceClient =======================
*
*
Service Description: Service to manage remarketing actions.
*
*
Sample for RemarketingActionServiceClient:
*
*
{@code
* try (RemarketingActionServiceClient remarketingActionServiceClient =
* RemarketingActionServiceClient.create()) {
* RemarketingActionName resourceName =
* RemarketingActionName.of("[CUSTOMER_ID]", "[REMARKETING_ACTION_ID]");
* RemarketingAction response =
* remarketingActionServiceClient.getRemarketingAction(resourceName);
* }
* }
*
* ======================= SearchTermViewServiceClient =======================
*
*
Service Description: Service to manage search term views.
*
*
Sample for SearchTermViewServiceClient:
*
*
{@code
* try (SearchTermViewServiceClient searchTermViewServiceClient =
* SearchTermViewServiceClient.create()) {
* SearchTermViewName resourceName =
* SearchTermViewName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[AD_GROUP_ID]", "[QUERY]");
* SearchTermView response = searchTermViewServiceClient.getSearchTermView(resourceName);
* }
* }
*
* ======================= SharedCriterionServiceClient =======================
*
*
Service Description: Service to manage shared criteria.
*
*
Sample for SharedCriterionServiceClient:
*
*
{@code
* try (SharedCriterionServiceClient sharedCriterionServiceClient =
* SharedCriterionServiceClient.create()) {
* SharedCriterionName resourceName =
* SharedCriterionName.of("[CUSTOMER_ID]", "[SHARED_SET_ID]", "[CRITERION_ID]");
* SharedCriterion response = sharedCriterionServiceClient.getSharedCriterion(resourceName);
* }
* }
*
* ======================= SharedSetServiceClient =======================
*
*
Service Description: Service to manage shared sets.
*
*
Sample for SharedSetServiceClient:
*
*
{@code
* try (SharedSetServiceClient sharedSetServiceClient = SharedSetServiceClient.create()) {
* SharedSetName resourceName = SharedSetName.of("[CUSTOMER_ID]", "[SHARED_SET_ID]");
* SharedSet response = sharedSetServiceClient.getSharedSet(resourceName);
* }
* }
*
* ======================= ShoppingPerformanceViewServiceClient =======================
*
*
Service Description: Service to fetch Shopping performance views.
*
*
Sample for ShoppingPerformanceViewServiceClient:
*
*
{@code
* try (ShoppingPerformanceViewServiceClient shoppingPerformanceViewServiceClient =
* ShoppingPerformanceViewServiceClient.create()) {
* ShoppingPerformanceViewName resourceName = ShoppingPerformanceViewName.of("[CUSTOMER_ID]");
* ShoppingPerformanceView response =
* shoppingPerformanceViewServiceClient.getShoppingPerformanceView(resourceName);
* }
* }
*
* ======================= SmartCampaignSearchTermViewServiceClient =======================
*
*
Service Description: Service to manage Smart campaign search term views.
*
*
Sample for SmartCampaignSearchTermViewServiceClient:
*
*
{@code
* try (SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient =
* SmartCampaignSearchTermViewServiceClient.create()) {
* SmartCampaignSearchTermViewName resourceName =
* SmartCampaignSearchTermViewName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[QUERY]");
* SmartCampaignSearchTermView response =
* smartCampaignSearchTermViewServiceClient.getSmartCampaignSearchTermView(resourceName);
* }
* }
*
* ======================= SmartCampaignSettingServiceClient =======================
*
*
Service Description: Service to manage Smart campaign settings.
*
*
Sample for SmartCampaignSettingServiceClient:
*
*
{@code
* try (SmartCampaignSettingServiceClient smartCampaignSettingServiceClient =
* SmartCampaignSettingServiceClient.create()) {
* SmartCampaignSettingName resourceName =
* SmartCampaignSettingName.of("[CUSTOMER_ID]", "[CAMPAIGN_ID]");
* SmartCampaignSetting response =
* smartCampaignSettingServiceClient.getSmartCampaignSetting(resourceName);
* }
* }
*
* ======================= SmartCampaignSuggestServiceClient =======================
*
*
Service Description: Service to get suggestions for Smart Campaigns.
*
*
Sample for SmartCampaignSuggestServiceClient:
*
*
{@code
* try (SmartCampaignSuggestServiceClient smartCampaignSuggestServiceClient =
* SmartCampaignSuggestServiceClient.create()) {
* SuggestSmartCampaignBudgetOptionsRequest request =
* SuggestSmartCampaignBudgetOptionsRequest.newBuilder()
* .setCustomerId("customerId-1581184615")
* .build();
* SuggestSmartCampaignBudgetOptionsResponse response =
* smartCampaignSuggestServiceClient.suggestSmartCampaignBudgetOptions(request);
* }
* }
*
* ======================= ThirdPartyAppAnalyticsLinkServiceClient =======================
*
*
Service Description: This service allows management of links between Google Ads and third
* party app analytics.
*
*
Sample for ThirdPartyAppAnalyticsLinkServiceClient:
*
*
{@code
* try (ThirdPartyAppAnalyticsLinkServiceClient thirdPartyAppAnalyticsLinkServiceClient =
* ThirdPartyAppAnalyticsLinkServiceClient.create()) {
* GetThirdPartyAppAnalyticsLinkRequest request =
* GetThirdPartyAppAnalyticsLinkRequest.newBuilder()
* .setResourceName(
* ThirdPartyAppAnalyticsLinkName.of("[CUSTOMER_ID]", "[CUSTOMER_LINK_ID]")
* .toString())
* .build();
* ThirdPartyAppAnalyticsLink response =
* thirdPartyAppAnalyticsLinkServiceClient.getThirdPartyAppAnalyticsLink(request);
* }
* }
*
* ======================= TopicConstantServiceClient =======================
*
*
Service Description: Service to fetch topic constants.
*
*
Sample for TopicConstantServiceClient:
*
*
{@code
* try (TopicConstantServiceClient topicConstantServiceClient =
* TopicConstantServiceClient.create()) {
* TopicConstantName resourceName = TopicConstantName.of("[TOPIC_ID]");
* TopicConstant response = topicConstantServiceClient.getTopicConstant(resourceName);
* }
* }
*
* ======================= TopicViewServiceClient =======================
*
*
Service Description: Service to manage topic views.
*
*
Sample for TopicViewServiceClient:
*
*
{@code
* try (TopicViewServiceClient topicViewServiceClient = TopicViewServiceClient.create()) {
* TopicViewName resourceName =
* TopicViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* TopicView response = topicViewServiceClient.getTopicView(resourceName);
* }
* }
*
* ======================= UserDataServiceClient =======================
*
*
Service Description: Service to manage user data uploads.
*
*
Sample for UserDataServiceClient:
*
*
{@code
* try (UserDataServiceClient userDataServiceClient = UserDataServiceClient.create()) {
* UploadUserDataRequest request =
* UploadUserDataRequest.newBuilder()
* .setCustomerId("customerId-1581184615")
* .addAllOperations(new ArrayList())
* .build();
* UploadUserDataResponse response = userDataServiceClient.uploadUserData(request);
* }
* }
*
* ======================= UserInterestServiceClient =======================
*
*
Service Description: Service to fetch Google Ads User Interest.
*
*
Sample for UserInterestServiceClient:
*
*
{@code
* try (UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.create()) {
* UserInterestName resourceName = UserInterestName.of("[CUSTOMER_ID]", "[USER_INTEREST_ID]");
* UserInterest response = userInterestServiceClient.getUserInterest(resourceName);
* }
* }
*
* ======================= UserListServiceClient =======================
*
*
Service Description: Service to manage user lists.
*
*
Sample for UserListServiceClient:
*
*
{@code
* try (UserListServiceClient userListServiceClient = UserListServiceClient.create()) {
* UserListName resourceName = UserListName.of("[CUSTOMER_ID]", "[USER_LIST_ID]");
* UserList response = userListServiceClient.getUserList(resourceName);
* }
* }
*
* ======================= UserLocationViewServiceClient =======================
*
*
Service Description: Service to manage user location views.
*
*
Sample for UserLocationViewServiceClient:
*
*
{@code
* try (UserLocationViewServiceClient userLocationViewServiceClient =
* UserLocationViewServiceClient.create()) {
* UserLocationViewName resourceName =
* UserLocationViewName.of(
* "[CUSTOMER_ID]", "[COUNTRY_CRITERION_ID]", "[IS_TARGETING_LOCATION]");
* UserLocationView response = userLocationViewServiceClient.getUserLocationView(resourceName);
* }
* }
*
* ======================= VideoServiceClient =======================
*
*
Service Description: Service to manage videos.
*
*
Sample for VideoServiceClient:
*
*
{@code
* try (VideoServiceClient videoServiceClient = VideoServiceClient.create()) {
* VideoName resourceName = VideoName.of("[CUSTOMER_ID]", "[VIDEO_ID]");
* Video response = videoServiceClient.getVideo(resourceName);
* }
* }
*
* ======================= WebpageViewServiceClient =======================
*
*
Service Description: Service to manage webpage views.
*
*
Sample for WebpageViewServiceClient:
*
*
{@code
* try (WebpageViewServiceClient webpageViewServiceClient = WebpageViewServiceClient.create()) {
* WebpageViewName resourceName =
* WebpageViewName.of("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
* WebpageView response = webpageViewServiceClient.getWebpageView(resourceName);
* }
* }
*/
@Generated("by gapic-generator-java")
package com.google.ads.googleads.v9.services;
import javax.annotation.Generated;