diff --git a/ChangeLog b/ChangeLog index d3fe7e4ad..8b8dc9749 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +* 21.3.0 +- Google Ads API v14_1 release, +- Increase maximum version for proto-plus and google-api-core dependencies. +- Remove add_keyword_plan example. +- Add generate_forecast_metrics and generate_historical_metrics examples. +- Add deprecation warning for Python 3.7. + * 21.2.0 - Google Ads API v14 release. - Lower minimum version requirement for dependencies: diff --git a/README.rst b/README.rst index 7ab34c7c2..43875aee8 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,10 @@ Requirements ------------ * Python 3.7+ +Note that Python 3.7 is deprecated in this package, and it will become fully +incompatible in a future version. Please upgrade to Python 3.8 or higher to +ensure you can continue using this package to access the Google Ads API. + Installation ------------ .. code-block:: @@ -73,7 +77,7 @@ Authors .. _Andrew Burke: https://github.com/AndrewMBurke .. _Laura Chevalier: https://github.com/laurachevalier4 .. _Bob Hancock: https://github.com/bobhancock -.. _14.0.0: https://pypi.org/project/google-ads/14.0.0/.. _15.0.0: https://pypi.org/project/google-ads/15.0.0/ +.. _14.0.0: https://pypi.org/project/google-ads/14.0.0/ .. _21.2.0: https://pypi.org/project/google-ads/21.2.0/ .. _Protobuf Messages: https://developers.google.com/google-ads/api/docs/client-libs/python/protobuf-messages .. _protobuf: https://pypi.org/project/protobuf/ diff --git a/examples/planning/add_keyword_plan.py b/examples/planning/add_keyword_plan.py deleted file mode 100755 index 761dd255c..000000000 --- a/examples/planning/add_keyword_plan.py +++ /dev/null @@ -1,314 +0,0 @@ -#!/usr/bin/env python -# Copyright 2019 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. -"""This example creates a keyword plan. - -Keyword plans can be reused for retrieving forecast metrics and historic -metrics. -""" - - -import argparse -import sys -import uuid - -from google.ads.googleads.client import GoogleAdsClient -from google.ads.googleads.errors import GoogleAdsException - - -# [START add_keyword_plan] -def main(client, customer_id): - """Adds a keyword plan, campaign, ad group, etc. to the customer account. - - Also handles errors from the API and prints them. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - """ - add_keyword_plan(client, customer_id) - - -def add_keyword_plan(client, customer_id): - """Adds a keyword plan, campaign, ad group, etc. to the customer account. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - - Raises: - GoogleAdsException: If an error is returned from the API. - """ - keyword_plan = create_keyword_plan(client, customer_id) - keyword_plan_campaign = create_keyword_plan_campaign( - client, customer_id, keyword_plan - ) - keyword_plan_ad_group = create_keyword_plan_ad_group( - client, customer_id, keyword_plan_campaign - ) - create_keyword_plan_ad_group_keywords( - client, customer_id, keyword_plan_ad_group - ) - create_keyword_plan_negative_campaign_keywords( - client, customer_id, keyword_plan_campaign - ) - - -def create_keyword_plan(client, customer_id): - """Adds a keyword plan to the given customer account. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - - Returns: - A str of the resource_name for the newly created keyword plan. - - Raises: - GoogleAdsException: If an error is returned from the API. - """ - keyword_plan_service = client.get_service("KeywordPlanService") - operation = client.get_type("KeywordPlanOperation") - keyword_plan = operation.create - - keyword_plan.name = f"Keyword plan for traffic estimate {uuid.uuid4()}" - - forecast_interval = ( - client.enums.KeywordPlanForecastIntervalEnum.NEXT_QUARTER - ) - keyword_plan.forecast_period.date_interval = forecast_interval - - response = keyword_plan_service.mutate_keyword_plans( - customer_id=customer_id, operations=[operation] - ) - resource_name = response.results[0].resource_name - - print(f"Created keyword plan with resource name: {resource_name}") - - return resource_name - - -def create_keyword_plan_campaign(client, customer_id, keyword_plan): - """Adds a keyword plan campaign to the given keyword plan. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - keyword_plan: A str of the keyword plan resource_name this keyword plan - campaign should be attributed to.create_keyword_plan. - - Returns: - A str of the resource_name for the newly created keyword plan campaign. - - Raises: - GoogleAdsException: If an error is returned from the API. - """ - keyword_plan_campaign_service = client.get_service( - "KeywordPlanCampaignService" - ) - operation = client.get_type("KeywordPlanCampaignOperation") - keyword_plan_campaign = operation.create - - keyword_plan_campaign.name = f"Keyword plan campaign {uuid.uuid4()}" - keyword_plan_campaign.cpc_bid_micros = 1000000 - keyword_plan_campaign.keyword_plan = keyword_plan - - network = client.enums.KeywordPlanNetworkEnum.GOOGLE_SEARCH - keyword_plan_campaign.keyword_plan_network = network - - geo_target = client.get_type("KeywordPlanGeoTarget") - # Constant for U.S. Other geo target constants can be referenced here: - # https://developers.google.com/google-ads/api/reference/data/geotargets - geo_target.geo_target_constant = "geoTargetConstants/2840" - keyword_plan_campaign.geo_targets.append(geo_target) - - # Constant for English - language = "languageConstants/1000" - keyword_plan_campaign.language_constants.append(language) - - response = keyword_plan_campaign_service.mutate_keyword_plan_campaigns( - customer_id=customer_id, operations=[operation] - ) - - resource_name = response.results[0].resource_name - - print(f"Created keyword plan campaign with resource name: {resource_name}") - - return resource_name - - -def create_keyword_plan_ad_group(client, customer_id, keyword_plan_campaign): - """Adds a keyword plan ad group to the given keyword plan campaign. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - keyword_plan_campaign: A str of the keyword plan campaign resource_name - this keyword plan ad group should be attributed to. - - Returns: - A str of the resource_name for the newly created keyword plan ad group. - - Raises: - GoogleAdsException: If an error is returned from the API. - """ - operation = client.get_type("KeywordPlanAdGroupOperation") - keyword_plan_ad_group = operation.create - - keyword_plan_ad_group.name = f"Keyword plan ad group {uuid.uuid4()}" - keyword_plan_ad_group.cpc_bid_micros = 2500000 - keyword_plan_ad_group.keyword_plan_campaign = keyword_plan_campaign - - keyword_plan_ad_group_service = client.get_service( - "KeywordPlanAdGroupService" - ) - response = keyword_plan_ad_group_service.mutate_keyword_plan_ad_groups( - customer_id=customer_id, operations=[operation] - ) - - resource_name = response.results[0].resource_name - - print(f"Created keyword plan ad group with resource name: {resource_name}") - - return resource_name - - -def create_keyword_plan_ad_group_keywords(client, customer_id, plan_ad_group): - """Adds keyword plan ad group keywords to the given keyword plan ad group. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - plan_ad_group: A str of the keyword plan ad group resource_name - these keyword plan keywords should be attributed to. - - Raises: - GoogleAdsException: If an error is returned from the API. - """ - keyword_plan_ad_group_keyword_service = client.get_service( - "KeywordPlanAdGroupKeywordService" - ) - operation = client.get_type("KeywordPlanAdGroupKeywordOperation") - operations = [] - - operation = client.get_type("KeywordPlanAdGroupKeywordOperation") - keyword_plan_ad_group_keyword1 = operation.create - keyword_plan_ad_group_keyword1.text = "mars cruise" - keyword_plan_ad_group_keyword1.cpc_bid_micros = 2000000 - keyword_plan_ad_group_keyword1.match_type = ( - client.enums.KeywordMatchTypeEnum.BROAD - ) - keyword_plan_ad_group_keyword1.keyword_plan_ad_group = plan_ad_group - operations.append(operation) - - operation = client.get_type("KeywordPlanAdGroupKeywordOperation") - keyword_plan_ad_group_keyword2 = operation.create - keyword_plan_ad_group_keyword2.text = "cheap cruise" - keyword_plan_ad_group_keyword2.cpc_bid_micros = 1500000 - keyword_plan_ad_group_keyword2.match_type = ( - client.enums.KeywordMatchTypeEnum.PHRASE - ) - keyword_plan_ad_group_keyword2.keyword_plan_ad_group = plan_ad_group - operations.append(operation) - - operation = client.get_type("KeywordPlanAdGroupKeywordOperation") - keyword_plan_ad_group_keyword3 = operation.create - keyword_plan_ad_group_keyword3.text = "jupiter cruise" - keyword_plan_ad_group_keyword3.cpc_bid_micros = 1990000 - keyword_plan_ad_group_keyword3.match_type = ( - client.enums.KeywordMatchTypeEnum.EXACT - ) - keyword_plan_ad_group_keyword3.keyword_plan_ad_group = plan_ad_group - operations.append(operation) - - response = keyword_plan_ad_group_keyword_service.mutate_keyword_plan_ad_group_keywords( - customer_id=customer_id, operations=operations - ) - - for result in response.results: - print( - "Created keyword plan ad group keyword with resource name: " - f"{result.resource_name}" - ) - - -def create_keyword_plan_negative_campaign_keywords( - client, customer_id, plan_campaign -): - """Adds a keyword plan negative campaign keyword to the given campaign. - - Args: - client: An initialized instance of GoogleAdsClient - customer_id: A str of the customer_id to use in requests. - plan_campaign: A str of the keyword plan campaign resource_name - this keyword plan negative keyword should be attributed to. - - Raises: - GoogleAdsException: If an error is returned from the API. - """ - keyword_plan_negative_keyword_service = client.get_service( - "KeywordPlanCampaignKeywordService" - ) - operation = client.get_type("KeywordPlanCampaignKeywordOperation") - - keyword_plan_campaign_keyword = operation.create - keyword_plan_campaign_keyword.text = "moon walk" - keyword_plan_campaign_keyword.match_type = ( - client.enums.KeywordMatchTypeEnum.BROAD - ) - keyword_plan_campaign_keyword.keyword_plan_campaign = plan_campaign - keyword_plan_campaign_keyword.negative = True - - response = keyword_plan_negative_keyword_service.mutate_keyword_plan_campaign_keywords( - customer_id=customer_id, operations=[operation] - ) - - print( - "Created keyword plan campaign keyword with resource name: " - f"{response.results[0].resource_name}" - ) - # [END add_keyword_plan] - - -if __name__ == "__main__": - # GoogleAdsClient will read the google-ads.yaml configuration file in the - # home directory if none is specified. - googleads_client = GoogleAdsClient.load_from_storage(version="v14") - - parser = argparse.ArgumentParser( - description="Creates a keyword plan for specified customer." - ) - # The following argument(s) should be provided to run the example. - parser.add_argument( - "-c", - "--customer_id", - type=str, - required=True, - help="The Google Ads customer ID.", - ) - args = parser.parse_args() - - try: - main(googleads_client, args.customer_id) - except GoogleAdsException as ex: - print( - f'Request with ID "{ex.request_id}" failed with status ' - f'"{ex.error.code().name}" and includes the following errors:' - ) - for error in ex.failure.errors: - print(f'\tError with message "{error.message}".') - if error.location: - for field_path_element in error.location.field_path_elements: - print(f"\t\tOn field: {field_path_element.field_name}") - sys.exit(1) diff --git a/examples/planning/generate_forecast_metrics.py b/examples/planning/generate_forecast_metrics.py new file mode 100755 index 000000000..e4e13d649 --- /dev/null +++ b/examples/planning/generate_forecast_metrics.py @@ -0,0 +1,190 @@ +#!/usr/bin/env python +# Copyright 2023 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. +"""This example generates forecast metrics for keyword planning. + +For more details see this guide: +https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics +""" + +import argparse +from datetime import datetime, timedelta +import sys + +from google.ads.googleads.client import GoogleAdsClient +from google.ads.googleads.errors import GoogleAdsException + + +# [START generate_forecast_metrics] +def main(client, customer_id): + """The main method that creates all necessary entities for the example. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a client customer ID. + """ + campaign_to_forecast = create_campaign_to_forecast(client) + generate_forecast_metrics(client, customer_id, campaign_to_forecast) + + +def create_campaign_to_forecast(client): + """Creates the campaign to forecast. + + A campaign to forecast lets you try out various configurations and keywords + to find the best optimization for your future campaigns. Once you've found + the best campaign configuration, create a serving campaign in your Google + Ads account with similar values and keywords. For more details, see: + https://support.google.com/google-ads/answer/3022575 + + Args: + client: an initialized GoogleAdsClient instance. + + Returns: + An CampaignToForecast instance. + """ + googleads_service = client.get_service("GoogleAdsService") + # Create a campaign to forecast. + campaign_to_forecast = client.get_type("CampaignToForecast") + campaign_to_forecast.keyword_plan_network = ( + client.enums.KeywordPlanNetworkEnum.GOOGLE_SEARCH + ) + + # Set the bidding strategy. + campaign_to_forecast.bidding_strategy.manual_cpc_bidding_strategy.max_cpc_bid_micros = ( + 1000000 + ) + + # For the list of geo target IDs, see: + # https://developers.google.com/google-ads/api/reference/data/geotargets + criterion_bid_modifier = client.get_type("CriterionBidModifier") + # Geo target constant 2840 is for USA. + criterion_bid_modifier.geo_target_constant = ( + googleads_service.geo_target_constant_path("2840") + ) + campaign_to_forecast.geo_modifiers.append(criterion_bid_modifier) + + # For the list of language criteria IDs, see: + # https://developers.google.com/google-ads/api/reference/data/codes-formats#languages + # Language criteria 1000 is for English. + campaign_to_forecast.language_constants.append( + googleads_service.language_constant_path("1000") + ) + + # Create forecast ad groups based on themes such as creative relevance, + # product category, or cost per click. + forecast_ad_group = client.get_type("ForecastAdGroup") + + # Create and configure three BiddableKeyword instances. + biddable_keyword_1 = client.get_type("BiddableKeyword") + biddable_keyword_1.max_cpc_bid_micros = 2500000 + biddable_keyword_1.keyword.text = "mars cruise" + biddable_keyword_1.keyword.match_type = ( + client.enums.KeywordMatchTypeEnum.BROAD + ) + + biddable_keyword_2 = client.get_type("BiddableKeyword") + biddable_keyword_2.max_cpc_bid_micros = 1500000 + biddable_keyword_2.keyword.text = "cheap cruise" + biddable_keyword_2.keyword.match_type = ( + client.enums.KeywordMatchTypeEnum.PHRASE + ) + + biddable_keyword_3 = client.get_type("BiddableKeyword") + biddable_keyword_3.max_cpc_bid_micros = 1990000 + biddable_keyword_3.keyword.text = "cheap cruise" + biddable_keyword_3.keyword.match_type = ( + client.enums.KeywordMatchTypeEnum.EXACT + ) + + # Add the biddable keywords to the forecast ad group. + forecast_ad_group.biddable_keywords.extend( + [biddable_keyword_1, biddable_keyword_2, biddable_keyword_3] + ) + + # Create and configure a negative keyword, then add it to the forecast ad + # group. + negative_keyword = client.get_type("KeywordInfo") + negative_keyword.text = "moon walk" + negative_keyword.match_type = client.enums.KeywordMatchTypeEnum.BROAD + forecast_ad_group.negative_keywords.append(negative_keyword) + + campaign_to_forecast.ad_groups.append(forecast_ad_group) + + return campaign_to_forecast + + +def generate_forecast_metrics(client, customer_id, campaign_to_forecast): + """Generates forecast metrics and prints the results. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a client customer ID. + campaign_to_forecast: a CampaignToForecast to generate metrics for. + """ + keyword_plan_idea_service = client.get_service("KeywordPlanIdeaService") + request = client.get_type("GenerateKeywordForecastMetricsRequest") + request.customer_id = customer_id + request.campaign = campaign_to_forecast + # Set the forecast range. Repeat forecasts with different horizons to get a + # holistic picture. + # Set the forecast start date to tomorrow. + tomorrow = datetime.now() + timedelta(days=1) + request.forecast_period.start_date = tomorrow.strftime("%Y-%m-%d") + # Set the forecast end date to 30 days from today. + thirty_days_from_now = datetime.now() + timedelta(days=30) + request.forecast_period.end_date = thirty_days_from_now.strftime("%Y-%m-%d") + + response = keyword_plan_idea_service.generate_keyword_forecast_metrics( + request=request + ) + + metrics = response.campaign_forecast_metrics + print(f"Estimated daily clicks: {metrics.clicks}") + print(f"Estimated daily impressions: {metrics.impressions}") + print(f"Estimated daily average CPC: {metrics.average_cpc_micros}") + # [END generate_forecast_metrics] + + +if __name__ == "__main__": + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + googleads_client = GoogleAdsClient.load_from_storage(version="v14") + + parser = argparse.ArgumentParser( + description="Generates forecast metrics for keyword planning." + ) + # The following argument(s) should be provided to run the example. + parser.add_argument( + "-c", + "--customer_id", + type=str, + required=True, + help="The Google Ads customer ID.", + ) + + args = parser.parse_args() + + try: + main(googleads_client, args.customer_id) + except GoogleAdsException as ex: + print( + f'Request with ID "{ex.request_id}" failed with status ' + f'"{ex.error.code().name}" and includes the following errors:' + ) + for error in ex.failure.errors: + print(f'Error with message "{error.message}".') + if error.location: + for field_path_element in error.location.field_path_elements: + print(f"\t\tOn field: {field_path_element.field_name}") + sys.exit(1) diff --git a/examples/planning/generate_historical_metrics.py b/examples/planning/generate_historical_metrics.py new file mode 100755 index 000000000..2c75dce99 --- /dev/null +++ b/examples/planning/generate_historical_metrics.py @@ -0,0 +1,144 @@ +#!/usr/bin/env python +# Copyright 2023 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. +"""This example generates historical metrics for keyword planning. + +For more details see this guide: +https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics +""" + +import argparse +import sys + +from google.ads.googleads.client import GoogleAdsClient +from google.ads.googleads.errors import GoogleAdsException + + +# [START generate_historical_metrics] +def main(client, customer_id): + """The main method that creates all necessary entities for the example. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a client customer ID. + """ + generate_historical_metrics(client, customer_id) + + +def generate_historical_metrics(client, customer_id): + """Generates historical metrics and prints the results. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a client customer ID. + """ + googleads_service = client.get_service("GoogleAdsService") + keyword_plan_idea_service = client.get_service("KeywordPlanIdeaService") + request = client.get_type("GenerateKeywordHistoricalMetricsRequest") + request.customer_id = customer_id + request.keywords = ["mars cruise", "cheap cruise", "jupiter cruise"] + # Geo target constant 2840 is for USA. + request.geo_target_constants.append( + googleads_service.geo_target_constant_path("2840") + ) + request.keyword_plan_network = ( + client.enums.KeywordPlanNetworkEnum.GOOGLE_SEARCH + ) + # Language criteria 1000 is for English. For the list of language criteria + # IDs, see: + # https://developers.google.com/google-ads/api/reference/data/codes-formats#languages + request.language = googleads_service.language_constant_path("1000") + + response = keyword_plan_idea_service.generate_keyword_historical_metrics( + request=request + ) + + for result in response.results: + metrics = result.keyword_metrics + # These metrics include those for both the search query and any variants + # included in the response. + print( + f"The search query '{result.text}' (and the following variants: " + f"'{result.close_variants if result.close_variants else 'None'}'), " + "generated the following historical metrics:\n" + ) + + # Approximate number of monthly searches on this query averaged for the + # past 12 months. + print(f"\tApproximate monthly searches: {metrics.avg_monthly_searches}") + + # The competition level for this search query. + print(f"\tCompetition level: {metrics.competition}") + + # The competition index for the query in the range [0, 100]. This shows + # how competitive ad placement is for a keyword. The level of + # competition from 0-100 is determined by the number of ad slots filled + # divided by the total number of ad slots available. If not enough data + # is available, undef will be returned. + print(f"\tCompetition index: {metrics.competition_index}") + + # Top of page bid low range (20th percentile) in micros for the keyword. + print( + f"\tTop of page bid low range: {metrics.low_top_of_page_bid_micros}" + ) + + # Top of page bid high range (80th percentile) in micros for the + # keyword. + print( + "\tTop of page bid high range: " + f"{metrics.high_top_of_page_bid_micros}" + ) + + # Approximate number of searches on this query for the past twelve + # months. + for month in metrics.monthly_search_volumes: + print( + f"\tApproximately {month.monthly_searches} searches in " + f"{month.month.name}, {month.year}" + ) + # [END generate_historical_metrics] + + +if __name__ == "__main__": + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + googleads_client = GoogleAdsClient.load_from_storage(version="v14") + + parser = argparse.ArgumentParser( + description="Generates forecast metrics for keyword planning." + ) + # The following argument(s) should be provided to run the example. + parser.add_argument( + "-c", + "--customer_id", + type=str, + required=True, + help="The Google Ads customer ID.", + ) + + args = parser.parse_args() + + try: + main(googleads_client, args.customer_id) + except GoogleAdsException as ex: + print( + f'Request with ID "{ex.request_id}" failed with status ' + f'"{ex.error.code().name}" and includes the following errors:' + ) + for error in ex.failure.errors: + print(f'Error with message "{error.message}".') + if error.location: + for field_path_element in error.location.field_path_elements: + print(f"\t\tOn field: {field_path_element.field_name}") + sys.exit(1) diff --git a/google/ads/googleads/__init__.py b/google/ads/googleads/__init__.py index 807060a49..4b78ec6bd 100644 --- a/google/ads/googleads/__init__.py +++ b/google/ads/googleads/__init__.py @@ -12,8 +12,19 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys +import warnings + import google.ads.googleads.client import google.ads.googleads.errors import google.ads.googleads.util -VERSION = "21.2.0" +VERSION = "21.3.0" + +# Checks if the current runtime is Python 3.7. +if sys.version_info.major == 3 and sys.version_info.minor == 7: + warnings.warn( + "Python 3.7 is deprecated in the google-ads package. Please upgrade to " + "Python 3.8 or higher.", + category=DeprecationWarning + ) \ No newline at end of file diff --git a/google/ads/googleads/v14/__init__.py b/google/ads/googleads/v14/__init__.py index 99998eff4..8d62267aa 100644 --- a/google/ads/googleads/v14/__init__.py +++ b/google/ads/googleads/v14/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,6 +27,7 @@ "ActivityIdInfo": "google.ads.googleads.v14.common.types.criteria", "ActivityRatingInfo": "google.ads.googleads.v14.common.types.criteria", "AdAssetPolicySummary": "google.ads.googleads.v14.common.types.asset_policy", + "AdCallToActionAsset": "google.ads.googleads.v14.common.types.ad_asset", "AdDiscoveryCarouselCardAsset": "google.ads.googleads.v14.common.types.ad_asset", "AddressInfo": "google.ads.googleads.v14.common.types.criteria", "AdImageAsset": "google.ads.googleads.v14.common.types.ad_asset", @@ -98,6 +99,7 @@ "DiscoveryCarouselAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "DiscoveryCarouselCardAsset": "google.ads.googleads.v14.common.types.asset_types", "DiscoveryMultiAssetAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", + "DiscoveryVideoResponsiveAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "DisplayUploadAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "DynamicAffiliateLocationSetFilter": "google.ads.googleads.v14.common.types.feed_item_set_filter_type_infos", "DynamicBusinessProfileLocationGroupFilter": "google.ads.googleads.v14.common.types.asset_set_types", @@ -168,6 +170,7 @@ "LegacyResponsiveDisplayAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "LifeEventSegment": "google.ads.googleads.v14.common.types.audiences", "ListingDimensionInfo": "google.ads.googleads.v14.common.types.criteria", + "ListingDimensionPath": "google.ads.googleads.v14.common.types.criteria", "ListingGroupInfo": "google.ads.googleads.v14.common.types.criteria", "ListingScopeInfo": "google.ads.googleads.v14.common.types.criteria", "LocalAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", @@ -238,6 +241,7 @@ "ResponsiveDisplayAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "ResponsiveSearchAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "RuleBasedUserListInfo": "google.ads.googleads.v14.common.types.user_lists", + "SearchVolumeRange": "google.ads.googleads.v14.common.types.metrics", "Segments": "google.ads.googleads.v14.common.types.segments", "ShoppingComparisonListingAdInfo": "google.ads.googleads.v14.common.types.ad_type_infos", "ShoppingLoyalty": "google.ads.googleads.v14.common.types.offline_user_data", @@ -341,6 +345,8 @@ "AppStoreEnum": "google.ads.googleads.v14.enums.types.app_store", "AppUrlOperatingSystemTypeEnum": "google.ads.googleads.v14.enums.types.app_url_operating_system_type", "AssetFieldTypeEnum": "google.ads.googleads.v14.enums.types.asset_field_type", + "AssetGroupPrimaryStatusEnum": "google.ads.googleads.v14.enums.types.asset_group_primary_status", + "AssetGroupPrimaryStatusReasonEnum": "google.ads.googleads.v14.enums.types.asset_group_primary_status_reason", "AssetGroupStatusEnum": "google.ads.googleads.v14.enums.types.asset_group_status", "AssetLinkPrimaryStatusEnum": "google.ads.googleads.v14.enums.types.asset_link_primary_status", "AssetLinkPrimaryStatusReasonEnum": "google.ads.googleads.v14.enums.types.asset_link_primary_status_reason", @@ -408,6 +414,7 @@ "ConversionValueRulePrimaryDimensionEnum": "google.ads.googleads.v14.enums.types.conversion_value_rule_primary_dimension", "ConversionValueRuleSetStatusEnum": "google.ads.googleads.v14.enums.types.conversion_value_rule_set_status", "ConversionValueRuleStatusEnum": "google.ads.googleads.v14.enums.types.conversion_value_rule_status", + "ConvertingUserPriorEngagementTypeAndLtvBucketEnum": "google.ads.googleads.v14.enums.types.converting_user_prior_engagement_type_and_ltv_bucket", "CriterionCategoryChannelAvailabilityModeEnum": "google.ads.googleads.v14.enums.types.criterion_category_channel_availability_mode", "CriterionCategoryLocaleAvailabilityModeEnum": "google.ads.googleads.v14.enums.types.criterion_category_locale_availability_mode", "CriterionSystemServingStatusEnum": "google.ads.googleads.v14.enums.types.criterion_system_serving_status", @@ -760,6 +767,7 @@ "ResourceAccessDeniedErrorEnum": "google.ads.googleads.v14.errors.types.resource_access_denied_error", "ResourceCountDetails": "google.ads.googleads.v14.errors.types.errors", "ResourceCountLimitExceededErrorEnum": "google.ads.googleads.v14.errors.types.resource_count_limit_exceeded_error", + "SearchTermInsightErrorEnum": "google.ads.googleads.v14.errors.types.search_term_insight_error", "SettingErrorEnum": "google.ads.googleads.v14.errors.types.setting_error", "SharedCriterionErrorEnum": "google.ads.googleads.v14.errors.types.shared_criterion_error", "SharedSetErrorEnum": "google.ads.googleads.v14.errors.types.shared_set_error", @@ -838,6 +846,7 @@ "CampaignFeed": "google.ads.googleads.v14.resources.types.campaign_feed", "CampaignGroup": "google.ads.googleads.v14.resources.types.campaign_group", "CampaignLabel": "google.ads.googleads.v14.resources.types.campaign_label", + "CampaignSearchTermInsight": "google.ads.googleads.v14.resources.types.campaign_search_term_insight", "CampaignSharedSet": "google.ads.googleads.v14.resources.types.campaign_shared_set", "CampaignSimulation": "google.ads.googleads.v14.resources.types.campaign_simulation", "CarrierConstant": "google.ads.googleads.v14.resources.types.carrier_constant", @@ -856,6 +865,7 @@ "CustomAudienceMember": "google.ads.googleads.v14.resources.types.custom_audience", "CustomConversionGoal": "google.ads.googleads.v14.resources.types.custom_conversion_goal", "Customer": "google.ads.googleads.v14.resources.types.customer", + "CustomerAgreementSetting": "google.ads.googleads.v14.resources.types.customer", "CustomerAsset": "google.ads.googleads.v14.resources.types.customer_asset", "CustomerAssetSet": "google.ads.googleads.v14.resources.types.customer_asset_set", "CustomerClient": "google.ads.googleads.v14.resources.types.customer_client", @@ -867,6 +877,7 @@ "CustomerLabel": "google.ads.googleads.v14.resources.types.customer_label", "CustomerManagerLink": "google.ads.googleads.v14.resources.types.customer_manager_link", "CustomerNegativeCriterion": "google.ads.googleads.v14.resources.types.customer_negative_criterion", + "CustomerSearchTermInsight": "google.ads.googleads.v14.resources.types.customer_search_term_insight", "CustomerSkAdNetworkConversionValueSchema": "google.ads.googleads.v14.resources.types.customer_sk_ad_network_conversion_value_schema", "CustomerUserAccess": "google.ads.googleads.v14.resources.types.customer_user_access", "CustomerUserAccessInvitation": "google.ads.googleads.v14.resources.types.customer_user_access_invitation", @@ -927,6 +938,7 @@ "LeadFormSubmissionField": "google.ads.googleads.v14.resources.types.lead_form_submission_data", "LifeEvent": "google.ads.googleads.v14.resources.types.life_event", "ListingGroupFilterDimension": "google.ads.googleads.v14.resources.types.asset_group_listing_group_filter", + "ListingGroupFilterDimensionPath": "google.ads.googleads.v14.resources.types.asset_group_listing_group_filter", "LocationView": "google.ads.googleads.v14.resources.types.location_view", "ManagedPlacementView": "google.ads.googleads.v14.resources.types.managed_placement_view", "MediaAudio": "google.ads.googleads.v14.resources.types.media_file", diff --git a/google/ads/googleads/v14/common/__init__.py b/google/ads/googleads/v14/common/__init__.py index e4895b2f5..5eaa10501 100644 --- a/google/ads/googleads/v14/common/__init__.py +++ b/google/ads/googleads/v14/common/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ "ActivityIdInfo", "ActivityRatingInfo", "AdAssetPolicySummary", + "AdCallToActionAsset", "AdDiscoveryCarouselCardAsset", "AdImageAsset", "AdMediaBundleAsset", @@ -90,6 +91,7 @@ "DiscoveryCarouselAdInfo", "DiscoveryCarouselCardAsset", "DiscoveryMultiAssetAdInfo", + "DiscoveryVideoResponsiveAdInfo", "DisplayUploadAdInfo", "DynamicAffiliateLocationSetFilter", "DynamicBusinessProfileLocationGroupFilter", @@ -160,6 +162,7 @@ "LegacyResponsiveDisplayAdInfo", "LifeEventSegment", "ListingDimensionInfo", + "ListingDimensionPath", "ListingGroupInfo", "ListingScopeInfo", "LocalAdInfo", @@ -230,6 +233,7 @@ "ResponsiveDisplayAdInfo", "ResponsiveSearchAdInfo", "RuleBasedUserListInfo", + "SearchVolumeRange", "Segments", "ShoppingComparisonListingAdInfo", "ShoppingLoyalty", diff --git a/google/ads/googleads/v14/common/services/__init__.py b/google/ads/googleads/v14/common/services/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/common/services/__init__.py +++ b/google/ads/googleads/v14/common/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/common/types/__init__.py b/google/ads/googleads/v14/common/types/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/common/types/__init__.py +++ b/google/ads/googleads/v14/common/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/common/types/ad_asset.py b/google/ads/googleads/v14/common/types/ad_asset.py index d2b80557a..f2fff3bf2 100644 --- a/google/ads/googleads/v14/common/types/ad_asset.py +++ b/google/ads/googleads/v14/common/types/ad_asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ "AdVideoAsset", "AdMediaBundleAsset", "AdDiscoveryCarouselCardAsset", + "AdCallToActionAsset", }, ) @@ -61,7 +62,9 @@ class AdTextAsset(proto.Message): """ text: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) pinned_field: served_asset_field_type.ServedAssetFieldTypeEnum.ServedAssetFieldType = proto.Field( proto.ENUM, @@ -74,7 +77,9 @@ class AdTextAsset(proto.Message): enum=gage_asset_performance_label.AssetPerformanceLabelEnum.AssetPerformanceLabel, ) policy_summary_info: asset_policy.AdAssetPolicySummary = proto.Field( - proto.MESSAGE, number=6, message=asset_policy.AdAssetPolicySummary, + proto.MESSAGE, + number=6, + message=asset_policy.AdAssetPolicySummary, ) @@ -90,7 +95,9 @@ class AdImageAsset(proto.Message): """ asset: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -106,7 +113,9 @@ class AdVideoAsset(proto.Message): """ asset: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -122,7 +131,9 @@ class AdMediaBundleAsset(proto.Message): """ asset: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -139,7 +150,28 @@ class AdDiscoveryCarouselCardAsset(proto.Message): """ asset: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, + ) + + +class AdCallToActionAsset(proto.Message): + r"""A call to action asset used inside an ad. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + asset (str): + The Asset resource name of this call to + action asset. + + This field is a member of `oneof`_ ``_asset``. + """ + + asset: str = proto.Field( + proto.STRING, + number=1, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/ad_type_infos.py b/google/ads/googleads/v14/common/types/ad_type_infos.py index 34b271aa5..bc886876b 100644 --- a/google/ads/googleads/v14/common/types/ad_type_infos.py +++ b/google/ads/googleads/v14/common/types/ad_type_infos.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -64,6 +64,7 @@ "CallAdInfo", "DiscoveryMultiAssetAdInfo", "DiscoveryCarouselAdInfo", + "DiscoveryVideoResponsiveAdInfo", }, ) @@ -88,13 +89,19 @@ class TextAdInfo(proto.Message): """ headline: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) description1: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) description2: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) @@ -136,25 +143,39 @@ class ExpandedTextAdInfo(proto.Message): """ headline_part1: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) headline_part2: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) headline_part3: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) description: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) description2: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) path1: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) path2: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) @@ -174,31 +195,31 @@ class ExpandedDynamicSearchAdInfo(proto.Message): """ description: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) description2: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) class HotelAdInfo(proto.Message): - r"""A hotel ad. - """ + r"""A hotel ad.""" class TravelAdInfo(proto.Message): - r"""A travel ad. - """ + r"""A travel ad.""" class ShoppingSmartAdInfo(proto.Message): - r"""A Smart Shopping ad. - """ + r"""A Smart Shopping ad.""" class ShoppingProductAdInfo(proto.Message): - r"""A standard Shopping ad. - """ + r"""A standard Shopping ad.""" class ShoppingComparisonListingAdInfo(proto.Message): @@ -214,7 +235,9 @@ class ShoppingComparisonListingAdInfo(proto.Message): """ headline: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -276,37 +299,59 @@ class ImageAdInfo(proto.Message): """ pixel_width: int = proto.Field( - proto.INT64, number=15, optional=True, + proto.INT64, + number=15, + optional=True, ) pixel_height: int = proto.Field( - proto.INT64, number=16, optional=True, + proto.INT64, + number=16, + optional=True, ) image_url: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) preview_pixel_width: int = proto.Field( - proto.INT64, number=18, optional=True, + proto.INT64, + number=18, + optional=True, ) preview_pixel_height: int = proto.Field( - proto.INT64, number=19, optional=True, + proto.INT64, + number=19, + optional=True, ) preview_image_url: str = proto.Field( - proto.STRING, number=20, optional=True, + proto.STRING, + number=20, + optional=True, ) mime_type: gage_mime_type.MimeTypeEnum.MimeType = proto.Field( - proto.ENUM, number=10, enum=gage_mime_type.MimeTypeEnum.MimeType, + proto.ENUM, + number=10, + enum=gage_mime_type.MimeTypeEnum.MimeType, ) name: str = proto.Field( - proto.STRING, number=21, optional=True, + proto.STRING, + number=21, + optional=True, ) media_file: str = proto.Field( - proto.STRING, number=12, oneof="image", + proto.STRING, + number=12, + oneof="image", ) data: bytes = proto.Field( - proto.BYTES, number=13, oneof="image", + proto.BYTES, + number=13, + oneof="image", ) ad_id_to_copy_image_from: int = proto.Field( - proto.INT64, number=14, oneof="image", + proto.INT64, + number=14, + oneof="image", ) @@ -328,13 +373,17 @@ class VideoBumperInStreamAdInfo(proto.Message): """ companion_banner: ad_asset.AdImageAsset = proto.Field( - proto.MESSAGE, number=3, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdImageAsset, ) action_button_label: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) action_headline: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) @@ -356,13 +405,17 @@ class VideoNonSkippableInStreamAdInfo(proto.Message): """ companion_banner: ad_asset.AdImageAsset = proto.Field( - proto.MESSAGE, number=5, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=5, + message=ad_asset.AdImageAsset, ) action_button_label: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) action_headline: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -387,13 +440,17 @@ class VideoTrueViewInStreamAdInfo(proto.Message): """ action_button_label: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) action_headline: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) companion_banner: ad_asset.AdImageAsset = proto.Field( - proto.MESSAGE, number=7, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=7, + message=ad_asset.AdImageAsset, ) @@ -409,10 +466,12 @@ class VideoOutstreamAdInfo(proto.Message): """ headline: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) description: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -430,13 +489,16 @@ class InFeedVideoAdInfo(proto.Message): """ headline: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) description1: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) description2: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) thumbnail: video_thumbnail.VideoThumbnailEnum.VideoThumbnail = proto.Field( proto.ENUM, @@ -480,7 +542,9 @@ class VideoAdInfo(proto.Message): """ video: ad_asset.AdVideoAsset = proto.Field( - proto.MESSAGE, number=8, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=8, + message=ad_asset.AdVideoAsset, ) in_stream: "VideoTrueViewInStreamAdInfo" = proto.Field( proto.MESSAGE, @@ -495,7 +559,10 @@ class VideoAdInfo(proto.Message): message="VideoBumperInStreamAdInfo", ) out_stream: "VideoOutstreamAdInfo" = proto.Field( - proto.MESSAGE, number=4, oneof="format", message="VideoOutstreamAdInfo", + proto.MESSAGE, + number=4, + oneof="format", + message="VideoOutstreamAdInfo", ) non_skippable: "VideoNonSkippableInStreamAdInfo" = proto.Field( proto.MESSAGE, @@ -504,7 +571,10 @@ class VideoAdInfo(proto.Message): message="VideoNonSkippableInStreamAdInfo", ) in_feed: "InFeedVideoAdInfo" = proto.Field( - proto.MESSAGE, number=9, oneof="format", message="InFeedVideoAdInfo", + proto.MESSAGE, + number=9, + oneof="format", + message="InFeedVideoAdInfo", ) @@ -545,32 +615,46 @@ class VideoResponsiveAdInfo(proto.Message): """ headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) long_headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdTextAsset, ) call_to_actions: MutableSequence[ ad_asset.AdTextAsset ] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdTextAsset, ) videos: MutableSequence[ad_asset.AdVideoAsset] = proto.RepeatedField( - proto.MESSAGE, number=5, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=5, + message=ad_asset.AdVideoAsset, ) companion_banners: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=6, + message=ad_asset.AdImageAsset, ) breadcrumb1: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) breadcrumb2: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) @@ -612,16 +696,24 @@ class ResponsiveSearchAdInfo(proto.Message): """ headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) path1: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) path2: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) @@ -709,40 +801,64 @@ class LegacyResponsiveDisplayAdInfo(proto.Message): """ short_headline: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) long_headline: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) description: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) business_name: str = proto.Field( - proto.STRING, number=19, optional=True, + proto.STRING, + number=19, + optional=True, ) allow_flexible_color: bool = proto.Field( - proto.BOOL, number=20, optional=True, + proto.BOOL, + number=20, + optional=True, ) accent_color: str = proto.Field( - proto.STRING, number=21, optional=True, + proto.STRING, + number=21, + optional=True, ) main_color: str = proto.Field( - proto.STRING, number=22, optional=True, + proto.STRING, + number=22, + optional=True, ) call_to_action_text: str = proto.Field( - proto.STRING, number=23, optional=True, + proto.STRING, + number=23, + optional=True, ) logo_image: str = proto.Field( - proto.STRING, number=24, optional=True, + proto.STRING, + number=24, + optional=True, ) square_logo_image: str = proto.Field( - proto.STRING, number=25, optional=True, + proto.STRING, + number=25, + optional=True, ) marketing_image: str = proto.Field( - proto.STRING, number=26, optional=True, + proto.STRING, + number=26, + optional=True, ) square_marketing_image: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) format_setting: display_ad_format_setting.DisplayAdFormatSettingEnum.DisplayAdFormatSetting = proto.Field( proto.ENUM, @@ -750,10 +866,14 @@ class LegacyResponsiveDisplayAdInfo(proto.Message): enum=display_ad_format_setting.DisplayAdFormatSettingEnum.DisplayAdFormatSetting, ) price_prefix: str = proto.Field( - proto.STRING, number=28, optional=True, + proto.STRING, + number=28, + optional=True, ) promo_text: str = proto.Field( - proto.STRING, number=29, optional=True, + proto.STRING, + number=29, + optional=True, ) @@ -782,26 +902,38 @@ class AppAdInfo(proto.Message): """ mandatory_ad_text: ad_asset.AdTextAsset = proto.Field( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdTextAsset, ) images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdImageAsset, ) youtube_videos: MutableSequence[ ad_asset.AdVideoAsset ] = proto.RepeatedField( - proto.MESSAGE, number=5, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=5, + message=ad_asset.AdVideoAsset, ) html5_media_bundles: MutableSequence[ ad_asset.AdMediaBundleAsset ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=ad_asset.AdMediaBundleAsset, + proto.MESSAGE, + number=6, + message=ad_asset.AdMediaBundleAsset, ) @@ -830,16 +962,24 @@ class AppEngagementAdInfo(proto.Message): """ headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdImageAsset, ) videos: MutableSequence[ad_asset.AdVideoAsset] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdVideoAsset, ) @@ -869,18 +1009,26 @@ class AppPreRegistrationAdInfo(proto.Message): """ headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdImageAsset, ) youtube_videos: MutableSequence[ ad_asset.AdVideoAsset ] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdVideoAsset, ) @@ -912,7 +1060,9 @@ class LegacyAppInstallAdInfo(proto.Message): """ app_id: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) app_store: legacy_app_install_ad_app_store.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore = proto.Field( proto.ENUM, @@ -920,13 +1070,19 @@ class LegacyAppInstallAdInfo(proto.Message): enum=legacy_app_install_ad_app_store.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore, ) headline: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) description1: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) description2: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) @@ -1022,55 +1178,85 @@ class ResponsiveDisplayAdInfo(proto.Message): marketing_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdImageAsset, ) square_marketing_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdImageAsset, ) logo_images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdImageAsset, ) square_logo_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdImageAsset, ) headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=5, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=5, + message=ad_asset.AdTextAsset, ) long_headline: ad_asset.AdTextAsset = proto.Field( - proto.MESSAGE, number=6, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=6, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=7, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=7, + message=ad_asset.AdTextAsset, ) youtube_videos: MutableSequence[ ad_asset.AdVideoAsset ] = proto.RepeatedField( - proto.MESSAGE, number=8, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=8, + message=ad_asset.AdVideoAsset, ) business_name: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) main_color: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) accent_color: str = proto.Field( - proto.STRING, number=19, optional=True, + proto.STRING, + number=19, + optional=True, ) allow_flexible_color: bool = proto.Field( - proto.BOOL, number=20, optional=True, + proto.BOOL, + number=20, + optional=True, ) call_to_action_text: str = proto.Field( - proto.STRING, number=21, optional=True, + proto.STRING, + number=21, + optional=True, ) price_prefix: str = proto.Field( - proto.STRING, number=22, optional=True, + proto.STRING, + number=22, + optional=True, ) promo_text: str = proto.Field( - proto.STRING, number=23, optional=True, + proto.STRING, + number=23, + optional=True, ) format_setting: display_ad_format_setting.DisplayAdFormatSettingEnum.DisplayAdFormatSetting = proto.Field( proto.ENUM, @@ -1078,7 +1264,9 @@ class ResponsiveDisplayAdInfo(proto.Message): enum=display_ad_format_setting.DisplayAdFormatSettingEnum.DisplayAdFormatSetting, ) control_spec: "ResponsiveDisplayAdControlSpec" = proto.Field( - proto.MESSAGE, number=24, message="ResponsiveDisplayAdControlSpec", + proto.MESSAGE, + number=24, + message="ResponsiveDisplayAdControlSpec", ) @@ -1131,32 +1319,48 @@ class LocalAdInfo(proto.Message): """ headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) call_to_actions: MutableSequence[ ad_asset.AdTextAsset ] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdTextAsset, ) marketing_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdImageAsset, ) logo_images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( - proto.MESSAGE, number=5, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=5, + message=ad_asset.AdImageAsset, ) videos: MutableSequence[ad_asset.AdVideoAsset] = proto.RepeatedField( - proto.MESSAGE, number=6, message=ad_asset.AdVideoAsset, + proto.MESSAGE, + number=6, + message=ad_asset.AdVideoAsset, ) path1: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) path2: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) @@ -1211,10 +1415,12 @@ class ResponsiveDisplayAdControlSpec(proto.Message): """ enable_asset_enhancements: bool = proto.Field( - proto.BOOL, number=1, + proto.BOOL, + number=1, ) enable_autogen_video: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -1234,10 +1440,14 @@ class SmartCampaignAdInfo(proto.Message): """ headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, ) @@ -1290,37 +1500,48 @@ class CallAdInfo(proto.Message): """ country_code: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) phone_number: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) business_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) headline1: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) headline2: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) description1: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) description2: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) call_tracked: bool = proto.Field( - proto.BOOL, number=6, + proto.BOOL, + number=6, ) disable_call_conversion: bool = proto.Field( - proto.BOOL, number=7, + proto.BOOL, + number=7, ) phone_number_verification_url: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) conversion_action: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) conversion_reporting_state: call_conversion_reporting_state.CallConversionReportingStateEnum.CallConversionReportingState = proto.Field( proto.ENUM, @@ -1328,10 +1549,12 @@ class CallAdInfo(proto.Message): enum=call_conversion_reporting_state.CallConversionReportingStateEnum.CallConversionReportingState, ) path1: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) path2: str = proto.Field( - proto.STRING, number=14, + proto.STRING, + number=14, ) @@ -1393,35 +1616,53 @@ class DiscoveryMultiAssetAdInfo(proto.Message): marketing_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=1, + message=ad_asset.AdImageAsset, ) square_marketing_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=2, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdImageAsset, ) portrait_marketing_images: MutableSequence[ ad_asset.AdImageAsset ] = proto.RepeatedField( - proto.MESSAGE, number=3, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdImageAsset, ) logo_images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( - proto.MESSAGE, number=4, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdImageAsset, ) headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=5, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=5, + message=ad_asset.AdTextAsset, ) descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( - proto.MESSAGE, number=6, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=6, + message=ad_asset.AdTextAsset, ) business_name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) call_to_action_text: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) lead_form_only: bool = proto.Field( - proto.BOOL, number=9, optional=True, + proto.BOOL, + number=9, + optional=True, ) @@ -1446,24 +1687,113 @@ class DiscoveryCarouselAdInfo(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) logo_image: ad_asset.AdImageAsset = proto.Field( - proto.MESSAGE, number=2, message=ad_asset.AdImageAsset, + proto.MESSAGE, + number=2, + message=ad_asset.AdImageAsset, ) headline: ad_asset.AdTextAsset = proto.Field( - proto.MESSAGE, number=3, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=3, + message=ad_asset.AdTextAsset, ) description: ad_asset.AdTextAsset = proto.Field( - proto.MESSAGE, number=4, message=ad_asset.AdTextAsset, + proto.MESSAGE, + number=4, + message=ad_asset.AdTextAsset, ) call_to_action_text: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) carousel_cards: MutableSequence[ ad_asset.AdDiscoveryCarouselCardAsset ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=ad_asset.AdDiscoveryCarouselCardAsset, + proto.MESSAGE, + number=6, + message=ad_asset.AdDiscoveryCarouselCardAsset, + ) + + +class DiscoveryVideoResponsiveAdInfo(proto.Message): + r"""A discovery video responsive ad. + Attributes: + headlines (MutableSequence[google.ads.googleads.v14.common.types.AdTextAsset]): + List of text assets used for the short + headline, for example, the "Call To Action" + banner. + long_headlines (MutableSequence[google.ads.googleads.v14.common.types.AdTextAsset]): + List of text assets used for the long + headline. + descriptions (MutableSequence[google.ads.googleads.v14.common.types.AdTextAsset]): + List of text assets used for the description. + videos (MutableSequence[google.ads.googleads.v14.common.types.AdVideoAsset]): + List of YouTube video assets used for the ad. + logo_images (MutableSequence[google.ads.googleads.v14.common.types.AdImageAsset]): + Logo image to be used in the ad. Valid image + types are GIF, JPEG, and PNG. The minimum size + is 128x128 and the aspect ratio must be + 1:1(+-1%). + breadcrumb1 (str): + First part of text that appears in the ad + with the displayed URL. + breadcrumb2 (str): + Second part of text that appears in the ad + with the displayed URL. + business_name (google.ads.googleads.v14.common.types.AdTextAsset): + Required. The advertiser/brand name. + call_to_actions (MutableSequence[google.ads.googleads.v14.common.types.AdCallToActionAsset]): + Assets of type CallToActionAsset used for the + "Call To Action" button. + """ + + headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( + proto.MESSAGE, + number=1, + message=ad_asset.AdTextAsset, + ) + long_headlines: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( + proto.MESSAGE, + number=2, + message=ad_asset.AdTextAsset, + ) + descriptions: MutableSequence[ad_asset.AdTextAsset] = proto.RepeatedField( + proto.MESSAGE, + number=3, + message=ad_asset.AdTextAsset, + ) + videos: MutableSequence[ad_asset.AdVideoAsset] = proto.RepeatedField( + proto.MESSAGE, + number=4, + message=ad_asset.AdVideoAsset, + ) + logo_images: MutableSequence[ad_asset.AdImageAsset] = proto.RepeatedField( + proto.MESSAGE, + number=5, + message=ad_asset.AdImageAsset, + ) + breadcrumb1: str = proto.Field( + proto.STRING, + number=6, + ) + breadcrumb2: str = proto.Field( + proto.STRING, + number=7, + ) + business_name: ad_asset.AdTextAsset = proto.Field( + proto.MESSAGE, + number=8, + message=ad_asset.AdTextAsset, + ) + call_to_actions: MutableSequence[ + ad_asset.AdCallToActionAsset + ] = proto.RepeatedField( + proto.MESSAGE, + number=9, + message=ad_asset.AdCallToActionAsset, ) diff --git a/google/ads/googleads/v14/common/types/asset_policy.py b/google/ads/googleads/v14/common/types/asset_policy.py index 0de54f49a..7558aa9d5 100644 --- a/google/ads/googleads/v14/common/types/asset_policy.py +++ b/google/ads/googleads/v14/common/types/asset_policy.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,9 @@ class AdAssetPolicySummary(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=1, + message=policy.PolicyTopicEntry, ) review_status: policy_review_status.PolicyReviewStatusEnum.PolicyReviewStatus = proto.Field( proto.ENUM, @@ -80,7 +82,7 @@ class AssetLinkPrimaryStatusDetails(proto.Message): annotated with it. For instance, when the reason is ASSET_DISAPPROVED, the details field will contain additional information about the offline evaluation errors which led to the - asset being disapproved. Next Id: 4 + asset being disapproved. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -114,14 +116,15 @@ class AssetLinkPrimaryStatusDetails(proto.Message): enum=asset_link_primary_status.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus, ) asset_disapproved: "AssetDisapproved" = proto.Field( - proto.MESSAGE, number=3, oneof="details", message="AssetDisapproved", + proto.MESSAGE, + number=3, + oneof="details", + message="AssetDisapproved", ) class AssetDisapproved(proto.Message): r"""Details related to AssetLinkPrimaryStatusReasonPB.ASSET_DISAPPROVED - Next Id: 2 - Attributes: offline_evaluation_error_reasons (MutableSequence[google.ads.googleads.v14.enums.types.AssetOfflineEvaluationErrorReasonsEnum.AssetOfflineEvaluationErrorReasons]): Provides the quality evaluation disapproval diff --git a/google/ads/googleads/v14/common/types/asset_set_types.py b/google/ads/googleads/v14/common/types/asset_set_types.py index 5f41afb39..c4daecae4 100644 --- a/google/ads/googleads/v14/common/types/asset_set_types.py +++ b/google/ads/googleads/v14/common/types/asset_set_types.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -90,10 +90,16 @@ class LocationSet(proto.Message): message="BusinessProfileLocationSet", ) chain_location_set: "ChainSet" = proto.Field( - proto.MESSAGE, number=2, oneof="source", message="ChainSet", + proto.MESSAGE, + number=2, + oneof="source", + message="ChainSet", ) maps_location_set: "MapsLocationSet" = proto.Field( - proto.MESSAGE, number=5, oneof="source", message="MapsLocationSet", + proto.MESSAGE, + number=5, + oneof="source", + message="MapsLocationSet", ) @@ -142,22 +148,28 @@ class BusinessProfileLocationSet(proto.Message): """ http_authorization_token: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) email_address: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) business_name_filter: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) label_filters: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) listing_id_filters: MutableSequence[int] = proto.RepeatedField( - proto.INT64, number=5, + proto.INT64, + number=5, ) business_account_id: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) @@ -180,7 +192,9 @@ class ChainSet(proto.Message): enum=chain_relationship_type.ChainRelationshipTypeEnum.ChainRelationshipType, ) chains: MutableSequence["ChainFilter"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ChainFilter", + proto.MESSAGE, + number=2, + message="ChainFilter", ) @@ -202,10 +216,12 @@ class ChainFilter(proto.Message): """ chain_id: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) location_attributes: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -218,7 +234,9 @@ class MapsLocationSet(proto.Message): """ maps_locations: MutableSequence["MapsLocationInfo"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MapsLocationInfo", + proto.MESSAGE, + number=1, + message="MapsLocationInfo", ) @@ -230,7 +248,8 @@ class MapsLocationInfo(proto.Message): """ place_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -275,7 +294,8 @@ class DynamicBusinessProfileLocationGroupFilter(proto.Message): """ label_filters: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) business_name_filter: "BusinessProfileBusinessNameFilter" = proto.Field( proto.MESSAGE, @@ -284,7 +304,8 @@ class DynamicBusinessProfileLocationGroupFilter(proto.Message): message="BusinessProfileBusinessNameFilter", ) listing_id_filters: MutableSequence[int] = proto.RepeatedField( - proto.INT64, number=3, + proto.INT64, + number=3, ) @@ -299,7 +320,8 @@ class BusinessProfileBusinessNameFilter(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) filter_type: location_string_filter_type.LocationStringFilterTypeEnum.LocationStringFilterType = proto.Field( proto.ENUM, @@ -323,7 +345,9 @@ class ChainLocationGroup(proto.Message): dynamic_chain_location_group_filters: MutableSequence[ "ChainFilter" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="ChainFilter", + proto.MESSAGE, + number=1, + message="ChainFilter", ) diff --git a/google/ads/googleads/v14/common/types/asset_types.py b/google/ads/googleads/v14/common/types/asset_types.py index 1fd3d160c..7f9ccd025 100644 --- a/google/ads/googleads/v14/common/types/asset_types.py +++ b/google/ads/googleads/v14/common/types/asset_types.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -105,10 +105,13 @@ class YoutubeVideoAsset(proto.Message): """ youtube_video_id: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) youtube_video_title: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) @@ -129,7 +132,9 @@ class MediaBundleAsset(proto.Message): """ data: bytes = proto.Field( - proto.BYTES, number=2, optional=True, + proto.BYTES, + number=2, + optional=True, ) @@ -154,16 +159,24 @@ class ImageAsset(proto.Message): """ data: bytes = proto.Field( - proto.BYTES, number=5, optional=True, + proto.BYTES, + number=5, + optional=True, ) file_size: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) mime_type: gage_mime_type.MimeTypeEnum.MimeType = proto.Field( - proto.ENUM, number=3, enum=gage_mime_type.MimeTypeEnum.MimeType, + proto.ENUM, + number=3, + enum=gage_mime_type.MimeTypeEnum.MimeType, ) full_size: "ImageDimension" = proto.Field( - proto.MESSAGE, number=4, message="ImageDimension", + proto.MESSAGE, + number=4, + message="ImageDimension", ) @@ -190,13 +203,19 @@ class ImageDimension(proto.Message): """ height_pixels: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) width_pixels: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) url: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) @@ -212,7 +231,9 @@ class TextAsset(proto.Message): """ text: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -288,7 +309,8 @@ class LeadFormAsset(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) call_to_action_type: lead_form_call_to_action_type.LeadFormCallToActionTypeEnum.LeadFormCallToActionType = proto.Field( proto.ENUM, @@ -296,35 +318,49 @@ class LeadFormAsset(proto.Message): enum=lead_form_call_to_action_type.LeadFormCallToActionTypeEnum.LeadFormCallToActionType, ) call_to_action_description: str = proto.Field( - proto.STRING, number=18, + proto.STRING, + number=18, ) headline: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) description: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) privacy_policy_url: str = proto.Field( - proto.STRING, number=14, + proto.STRING, + number=14, ) post_submit_headline: str = proto.Field( - proto.STRING, number=15, optional=True, + proto.STRING, + number=15, + optional=True, ) post_submit_description: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) fields: MutableSequence["LeadFormField"] = proto.RepeatedField( - proto.MESSAGE, number=8, message="LeadFormField", + proto.MESSAGE, + number=8, + message="LeadFormField", ) custom_question_fields: MutableSequence[ "LeadFormCustomQuestionField" ] = proto.RepeatedField( - proto.MESSAGE, number=23, message="LeadFormCustomQuestionField", + proto.MESSAGE, + number=23, + message="LeadFormCustomQuestionField", ) delivery_methods: MutableSequence[ "LeadFormDeliveryMethod" ] = proto.RepeatedField( - proto.MESSAGE, number=9, message="LeadFormDeliveryMethod", + proto.MESSAGE, + number=9, + message="LeadFormDeliveryMethod", ) post_submit_call_to_action_type: lead_form_post_submit_call_to_action_type.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType = proto.Field( proto.ENUM, @@ -332,7 +368,9 @@ class LeadFormAsset(proto.Message): enum=lead_form_post_submit_call_to_action_type.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType, ) background_image_asset: str = proto.Field( - proto.STRING, number=20, optional=True, + proto.STRING, + number=20, + optional=True, ) desired_intent: lead_form_desired_intent.LeadFormDesiredIntentEnum.LeadFormDesiredIntent = proto.Field( proto.ENUM, @@ -340,7 +378,9 @@ class LeadFormAsset(proto.Message): enum=lead_form_desired_intent.LeadFormDesiredIntentEnum.LeadFormDesiredIntent, ) custom_disclosure: str = proto.Field( - proto.STRING, number=22, optional=True, + proto.STRING, + number=22, + optional=True, ) @@ -389,7 +429,9 @@ class LeadFormField(proto.Message): message="LeadFormSingleChoiceAnswers", ) has_location_answer: bool = proto.Field( - proto.BOOL, number=3, oneof="answers", + proto.BOOL, + number=3, + oneof="answers", ) @@ -424,7 +466,8 @@ class LeadFormCustomQuestionField(proto.Message): """ custom_question_text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) single_choice_answers: "LeadFormSingleChoiceAnswers" = proto.Field( proto.MESSAGE, @@ -433,7 +476,9 @@ class LeadFormCustomQuestionField(proto.Message): message="LeadFormSingleChoiceAnswers", ) has_location_answer: bool = proto.Field( - proto.BOOL, number=3, oneof="answers", + proto.BOOL, + number=3, + oneof="answers", ) @@ -449,7 +494,8 @@ class LeadFormSingleChoiceAnswers(proto.Message): """ answers: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -499,13 +545,19 @@ class WebhookDelivery(proto.Message): """ advertiser_webhook_url: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) google_secret: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) payload_schema_version: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) @@ -580,7 +632,8 @@ class PromotionAsset(proto.Message): """ promotion_target: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) discount_modifier: promotion_extension_discount_modifier.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier = proto.Field( proto.ENUM, @@ -588,10 +641,12 @@ class PromotionAsset(proto.Message): enum=promotion_extension_discount_modifier.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier, ) redemption_start_date: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) redemption_end_date: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) occasion: promotion_extension_occasion.PromotionExtensionOccasionEnum.PromotionExtensionOccasion = proto.Field( proto.ENUM, @@ -599,21 +654,28 @@ class PromotionAsset(proto.Message): enum=promotion_extension_occasion.PromotionExtensionOccasionEnum.PromotionExtensionOccasion, ) language_code: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) start_date: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) end_date: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) ad_schedule_targets: MutableSequence[ criteria.AdScheduleInfo ] = proto.RepeatedField( - proto.MESSAGE, number=13, message=criteria.AdScheduleInfo, + proto.MESSAGE, + number=13, + message=criteria.AdScheduleInfo, ) percent_off: int = proto.Field( - proto.INT64, number=3, oneof="discount_type", + proto.INT64, + number=3, + oneof="discount_type", ) money_amount_off: feed_common.Money = proto.Field( proto.MESSAGE, @@ -622,7 +684,9 @@ class PromotionAsset(proto.Message): message=feed_common.Money, ) promotion_code: str = proto.Field( - proto.STRING, number=5, oneof="promotion_trigger", + proto.STRING, + number=5, + oneof="promotion_trigger", ) orders_over_amount: feed_common.Money = proto.Field( proto.MESSAGE, @@ -653,18 +717,23 @@ class CalloutAsset(proto.Message): """ callout_text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) start_date: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) end_date: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) ad_schedule_targets: MutableSequence[ criteria.AdScheduleInfo ] = proto.RepeatedField( - proto.MESSAGE, number=4, message=criteria.AdScheduleInfo, + proto.MESSAGE, + number=4, + message=criteria.AdScheduleInfo, ) @@ -685,10 +754,12 @@ class StructuredSnippetAsset(proto.Message): """ header: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) values: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -723,24 +794,31 @@ class SitelinkAsset(proto.Message): """ link_text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) description1: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) description2: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) start_date: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) end_date: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) ad_schedule_targets: MutableSequence[ criteria.AdScheduleInfo ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=criteria.AdScheduleInfo, + proto.MESSAGE, + number=6, + message=criteria.AdScheduleInfo, ) @@ -755,10 +833,12 @@ class PageFeedAsset(proto.Message): """ page_url: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -820,46 +900,60 @@ class DynamicEducationAsset(proto.Message): """ program_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) location_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) program_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) subject: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) program_description: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) school_name: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) address: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=8, + proto.STRING, + number=8, ) android_app_link: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) similar_program_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) ios_app_link: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=12, + proto.INT64, + number=12, ) thumbnail_image_url: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) image_url: str = proto.Field( - proto.STRING, number=14, + proto.STRING, + number=14, ) @@ -887,21 +981,27 @@ class MobileAppAsset(proto.Message): """ app_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - app_store: mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor = proto.Field( - proto.ENUM, - number=2, - enum=mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor, + app_store: mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor = ( + proto.Field( + proto.ENUM, + number=2, + enum=mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor, + ) ) link_text: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) start_date: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) end_date: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) @@ -918,10 +1018,12 @@ class HotelCalloutAsset(proto.Message): """ text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) language_code: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -930,10 +1032,12 @@ class CallAsset(proto.Message): Attributes: country_code (str): Required. Two-letter country code of the - phone number. Examples: 'US', 'us'. + phone number. Examples: 'US', + 'us'. phone_number (str): Required. The advertiser's raw phone number. - Examples: '1234567890', '(123)456-7890' + Examples: '1234567890', + '(123)456-7890' call_conversion_reporting_state (google.ads.googleads.v14.enums.types.CallConversionReportingStateEnum.CallConversionReportingState): Indicates whether this CallAsset should use its own call conversion setting, follow the @@ -952,10 +1056,12 @@ class CallAsset(proto.Message): """ country_code: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) phone_number: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) call_conversion_reporting_state: gage_call_conversion_reporting_state.CallConversionReportingStateEnum.CallConversionReportingState = proto.Field( proto.ENUM, @@ -963,12 +1069,15 @@ class CallAsset(proto.Message): enum=gage_call_conversion_reporting_state.CallConversionReportingStateEnum.CallConversionReportingState, ) call_conversion_action: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) ad_schedule_targets: MutableSequence[ criteria.AdScheduleInfo ] = proto.RepeatedField( - proto.MESSAGE, number=5, message=criteria.AdScheduleInfo, + proto.MESSAGE, + number=5, + message=criteria.AdScheduleInfo, ) @@ -988,10 +1097,12 @@ class PriceAsset(proto.Message): and 8, inclusive. """ - type_: price_extension_type.PriceExtensionTypeEnum.PriceExtensionType = proto.Field( - proto.ENUM, - number=1, - enum=price_extension_type.PriceExtensionTypeEnum.PriceExtensionType, + type_: price_extension_type.PriceExtensionTypeEnum.PriceExtensionType = ( + proto.Field( + proto.ENUM, + number=1, + enum=price_extension_type.PriceExtensionTypeEnum.PriceExtensionType, + ) ) price_qualifier: price_extension_price_qualifier.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier = proto.Field( proto.ENUM, @@ -999,10 +1110,13 @@ class PriceAsset(proto.Message): enum=price_extension_price_qualifier.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier, ) language_code: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) price_offerings: MutableSequence["PriceOffering"] = proto.RepeatedField( - proto.MESSAGE, number=4, message="PriceOffering", + proto.MESSAGE, + number=4, + message="PriceOffering", ) @@ -1031,13 +1145,17 @@ class PriceOffering(proto.Message): """ header: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) description: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) price: feed_common.Money = proto.Field( - proto.MESSAGE, number=3, message=feed_common.Money, + proto.MESSAGE, + number=3, + message=feed_common.Money, ) unit: price_extension_price_unit.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit = proto.Field( proto.ENUM, @@ -1045,10 +1163,12 @@ class PriceOffering(proto.Message): enum=price_extension_price_unit.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit, ) final_url: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) final_mobile_url: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) @@ -1127,49 +1247,64 @@ class DynamicRealEstateAsset(proto.Message): """ listing_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) listing_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) city_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) description: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) address: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) price: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) image_url: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) property_type: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) listing_type: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) formatted_price: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) android_app_link: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) ios_app_link: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=14, + proto.INT64, + number=14, ) similar_listing_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=15, + proto.STRING, + number=15, ) @@ -1247,55 +1382,72 @@ class DynamicCustomAsset(proto.Message): """ id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id2: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) item_title: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) item_subtitle: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) item_description: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) item_address: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) item_category: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) price: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) sale_price: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) formatted_price: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) formatted_sale_price: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) image_url: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=13, + proto.STRING, + number=13, ) android_app_link: str = proto.Field( - proto.STRING, number=14, + proto.STRING, + number=14, ) ios_app_link: str = proto.Field( - proto.STRING, number=16, + proto.STRING, + number=16, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=17, + proto.INT64, + number=17, ) similar_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=15, + proto.STRING, + number=15, ) @@ -1370,55 +1522,72 @@ class DynamicHotelsAndRentalsAsset(proto.Message): """ property_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) property_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) image_url: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) destination_name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) description: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) price: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) sale_price: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) star_rating: int = proto.Field( - proto.INT64, number=8, + proto.INT64, + number=8, ) category: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) address: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) android_app_link: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) ios_app_link: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=14, + proto.INT64, + number=14, ) formatted_price: str = proto.Field( - proto.STRING, number=15, + proto.STRING, + number=15, ) formatted_sale_price: str = proto.Field( - proto.STRING, number=16, + proto.STRING, + number=16, ) similar_property_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=17, + proto.STRING, + number=17, ) @@ -1488,49 +1657,64 @@ class DynamicFlightsAsset(proto.Message): """ destination_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) origin_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) flight_description: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) image_url: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) destination_name: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) origin_name: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) flight_price: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) flight_sale_price: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) formatted_price: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) formatted_sale_price: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) android_app_link: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) ios_app_link: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=13, + proto.INT64, + number=13, ) similar_destination_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=14, + proto.STRING, + number=14, ) custom_mapping: str = proto.Field( - proto.STRING, number=15, + proto.STRING, + number=15, ) @@ -1539,8 +1723,8 @@ class DiscoveryCarouselCardAsset(proto.Message): Attributes: marketing_image_asset (str): Asset resource name of the associated 1.91:1 - marketing image. This and/or square marketing - image asset is required. + marketing image. This and/or + square marketing image asset is required. square_marketing_image_asset (str): Asset resource name of the associated square marketing image. This and/or a marketing image @@ -1555,19 +1739,24 @@ class DiscoveryCarouselCardAsset(proto.Message): """ marketing_image_asset: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) square_marketing_image_asset: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) portrait_marketing_image_asset: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) headline: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) call_to_action_text: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) @@ -1642,55 +1831,72 @@ class DynamicTravelAsset(proto.Message): """ destination_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) origin_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) title: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) destination_name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) destination_address: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) origin_name: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) price: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) sale_price: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) formatted_price: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) formatted_sale_price: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) category: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=12, + proto.STRING, + number=12, ) similar_destination_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=13, + proto.STRING, + number=13, ) image_url: str = proto.Field( - proto.STRING, number=14, + proto.STRING, + number=14, ) android_app_link: str = proto.Field( - proto.STRING, number=15, + proto.STRING, + number=15, ) ios_app_link: str = proto.Field( - proto.STRING, number=16, + proto.STRING, + number=16, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=17, + proto.INT64, + number=17, ) @@ -1761,52 +1967,68 @@ class DynamicLocalAsset(proto.Message): """ deal_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) deal_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) subtitle: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) description: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) price: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) sale_price: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) image_url: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) address: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) category: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) formatted_price: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) formatted_sale_price: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) android_app_link: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) similar_deal_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=14, + proto.STRING, + number=14, ) ios_app_link: str = proto.Field( - proto.STRING, number=15, + proto.STRING, + number=15, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=16, + proto.INT64, + number=16, ) @@ -1864,46 +2086,60 @@ class DynamicJobsAsset(proto.Message): """ job_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) location_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) job_title: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) job_subtitle: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) description: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) image_url: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) job_category: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) contextual_keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=8, + proto.STRING, + number=8, ) address: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) salary: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) android_app_link: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) similar_job_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=12, + proto.STRING, + number=12, ) ios_app_link: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) ios_app_store_id: int = proto.Field( - proto.INT64, number=14, + proto.INT64, + number=14, ) @@ -1932,12 +2168,15 @@ class LocationAsset(proto.Message): """ place_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) business_profile_locations: MutableSequence[ "BusinessProfileLocation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="BusinessProfileLocation", + proto.MESSAGE, + number=2, + message="BusinessProfileLocation", ) location_ownership_type: gage_location_ownership_type.LocationOwnershipTypeEnum.LocationOwnershipType = proto.Field( proto.ENUM, @@ -1966,13 +2205,16 @@ class BusinessProfileLocation(proto.Message): """ labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) store_code: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) listing_id: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) @@ -1991,13 +2233,16 @@ class HotelPropertyAsset(proto.Message): """ place_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) hotel_address: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) hotel_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) diff --git a/google/ads/googleads/v14/common/types/asset_usage.py b/google/ads/googleads/v14/common/types/asset_usage.py index 876186472..613b0a73d 100644 --- a/google/ads/googleads/v14/common/types/asset_usage.py +++ b/google/ads/googleads/v14/common/types/asset_usage.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"AssetUsage",}, + manifest={ + "AssetUsage", + }, ) @@ -40,7 +42,8 @@ class AssetUsage(proto.Message): """ asset: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) served_asset_field_type: gage_served_asset_field_type.ServedAssetFieldTypeEnum.ServedAssetFieldType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/common/types/audiences.py b/google/ads/googleads/v14/common/types/audiences.py index df0fb5be7..fc0c625a8 100644 --- a/google/ads/googleads/v14/common/types/audiences.py +++ b/google/ads/googleads/v14/common/types/audiences.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -83,10 +83,16 @@ class AudienceDimension(proto.Message): """ age: "AgeDimension" = proto.Field( - proto.MESSAGE, number=1, oneof="dimension", message="AgeDimension", + proto.MESSAGE, + number=1, + oneof="dimension", + message="AgeDimension", ) gender: "GenderDimension" = proto.Field( - proto.MESSAGE, number=2, oneof="dimension", message="GenderDimension", + proto.MESSAGE, + number=2, + oneof="dimension", + message="GenderDimension", ) household_income: "HouseholdIncomeDimension" = proto.Field( proto.MESSAGE, @@ -118,7 +124,9 @@ class AudienceExclusionDimension(proto.Message): """ exclusions: MutableSequence["ExclusionSegment"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="ExclusionSegment", + proto.MESSAGE, + number=1, + message="ExclusionSegment", ) @@ -134,7 +142,10 @@ class ExclusionSegment(proto.Message): """ user_list: "UserListSegment" = proto.Field( - proto.MESSAGE, number=1, oneof="segment", message="UserListSegment", + proto.MESSAGE, + number=1, + oneof="segment", + message="UserListSegment", ) @@ -153,10 +164,14 @@ class AgeDimension(proto.Message): """ age_ranges: MutableSequence["AgeSegment"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="AgeSegment", + proto.MESSAGE, + number=1, + message="AgeSegment", ) include_undetermined: bool = proto.Field( - proto.BOOL, number=2, optional=True, + proto.BOOL, + number=2, + optional=True, ) @@ -180,10 +195,14 @@ class AgeSegment(proto.Message): """ min_age: int = proto.Field( - proto.INT32, number=1, optional=True, + proto.INT32, + number=1, + optional=True, ) max_age: int = proto.Field( - proto.INT32, number=2, optional=True, + proto.INT32, + number=2, + optional=True, ) @@ -203,10 +222,14 @@ class GenderDimension(proto.Message): genders: MutableSequence[ gender_type.GenderTypeEnum.GenderType ] = proto.RepeatedField( - proto.ENUM, number=1, enum=gender_type.GenderTypeEnum.GenderType, + proto.ENUM, + number=1, + enum=gender_type.GenderTypeEnum.GenderType, ) include_undetermined: bool = proto.Field( - proto.BOOL, number=2, optional=True, + proto.BOOL, + number=2, + optional=True, ) @@ -233,7 +256,9 @@ class HouseholdIncomeDimension(proto.Message): enum=income_range_type.IncomeRangeTypeEnum.IncomeRangeType, ) include_undetermined: bool = proto.Field( - proto.BOOL, number=2, optional=True, + proto.BOOL, + number=2, + optional=True, ) @@ -260,7 +285,9 @@ class ParentalStatusDimension(proto.Message): enum=parental_status_type.ParentalStatusTypeEnum.ParentalStatusType, ) include_undetermined: bool = proto.Field( - proto.BOOL, number=2, optional=True, + proto.BOOL, + number=2, + optional=True, ) @@ -275,7 +302,9 @@ class AudienceSegmentDimension(proto.Message): """ segments: MutableSequence["AudienceSegment"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="AudienceSegment", + proto.MESSAGE, + number=1, + message="AudienceSegment", ) @@ -312,13 +341,22 @@ class AudienceSegment(proto.Message): """ user_list: "UserListSegment" = proto.Field( - proto.MESSAGE, number=1, oneof="segment", message="UserListSegment", + proto.MESSAGE, + number=1, + oneof="segment", + message="UserListSegment", ) user_interest: "UserInterestSegment" = proto.Field( - proto.MESSAGE, number=2, oneof="segment", message="UserInterestSegment", + proto.MESSAGE, + number=2, + oneof="segment", + message="UserInterestSegment", ) life_event: "LifeEventSegment" = proto.Field( - proto.MESSAGE, number=3, oneof="segment", message="LifeEventSegment", + proto.MESSAGE, + number=3, + oneof="segment", + message="LifeEventSegment", ) detailed_demographic: "DetailedDemographicSegment" = proto.Field( proto.MESSAGE, @@ -350,7 +388,9 @@ class UserListSegment(proto.Message): """ user_list: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -366,7 +406,9 @@ class UserInterestSegment(proto.Message): """ user_interest_category: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -382,7 +424,9 @@ class LifeEventSegment(proto.Message): """ life_event: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -398,7 +442,9 @@ class DetailedDemographicSegment(proto.Message): """ detailed_demographic: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -414,7 +460,9 @@ class CustomAudienceSegment(proto.Message): """ custom_audience: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/bidding.py b/google/ads/googleads/v14/common/types/bidding.py index ad56fe4ad..2d0b1426e 100644 --- a/google/ads/googleads/v14/common/types/bidding.py +++ b/google/ads/googleads/v14/common/types/bidding.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,9 @@ class Commission(proto.Message): """ commission_rate_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -101,7 +103,9 @@ class ManualCpc(proto.Message): """ enhanced_cpc_enabled: bool = proto.Field( - proto.BOOL, number=2, optional=True, + proto.BOOL, + number=2, + optional=True, ) @@ -113,8 +117,7 @@ class ManualCpm(proto.Message): class ManualCpv(proto.Message): - r"""View based bidding where user pays per video view. - """ + r"""View based bidding where user pays per video view.""" class MaximizeConversions(proto.Message): @@ -145,13 +148,16 @@ class MaximizeConversions(proto.Message): """ cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) cpc_bid_floor_micros: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) target_cpa_micros: int = proto.Field( - proto.INT64, number=4, + proto.INT64, + number=4, ) @@ -182,13 +188,16 @@ class MaximizeConversionValue(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=2, + proto.DOUBLE, + number=2, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) cpc_bid_floor_micros: int = proto.Field( - proto.INT64, number=4, + proto.INT64, + number=4, ) @@ -224,13 +233,19 @@ class TargetCpa(proto.Message): """ target_cpa_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) cpc_bid_floor_micros: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) @@ -268,7 +283,8 @@ class TargetCpmTargetFrequencyGoal(proto.Message): """ target_count: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) time_unit: target_frequency_time_unit.TargetFrequencyTimeUnitEnum.TargetFrequencyTimeUnit = proto.Field( proto.ENUM, @@ -309,10 +325,14 @@ class TargetImpressionShare(proto.Message): enum=target_impression_share_location.TargetImpressionShareLocationEnum.TargetImpressionShareLocation, ) location_fraction_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) @@ -346,13 +366,19 @@ class TargetRoas(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=4, optional=True, + proto.DOUBLE, + number=4, + optional=True, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) cpc_bid_floor_micros: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) @@ -384,10 +410,14 @@ class TargetSpend(proto.Message): """ target_spend_micros: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) @@ -415,10 +445,14 @@ class PercentCpc(proto.Message): """ cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) enhanced_cpc_enabled: bool = proto.Field( - proto.BOOL, number=4, optional=True, + proto.BOOL, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/click_location.py b/google/ads/googleads/v14/common/types/click_location.py index f398560e9..ac4795792 100644 --- a/google/ads/googleads/v14/common/types/click_location.py +++ b/google/ads/googleads/v14/common/types/click_location.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"ClickLocation",}, + manifest={ + "ClickLocation", + }, ) @@ -59,19 +61,29 @@ class ClickLocation(proto.Message): """ city: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) country: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) metro: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) most_specific: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) region: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/criteria.py b/google/ads/googleads/v14/common/types/criteria.py index e66bfed22..0825c879f 100644 --- a/google/ads/googleads/v14/common/types/criteria.py +++ b/google/ads/googleads/v14/common/types/criteria.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,6 +62,7 @@ "LocationInfo", "DeviceInfo", "ListingGroupInfo", + "ListingDimensionPath", "ListingScopeInfo", "ListingDimensionInfo", "HotelIdInfo", @@ -141,12 +142,16 @@ class KeywordInfo(proto.Message): """ text: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) - match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = proto.Field( - proto.ENUM, - number=2, - enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = ( + proto.Field( + proto.ENUM, + number=2, + enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + ) ) @@ -165,7 +170,9 @@ class PlacementInfo(proto.Message): """ url: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -186,7 +193,9 @@ class NegativeKeywordListInfo(proto.Message): """ shared_set: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -203,7 +212,9 @@ class MobileAppCategoryInfo(proto.Message): """ mobile_app_category_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -240,10 +251,14 @@ class MobileApplicationInfo(proto.Message): """ app_id: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) name: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) @@ -259,7 +274,9 @@ class LocationInfo(proto.Message): """ geo_target_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -271,7 +288,9 @@ class DeviceInfo(proto.Message): """ type_: device.DeviceEnum.Device = proto.Field( - proto.ENUM, number=1, enum=device.DeviceEnum.Device, + proto.ENUM, + number=1, + enum=device.DeviceEnum.Device, ) @@ -292,18 +311,52 @@ class ListingGroupInfo(proto.Message): the root group. This field is a member of `oneof`_ ``_parent_ad_group_criterion``. + path (google.ads.googleads.v14.common.types.ListingDimensionPath): + The path of dimensions defining this listing + group. + + This field is a member of `oneof`_ ``_path``. """ - type_: listing_group_type.ListingGroupTypeEnum.ListingGroupType = proto.Field( - proto.ENUM, - number=1, - enum=listing_group_type.ListingGroupTypeEnum.ListingGroupType, + type_: listing_group_type.ListingGroupTypeEnum.ListingGroupType = ( + proto.Field( + proto.ENUM, + number=1, + enum=listing_group_type.ListingGroupTypeEnum.ListingGroupType, + ) ) case_value: "ListingDimensionInfo" = proto.Field( - proto.MESSAGE, number=2, message="ListingDimensionInfo", + proto.MESSAGE, + number=2, + message="ListingDimensionInfo", ) parent_ad_group_criterion: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, + ) + path: "ListingDimensionPath" = proto.Field( + proto.MESSAGE, + number=5, + optional=True, + message="ListingDimensionPath", + ) + + +class ListingDimensionPath(proto.Message): + r"""The path of dimensions defining a listing group. + Attributes: + dimensions (MutableSequence[google.ads.googleads.v14.common.types.ListingDimensionInfo]): + The complete path of dimensions through the + listing group hierarchy, from the root + (excluding the root itself) to this listing + group. + """ + + dimensions: MutableSequence["ListingDimensionInfo"] = proto.RepeatedField( + proto.MESSAGE, + number=1, + message="ListingDimensionInfo", ) @@ -315,7 +368,9 @@ class ListingScopeInfo(proto.Message): """ dimensions: MutableSequence["ListingDimensionInfo"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ListingDimensionInfo", + proto.MESSAGE, + number=2, + message="ListingDimensionInfo", ) @@ -427,10 +482,16 @@ class ListingDimensionInfo(proto.Message): """ hotel_id: "HotelIdInfo" = proto.Field( - proto.MESSAGE, number=2, oneof="dimension", message="HotelIdInfo", + proto.MESSAGE, + number=2, + oneof="dimension", + message="HotelIdInfo", ) hotel_class: "HotelClassInfo" = proto.Field( - proto.MESSAGE, number=3, oneof="dimension", message="HotelClassInfo", + proto.MESSAGE, + number=3, + oneof="dimension", + message="HotelClassInfo", ) hotel_country_region: "HotelCountryRegionInfo" = proto.Field( proto.MESSAGE, @@ -439,10 +500,16 @@ class ListingDimensionInfo(proto.Message): message="HotelCountryRegionInfo", ) hotel_state: "HotelStateInfo" = proto.Field( - proto.MESSAGE, number=5, oneof="dimension", message="HotelStateInfo", + proto.MESSAGE, + number=5, + oneof="dimension", + message="HotelStateInfo", ) hotel_city: "HotelCityInfo" = proto.Field( - proto.MESSAGE, number=6, oneof="dimension", message="HotelCityInfo", + proto.MESSAGE, + number=6, + oneof="dimension", + message="HotelCityInfo", ) product_bidding_category: "ProductBiddingCategoryInfo" = proto.Field( proto.MESSAGE, @@ -451,7 +518,10 @@ class ListingDimensionInfo(proto.Message): message="ProductBiddingCategoryInfo", ) product_brand: "ProductBrandInfo" = proto.Field( - proto.MESSAGE, number=15, oneof="dimension", message="ProductBrandInfo", + proto.MESSAGE, + number=15, + oneof="dimension", + message="ProductBrandInfo", ) product_channel: "ProductChannelInfo" = proto.Field( proto.MESSAGE, @@ -484,7 +554,10 @@ class ListingDimensionInfo(proto.Message): message="ProductItemIdInfo", ) product_type: "ProductTypeInfo" = proto.Field( - proto.MESSAGE, number=12, oneof="dimension", message="ProductTypeInfo", + proto.MESSAGE, + number=12, + oneof="dimension", + message="ProductTypeInfo", ) product_grouping: "ProductGroupingInfo" = proto.Field( proto.MESSAGE, @@ -511,7 +584,10 @@ class ListingDimensionInfo(proto.Message): message="ProductTypeFullInfo", ) activity_id: "ActivityIdInfo" = proto.Field( - proto.MESSAGE, number=21, oneof="dimension", message="ActivityIdInfo", + proto.MESSAGE, + number=21, + oneof="dimension", + message="ActivityIdInfo", ) activity_rating: "ActivityRatingInfo" = proto.Field( proto.MESSAGE, @@ -545,7 +621,9 @@ class HotelIdInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -561,7 +639,9 @@ class HotelClassInfo(proto.Message): """ value: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -577,7 +657,9 @@ class HotelCountryRegionInfo(proto.Message): """ country_region_criterion: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -593,7 +675,9 @@ class HotelStateInfo(proto.Message): """ state_criterion: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -609,7 +693,9 @@ class HotelCityInfo(proto.Message): """ city_criterion: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -631,7 +717,9 @@ class ProductBiddingCategoryInfo(proto.Message): """ id: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) level: product_bidding_category_level.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel = proto.Field( proto.ENUM, @@ -652,7 +740,9 @@ class ProductBrandInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -663,10 +753,12 @@ class ProductChannelInfo(proto.Message): Value of the locality. """ - channel: gage_product_channel.ProductChannelEnum.ProductChannel = proto.Field( - proto.ENUM, - number=1, - enum=gage_product_channel.ProductChannelEnum.ProductChannel, + channel: gage_product_channel.ProductChannelEnum.ProductChannel = ( + proto.Field( + proto.ENUM, + number=1, + enum=gage_product_channel.ProductChannelEnum.ProductChannel, + ) ) @@ -691,10 +783,12 @@ class ProductConditionInfo(proto.Message): Value of the condition. """ - condition: gage_product_condition.ProductConditionEnum.ProductCondition = proto.Field( - proto.ENUM, - number=1, - enum=gage_product_condition.ProductConditionEnum.ProductCondition, + condition: gage_product_condition.ProductConditionEnum.ProductCondition = ( + proto.Field( + proto.ENUM, + number=1, + enum=gage_product_condition.ProductConditionEnum.ProductCondition, + ) ) @@ -712,7 +806,9 @@ class ProductCustomAttributeInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) index: product_custom_attribute_index.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex = proto.Field( proto.ENUM, @@ -733,7 +829,9 @@ class ProductItemIdInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -751,12 +849,16 @@ class ProductTypeInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) - level: product_type_level.ProductTypeLevelEnum.ProductTypeLevel = proto.Field( - proto.ENUM, - number=2, - enum=product_type_level.ProductTypeLevelEnum.ProductTypeLevel, + level: product_type_level.ProductTypeLevelEnum.ProductTypeLevel = ( + proto.Field( + proto.ENUM, + number=2, + enum=product_type_level.ProductTypeLevelEnum.ProductTypeLevel, + ) ) @@ -774,7 +876,9 @@ class ProductGroupingInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -792,7 +896,9 @@ class ProductLabelsInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -810,7 +916,9 @@ class ProductLegacyConditionInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -828,13 +936,14 @@ class ProductTypeFullInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) class UnknownListingDimensionInfo(proto.Message): - r"""Unknown listing dimension. - """ + r"""Unknown listing dimension.""" class HotelDateSelectionTypeInfo(proto.Message): @@ -873,10 +982,14 @@ class HotelAdvanceBookingWindowInfo(proto.Message): """ min_days: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) max_days: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) @@ -896,10 +1009,14 @@ class HotelLengthOfStayInfo(proto.Message): """ min_nights: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) max_nights: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) @@ -913,10 +1030,12 @@ class HotelCheckInDateRangeInfo(proto.Message): """ start_date: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) end_date: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -928,7 +1047,9 @@ class HotelCheckInDayInfo(proto.Message): """ day_of_week: gage_day_of_week.DayOfWeekEnum.DayOfWeek = proto.Field( - proto.ENUM, number=1, enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, + proto.ENUM, + number=1, + enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, ) @@ -944,7 +1065,9 @@ class ActivityIdInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -962,7 +1085,9 @@ class ActivityRatingInfo(proto.Message): """ value: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) @@ -979,7 +1104,9 @@ class ActivityCountryInfo(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -1040,19 +1167,29 @@ class AdScheduleInfo(proto.Message): """ start_minute: minute_of_hour.MinuteOfHourEnum.MinuteOfHour = proto.Field( - proto.ENUM, number=1, enum=minute_of_hour.MinuteOfHourEnum.MinuteOfHour, + proto.ENUM, + number=1, + enum=minute_of_hour.MinuteOfHourEnum.MinuteOfHour, ) end_minute: minute_of_hour.MinuteOfHourEnum.MinuteOfHour = proto.Field( - proto.ENUM, number=2, enum=minute_of_hour.MinuteOfHourEnum.MinuteOfHour, + proto.ENUM, + number=2, + enum=minute_of_hour.MinuteOfHourEnum.MinuteOfHour, ) start_hour: int = proto.Field( - proto.INT32, number=6, optional=True, + proto.INT32, + number=6, + optional=True, ) end_hour: int = proto.Field( - proto.INT32, number=7, optional=True, + proto.INT32, + number=7, + optional=True, ) day_of_week: gage_day_of_week.DayOfWeekEnum.DayOfWeek = proto.Field( - proto.ENUM, number=5, enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, + proto.ENUM, + number=5, + enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, ) @@ -1064,7 +1201,9 @@ class AgeRangeInfo(proto.Message): """ type_: age_range_type.AgeRangeTypeEnum.AgeRangeType = proto.Field( - proto.ENUM, number=1, enum=age_range_type.AgeRangeTypeEnum.AgeRangeType, + proto.ENUM, + number=1, + enum=age_range_type.AgeRangeTypeEnum.AgeRangeType, ) @@ -1076,7 +1215,9 @@ class GenderInfo(proto.Message): """ type_: gender_type.GenderTypeEnum.GenderType = proto.Field( - proto.ENUM, number=1, enum=gender_type.GenderTypeEnum.GenderType, + proto.ENUM, + number=1, + enum=gender_type.GenderTypeEnum.GenderType, ) @@ -1101,10 +1242,12 @@ class ParentalStatusInfo(proto.Message): Type of the parental status. """ - type_: parental_status_type.ParentalStatusTypeEnum.ParentalStatusType = proto.Field( - proto.ENUM, - number=1, - enum=parental_status_type.ParentalStatusTypeEnum.ParentalStatusType, + type_: parental_status_type.ParentalStatusTypeEnum.ParentalStatusType = ( + proto.Field( + proto.ENUM, + number=1, + enum=parental_status_type.ParentalStatusTypeEnum.ParentalStatusType, + ) ) @@ -1121,7 +1264,9 @@ class YouTubeVideoInfo(proto.Message): """ video_id: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1138,7 +1283,9 @@ class YouTubeChannelInfo(proto.Message): """ channel_id: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1156,7 +1303,9 @@ class UserListInfo(proto.Message): """ user_list: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1187,10 +1336,14 @@ class ProximityInfo(proto.Message): """ geo_point: "GeoPointInfo" = proto.Field( - proto.MESSAGE, number=1, message="GeoPointInfo", + proto.MESSAGE, + number=1, + message="GeoPointInfo", ) radius: float = proto.Field( - proto.DOUBLE, number=5, optional=True, + proto.DOUBLE, + number=5, + optional=True, ) radius_units: proximity_radius_units.ProximityRadiusUnitsEnum.ProximityRadiusUnits = proto.Field( proto.ENUM, @@ -1198,7 +1351,9 @@ class ProximityInfo(proto.Message): enum=proximity_radius_units.ProximityRadiusUnitsEnum.ProximityRadiusUnits, ) address: "AddressInfo" = proto.Field( - proto.MESSAGE, number=4, message="AddressInfo", + proto.MESSAGE, + number=4, + message="AddressInfo", ) @@ -1218,10 +1373,14 @@ class GeoPointInfo(proto.Message): """ longitude_in_micro_degrees: int = proto.Field( - proto.INT32, number=3, optional=True, + proto.INT32, + number=3, + optional=True, ) latitude_in_micro_degrees: int = proto.Field( - proto.INT32, number=4, optional=True, + proto.INT32, + number=4, + optional=True, ) @@ -1263,25 +1422,39 @@ class AddressInfo(proto.Message): """ postal_code: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) province_code: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) province_name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) street_address: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) street_address2: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) city_name: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) @@ -1306,10 +1479,13 @@ class TopicInfo(proto.Message): """ topic_constant: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) path: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -1325,12 +1501,15 @@ class LanguageInfo(proto.Message): """ language_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) class IpBlockInfo(proto.Message): r"""An IpBlock criterion used for IP exclusions. We allow: + - IPv4 and IPv6 addresses - individual addresses (192.168.0.1) - masks for individual addresses (192.168.0.1/32) @@ -1346,7 +1525,9 @@ class IpBlockInfo(proto.Message): """ ip_address: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1358,10 +1539,12 @@ class ContentLabelInfo(proto.Message): operations. """ - type_: content_label_type.ContentLabelTypeEnum.ContentLabelType = proto.Field( - proto.ENUM, - number=1, - enum=content_label_type.ContentLabelTypeEnum.ContentLabelType, + type_: content_label_type.ContentLabelTypeEnum.ContentLabelType = ( + proto.Field( + proto.ENUM, + number=1, + enum=content_label_type.ContentLabelTypeEnum.ContentLabelType, + ) ) @@ -1377,7 +1560,9 @@ class CarrierInfo(proto.Message): """ carrier_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1393,7 +1578,9 @@ class UserInterestInfo(proto.Message): """ user_interest_category: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1438,16 +1625,23 @@ class WebpageInfo(proto.Message): """ criterion_name: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) conditions: MutableSequence["WebpageConditionInfo"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="WebpageConditionInfo", + proto.MESSAGE, + number=2, + message="WebpageConditionInfo", ) coverage_percentage: float = proto.Field( - proto.DOUBLE, number=4, + proto.DOUBLE, + number=4, ) sample: "WebpageSampleInfo" = proto.Field( - proto.MESSAGE, number=5, message="WebpageSampleInfo", + proto.MESSAGE, + number=5, + message="WebpageSampleInfo", ) @@ -1479,7 +1673,9 @@ class WebpageConditionInfo(proto.Message): enum=webpage_condition_operator.WebpageConditionOperatorEnum.WebpageConditionOperator, ) argument: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) @@ -1491,7 +1687,8 @@ class WebpageSampleInfo(proto.Message): """ sample_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -1508,7 +1705,9 @@ class OperatingSystemVersionInfo(proto.Message): """ operating_system_version_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1538,7 +1737,9 @@ class MobileDeviceInfo(proto.Message): """ mobile_device_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1556,7 +1757,9 @@ class CustomAffinityInfo(proto.Message): """ custom_affinity: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1574,7 +1777,9 @@ class CustomIntentInfo(proto.Message): """ custom_intent: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -1636,13 +1841,18 @@ class LocationGroupInfo(proto.Message): """ feed: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) geo_target_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=6, + proto.STRING, + number=6, ) radius: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) radius_units: location_group_radius_units.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits = proto.Field( proto.ENUM, @@ -1650,13 +1860,17 @@ class LocationGroupInfo(proto.Message): enum=location_group_radius_units.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits, ) feed_item_sets: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=8, + proto.STRING, + number=8, ) enable_customer_level_location_asset_set: bool = proto.Field( - proto.BOOL, number=9, optional=True, + proto.BOOL, + number=9, + optional=True, ) location_group_asset_sets: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) @@ -1668,7 +1882,8 @@ class CustomAudienceInfo(proto.Message): """ custom_audience: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -1680,7 +1895,8 @@ class CombinedAudienceInfo(proto.Message): """ combined_audience: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -1692,7 +1908,8 @@ class AudienceInfo(proto.Message): """ audience: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -1721,10 +1938,14 @@ class KeywordThemeInfo(proto.Message): """ keyword_theme_constant: str = proto.Field( - proto.STRING, number=1, oneof="keyword_theme", + proto.STRING, + number=1, + oneof="keyword_theme", ) free_form_keyword_theme: str = proto.Field( - proto.STRING, number=2, oneof="keyword_theme", + proto.STRING, + number=2, + oneof="keyword_theme", ) @@ -1738,7 +1959,8 @@ class LocalServiceIdInfo(proto.Message): """ service_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/common/types/criterion_category_availability.py b/google/ads/googleads/v14/common/types/criterion_category_availability.py index c73c1ce1a..1edf7b848 100644 --- a/google/ads/googleads/v14/common/types/criterion_category_availability.py +++ b/google/ads/googleads/v14/common/types/criterion_category_availability.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,12 +58,16 @@ class CriterionCategoryAvailability(proto.Message): """ channel: "CriterionCategoryChannelAvailability" = proto.Field( - proto.MESSAGE, number=1, message="CriterionCategoryChannelAvailability", + proto.MESSAGE, + number=1, + message="CriterionCategoryChannelAvailability", ) locale: MutableSequence[ "CriterionCategoryLocaleAvailability" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CriterionCategoryLocaleAvailability", + proto.MESSAGE, + number=2, + message="CriterionCategoryLocaleAvailability", ) @@ -115,7 +119,9 @@ class CriterionCategoryChannelAvailability(proto.Message): enum=gage_advertising_channel_sub_type.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType, ) include_default_channel_sub_type: bool = proto.Field( - proto.BOOL, number=5, optional=True, + proto.BOOL, + number=5, + optional=True, ) @@ -148,10 +154,14 @@ class CriterionCategoryLocaleAvailability(proto.Message): enum=criterion_category_locale_availability_mode.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode, ) country_code: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) language_code: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/custom_parameter.py b/google/ads/googleads/v14/common/types/custom_parameter.py index 75ea405d5..fe48f962b 100644 --- a/google/ads/googleads/v14/common/types/custom_parameter.py +++ b/google/ads/googleads/v14/common/types/custom_parameter.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"CustomParameter",}, + manifest={ + "CustomParameter", + }, ) @@ -44,10 +46,14 @@ class CustomParameter(proto.Message): """ key: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) value: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/customizer_value.py b/google/ads/googleads/v14/common/types/customizer_value.py index a25b8e2d9..053adc5d9 100644 --- a/google/ads/googleads/v14/common/types/customizer_value.py +++ b/google/ads/googleads/v14/common/types/customizer_value.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"CustomizerValue",}, + manifest={ + "CustomizerValue", + }, ) @@ -49,7 +51,8 @@ class CustomizerValue(proto.Message): enum=customizer_attribute_type.CustomizerAttributeTypeEnum.CustomizerAttributeType, ) string_value: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) diff --git a/google/ads/googleads/v14/common/types/dates.py b/google/ads/googleads/v14/common/types/dates.py index e0ad1b78f..6f6ed049d 100644 --- a/google/ads/googleads/v14/common/types/dates.py +++ b/google/ads/googleads/v14/common/types/dates.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,11 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"DateRange", "YearMonthRange", "YearMonth",}, + manifest={ + "DateRange", + "YearMonthRange", + "YearMonth", + }, ) @@ -46,10 +50,14 @@ class DateRange(proto.Message): """ start_date: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) end_date: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) @@ -66,10 +74,14 @@ class YearMonthRange(proto.Message): """ start: "YearMonth" = proto.Field( - proto.MESSAGE, number=1, message="YearMonth", + proto.MESSAGE, + number=1, + message="YearMonth", ) end: "YearMonth" = proto.Field( - proto.MESSAGE, number=2, message="YearMonth", + proto.MESSAGE, + number=2, + message="YearMonth", ) @@ -84,10 +96,13 @@ class YearMonth(proto.Message): """ year: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) month: month_of_year.MonthOfYearEnum.MonthOfYear = proto.Field( - proto.ENUM, number=2, enum=month_of_year.MonthOfYearEnum.MonthOfYear, + proto.ENUM, + number=2, + enum=month_of_year.MonthOfYearEnum.MonthOfYear, ) diff --git a/google/ads/googleads/v14/common/types/extensions.py b/google/ads/googleads/v14/common/types/extensions.py index 65e176dfb..af2166268 100644 --- a/google/ads/googleads/v14/common/types/extensions.py +++ b/google/ads/googleads/v14/common/types/extensions.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -98,30 +98,44 @@ class AppFeedItem(proto.Message): """ link_text: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) app_id: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) app_store: gage_app_store.AppStoreEnum.AppStore = proto.Field( - proto.ENUM, number=3, enum=gage_app_store.AppStoreEnum.AppStore, + proto.ENUM, + number=3, + enum=gage_app_store.AppStoreEnum.AppStore, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=11, + proto.STRING, + number=11, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=12, + proto.STRING, + number=12, ) tracking_url_template: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=7, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=7, + message=custom_parameter.CustomParameter, ) final_url_suffix: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) @@ -167,19 +181,29 @@ class CallFeedItem(proto.Message): """ phone_number: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) call_tracking_enabled: bool = proto.Field( - proto.BOOL, number=9, optional=True, + proto.BOOL, + number=9, + optional=True, ) call_conversion_action: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) call_conversion_tracking_disabled: bool = proto.Field( - proto.BOOL, number=11, optional=True, + proto.BOOL, + number=11, + optional=True, ) call_conversion_reporting_state: gage_call_conversion_reporting_state.CallConversionReportingStateEnum.CallConversionReportingState = proto.Field( proto.ENUM, @@ -202,7 +226,9 @@ class CalloutFeedItem(proto.Message): """ callout_text: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -246,28 +272,44 @@ class LocationFeedItem(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) address_line_1: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) address_line_2: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) city: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) province: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) postal_code: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=15, optional=True, + proto.STRING, + number=15, + optional=True, ) phone_number: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) @@ -320,34 +362,54 @@ class AffiliateLocationFeedItem(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) address_line_1: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) address_line_2: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) city: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) province: str = proto.Field( - proto.STRING, number=15, optional=True, + proto.STRING, + number=15, + optional=True, ) postal_code: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) phone_number: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) chain_id: int = proto.Field( - proto.INT64, number=19, optional=True, + proto.INT64, + number=19, + optional=True, ) chain_name: str = proto.Field( - proto.STRING, number=20, optional=True, + proto.STRING, + number=20, + optional=True, ) @@ -386,19 +448,29 @@ class TextMessageFeedItem(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) phone_number: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) text: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) extension_text: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) @@ -431,10 +503,12 @@ class PriceFeedItem(proto.Message): This field is a member of `oneof`_ ``_final_url_suffix``. """ - type_: price_extension_type.PriceExtensionTypeEnum.PriceExtensionType = proto.Field( - proto.ENUM, - number=1, - enum=price_extension_type.PriceExtensionTypeEnum.PriceExtensionType, + type_: price_extension_type.PriceExtensionTypeEnum.PriceExtensionType = ( + proto.Field( + proto.ENUM, + number=1, + enum=price_extension_type.PriceExtensionTypeEnum.PriceExtensionType, + ) ) price_qualifier: price_extension_price_qualifier.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier = proto.Field( proto.ENUM, @@ -442,16 +516,24 @@ class PriceFeedItem(proto.Message): enum=price_extension_price_qualifier.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier, ) tracking_url_template: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) language_code: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) price_offerings: MutableSequence["PriceOffer"] = proto.RepeatedField( - proto.MESSAGE, number=5, message="PriceOffer", + proto.MESSAGE, + number=5, + message="PriceOffer", ) final_url_suffix: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) @@ -481,13 +563,19 @@ class PriceOffer(proto.Message): """ header: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) description: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) price: feed_common.Money = proto.Field( - proto.MESSAGE, number=3, message=feed_common.Money, + proto.MESSAGE, + number=3, + message=feed_common.Money, ) unit: price_extension_price_unit.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit = proto.Field( proto.ENUM, @@ -495,10 +583,12 @@ class PriceOffer(proto.Message): enum=price_extension_price_unit.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=9, + proto.STRING, + number=9, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) @@ -583,7 +673,9 @@ class PromotionFeedItem(proto.Message): """ promotion_target: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) discount_modifier: promotion_extension_discount_modifier.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier = proto.Field( proto.ENUM, @@ -591,10 +683,14 @@ class PromotionFeedItem(proto.Message): enum=promotion_extension_discount_modifier.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier, ) promotion_start_date: str = proto.Field( - proto.STRING, number=19, optional=True, + proto.STRING, + number=19, + optional=True, ) promotion_end_date: str = proto.Field( - proto.STRING, number=20, optional=True, + proto.STRING, + number=20, + optional=True, ) occasion: promotion_extension_occasion.PromotionExtensionOccasionEnum.PromotionExtensionOccasion = proto.Field( proto.ENUM, @@ -602,27 +698,39 @@ class PromotionFeedItem(proto.Message): enum=promotion_extension_occasion.PromotionExtensionOccasionEnum.PromotionExtensionOccasion, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=21, + proto.STRING, + number=21, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=22, + proto.STRING, + number=22, ) tracking_url_template: str = proto.Field( - proto.STRING, number=23, optional=True, + proto.STRING, + number=23, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=13, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=13, + message=custom_parameter.CustomParameter, ) final_url_suffix: str = proto.Field( - proto.STRING, number=24, optional=True, + proto.STRING, + number=24, + optional=True, ) language_code: str = proto.Field( - proto.STRING, number=25, optional=True, + proto.STRING, + number=25, + optional=True, ) percent_off: int = proto.Field( - proto.INT64, number=17, oneof="discount_type", + proto.INT64, + number=17, + oneof="discount_type", ) money_amount_off: feed_common.Money = proto.Field( proto.MESSAGE, @@ -631,7 +739,9 @@ class PromotionFeedItem(proto.Message): message=feed_common.Money, ) promotion_code: str = proto.Field( - proto.STRING, number=18, oneof="promotion_trigger", + proto.STRING, + number=18, + oneof="promotion_trigger", ) orders_over_amount: feed_common.Money = proto.Field( proto.MESSAGE, @@ -657,10 +767,13 @@ class StructuredSnippetFeedItem(proto.Message): """ header: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) values: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -711,30 +824,44 @@ class SitelinkFeedItem(proto.Message): """ link_text: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) line1: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) line2: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=12, + proto.STRING, + number=12, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=13, + proto.STRING, + number=13, ) tracking_url_template: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=7, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=7, + message=custom_parameter.CustomParameter, ) final_url_suffix: str = proto.Field( - proto.STRING, number=15, optional=True, + proto.STRING, + number=15, + optional=True, ) @@ -757,10 +884,14 @@ class HotelCalloutFeedItem(proto.Message): """ text: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) language_code: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) @@ -772,7 +903,8 @@ class ImageFeedItem(proto.Message): """ image_asset: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/common/types/feed_common.py b/google/ads/googleads/v14/common/types/feed_common.py index d34ba1c57..b2c56b259 100644 --- a/google/ads/googleads/v14/common/types/feed_common.py +++ b/google/ads/googleads/v14/common/types/feed_common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"Money",}, + manifest={ + "Money", + }, ) @@ -43,10 +45,14 @@ class Money(proto.Message): """ currency_code: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) amount_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/feed_item_set_filter_type_infos.py b/google/ads/googleads/v14/common/types/feed_item_set_filter_type_infos.py index 6d2be8355..a17a19e51 100644 --- a/google/ads/googleads/v14/common/types/feed_item_set_filter_type_infos.py +++ b/google/ads/googleads/v14/common/types/feed_item_set_filter_type_infos.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,10 +50,13 @@ class DynamicLocationSetFilter(proto.Message): """ labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) business_name_filter: "BusinessNameFilter" = proto.Field( - proto.MESSAGE, number=2, message="BusinessNameFilter", + proto.MESSAGE, + number=2, + message="BusinessNameFilter", ) @@ -70,7 +73,8 @@ class BusinessNameFilter(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) filter_type: feed_item_set_string_filter_type.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType = proto.Field( proto.ENUM, @@ -93,7 +97,8 @@ class DynamicAffiliateLocationSetFilter(proto.Message): """ chain_ids: MutableSequence[int] = proto.RepeatedField( - proto.INT64, number=1, + proto.INT64, + number=1, ) diff --git a/google/ads/googleads/v14/common/types/final_app_url.py b/google/ads/googleads/v14/common/types/final_app_url.py index 8dcf363d6..bc55a0821 100644 --- a/google/ads/googleads/v14/common/types/final_app_url.py +++ b/google/ads/googleads/v14/common/types/final_app_url.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"FinalAppUrl",}, + manifest={ + "FinalAppUrl", + }, ) @@ -57,7 +59,9 @@ class FinalAppUrl(proto.Message): enum=app_url_operating_system_type.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType, ) url: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/frequency_cap.py b/google/ads/googleads/v14/common/types/frequency_cap.py index a9b9f1748..6a31f2226 100644 --- a/google/ads/googleads/v14/common/types/frequency_cap.py +++ b/google/ads/googleads/v14/common/types/frequency_cap.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"FrequencyCapEntry", "FrequencyCapKey",}, + manifest={ + "FrequencyCapEntry", + "FrequencyCapKey", + }, ) @@ -50,10 +53,14 @@ class FrequencyCapEntry(proto.Message): """ key: "FrequencyCapKey" = proto.Field( - proto.MESSAGE, number=1, message="FrequencyCapKey", + proto.MESSAGE, + number=1, + message="FrequencyCapKey", ) cap: int = proto.Field( - proto.INT32, number=3, optional=True, + proto.INT32, + number=3, + optional=True, ) @@ -80,10 +87,12 @@ class FrequencyCapKey(proto.Message): This field is a member of `oneof`_ ``_time_length``. """ - level: frequency_cap_level.FrequencyCapLevelEnum.FrequencyCapLevel = proto.Field( - proto.ENUM, - number=1, - enum=frequency_cap_level.FrequencyCapLevelEnum.FrequencyCapLevel, + level: frequency_cap_level.FrequencyCapLevelEnum.FrequencyCapLevel = ( + proto.Field( + proto.ENUM, + number=1, + enum=frequency_cap_level.FrequencyCapLevelEnum.FrequencyCapLevel, + ) ) event_type: frequency_cap_event_type.FrequencyCapEventTypeEnum.FrequencyCapEventType = proto.Field( proto.ENUM, @@ -96,7 +105,9 @@ class FrequencyCapKey(proto.Message): enum=frequency_cap_time_unit.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit, ) time_length: int = proto.Field( - proto.INT32, number=5, optional=True, + proto.INT32, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/keyword_plan_common.py b/google/ads/googleads/v14/common/types/keyword_plan_common.py index 2362f73a6..86dfe9054 100644 --- a/google/ads/googleads/v14/common/types/keyword_plan_common.py +++ b/google/ads/googleads/v14/common/types/keyword_plan_common.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -93,12 +93,16 @@ class KeywordPlanHistoricalMetrics(proto.Message): """ avg_monthly_searches: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) monthly_search_volumes: MutableSequence[ "MonthlySearchVolume" ] = proto.RepeatedField( - proto.MESSAGE, number=6, message="MonthlySearchVolume", + proto.MESSAGE, + number=6, + message="MonthlySearchVolume", ) competition: keyword_plan_competition_level.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel = proto.Field( proto.ENUM, @@ -106,16 +110,24 @@ class KeywordPlanHistoricalMetrics(proto.Message): enum=keyword_plan_competition_level.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel, ) competition_index: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) low_top_of_page_bid_micros: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) high_top_of_page_bid_micros: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) average_cpc_micros: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) @@ -140,10 +152,14 @@ class HistoricalMetricsOptions(proto.Message): """ year_month_range: dates.YearMonthRange = proto.Field( - proto.MESSAGE, number=1, optional=True, message=dates.YearMonthRange, + proto.MESSAGE, + number=1, + optional=True, + message=dates.YearMonthRange, ) include_average_cpc: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -168,13 +184,19 @@ class MonthlySearchVolume(proto.Message): """ year: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) month: month_of_year.MonthOfYearEnum.MonthOfYear = proto.Field( - proto.ENUM, number=2, enum=month_of_year.MonthOfYearEnum.MonthOfYear, + proto.ENUM, + number=2, + enum=month_of_year.MonthOfYearEnum.MonthOfYear, ) monthly_searches: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) @@ -211,7 +233,9 @@ class KeywordPlanAggregateMetricResults(proto.Message): device_searches: MutableSequence[ "KeywordPlanDeviceSearches" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="KeywordPlanDeviceSearches", + proto.MESSAGE, + number=1, + message="KeywordPlanDeviceSearches", ) @@ -231,10 +255,14 @@ class KeywordPlanDeviceSearches(proto.Message): """ device: gage_device.DeviceEnum.Device = proto.Field( - proto.ENUM, number=1, enum=gage_device.DeviceEnum.Device, + proto.ENUM, + number=1, + enum=gage_device.DeviceEnum.Device, ) search_count: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -246,7 +274,9 @@ class KeywordAnnotations(proto.Message): """ concepts: MutableSequence["KeywordConcept"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="KeywordConcept", + proto.MESSAGE, + number=1, + message="KeywordConcept", ) @@ -260,10 +290,13 @@ class KeywordConcept(proto.Message): """ name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) concept_group: "ConceptGroup" = proto.Field( - proto.MESSAGE, number=2, message="ConceptGroup", + proto.MESSAGE, + number=2, + message="ConceptGroup", ) @@ -277,7 +310,8 @@ class ConceptGroup(proto.Message): """ name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) type_: keyword_plan_concept_group_type.KeywordPlanConceptGroupTypeEnum.KeywordPlanConceptGroupType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/common/types/matching_function.py b/google/ads/googleads/v14/common/types/matching_function.py index 5bb5abe2a..e1d16515c 100644 --- a/google/ads/googleads/v14/common/types/matching_function.py +++ b/google/ads/googleads/v14/common/types/matching_function.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"MatchingFunction", "Operand",}, + manifest={ + "MatchingFunction", + "Operand", + }, ) @@ -72,7 +75,9 @@ class MatchingFunction(proto.Message): """ function_string: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) operator: matching_function_operator.MatchingFunctionOperatorEnum.MatchingFunctionOperator = proto.Field( proto.ENUM, @@ -80,10 +85,14 @@ class MatchingFunction(proto.Message): enum=matching_function_operator.MatchingFunctionOperatorEnum.MatchingFunctionOperator, ) left_operands: MutableSequence["Operand"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="Operand", + proto.MESSAGE, + number=2, + message="Operand", ) right_operands: MutableSequence["Operand"] = proto.RepeatedField( - proto.MESSAGE, number=3, message="Operand", + proto.MESSAGE, + number=3, + message="Operand", ) @@ -151,16 +160,24 @@ class ConstantOperand(proto.Message): """ string_value: str = proto.Field( - proto.STRING, number=5, oneof="constant_operand_value", + proto.STRING, + number=5, + oneof="constant_operand_value", ) long_value: int = proto.Field( - proto.INT64, number=6, oneof="constant_operand_value", + proto.INT64, + number=6, + oneof="constant_operand_value", ) boolean_value: bool = proto.Field( - proto.BOOL, number=7, oneof="constant_operand_value", + proto.BOOL, + number=7, + oneof="constant_operand_value", ) double_value: float = proto.Field( - proto.DOUBLE, number=8, oneof="constant_operand_value", + proto.DOUBLE, + number=8, + oneof="constant_operand_value", ) class FeedAttributeOperand(proto.Message): @@ -182,10 +199,14 @@ class FeedAttributeOperand(proto.Message): """ feed_id: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) feed_attribute_id: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) class FunctionOperand(proto.Message): @@ -198,7 +219,9 @@ class FunctionOperand(proto.Message): """ matching_function: "MatchingFunction" = proto.Field( - proto.MESSAGE, number=1, message="MatchingFunction", + proto.MESSAGE, + number=1, + message="MatchingFunction", ) class RequestContextOperand(proto.Message): diff --git a/google/ads/googleads/v14/common/types/metric_goal.py b/google/ads/googleads/v14/common/types/metric_goal.py index 709b382c4..c2909a3ef 100644 --- a/google/ads/googleads/v14/common/types/metric_goal.py +++ b/google/ads/googleads/v14/common/types/metric_goal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"MetricGoal",}, + manifest={ + "MetricGoal", + }, ) @@ -40,10 +42,12 @@ class MetricGoal(proto.Message): example, increase, decrease, no change. """ - metric: experiment_metric.ExperimentMetricEnum.ExperimentMetric = proto.Field( - proto.ENUM, - number=1, - enum=experiment_metric.ExperimentMetricEnum.ExperimentMetric, + metric: experiment_metric.ExperimentMetricEnum.ExperimentMetric = ( + proto.Field( + proto.ENUM, + number=1, + enum=experiment_metric.ExperimentMetricEnum.ExperimentMetric, + ) ) direction: experiment_metric_direction.ExperimentMetricDirectionEnum.ExperimentMetricDirection = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/common/types/metrics.py b/google/ads/googleads/v14/common/types/metrics.py index a1a2b463a..d46bd433e 100644 --- a/google/ads/googleads/v14/common/types/metrics.py +++ b/google/ads/googleads/v14/common/types/metrics.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"Metrics",}, + manifest={ + "Metrics", + "SearchVolumeRange", + }, ) @@ -97,6 +100,19 @@ class Metrics(proto.Message): date. Details for the by_conversion_date columns are available at https://support.google.com/google-ads/answer/9549009. + all_new_customer_lifetime_value (float): + All of new customers' lifetime conversion value. If you have + set up customer acquisition goal at either account level or + campaign level, this will include the additional conversion + value from new customers for both biddable and non-biddable + conversions. If your campaign has adopted the customer + acquisition goal and selected "bid higher for new + customers", these values will be included in + "all_conversions_value". See + https://support.google.com/google-ads/answer/12080169 for + more details. + + This field is a member of `oneof`_ ``_all_new_customer_lifetime_value``. all_conversions (float): The total number of conversions. This includes all conversions regardless of the value of @@ -396,6 +412,18 @@ class Metrics(proto.Message): means the conversion date. Details for the by_conversion_date columns are available at https://support.google.com/google-ads/answer/9549009. + new_customer_lifetime_value (float): + New customers' lifetime conversion value. If you have set up + customer acquisition goal at either account level or + campaign level, this will include the additional conversion + value from new customers for biddable conversions. If your + campaign has adopted the customer acquisition goal and + selected "bid higher for new customers", these values will + be included in "conversions_value" for optimization. See + https://support.google.com/google-ads/answer/12080169 for + more details. + + This field is a member of `oneof`_ ``_new_customer_lifetime_value``. conversions_value_per_cost (float): The value of conversions divided by the cost of ad interactions. This only includes conversion actions which @@ -831,6 +859,11 @@ class Metrics(proto.Message): below 0.1 is reported as 0.0999. This field is a member of `oneof`_ ``_search_top_impression_share``. + search_volume (google.ads.googleads.v14.common.types.SearchVolumeRange): + Search volume range for a search term insight + category. + + This field is a member of `oneof`_ ``_search_volume``. speed_score (int): A measure of how quickly your page loads after clicks on your mobile ads. The score is a @@ -1060,226 +1093,386 @@ class Metrics(proto.Message): """ absolute_top_impression_percentage: float = proto.Field( - proto.DOUBLE, number=183, optional=True, + proto.DOUBLE, + number=183, + optional=True, ) active_view_cpm: float = proto.Field( - proto.DOUBLE, number=184, optional=True, + proto.DOUBLE, + number=184, + optional=True, ) active_view_ctr: float = proto.Field( - proto.DOUBLE, number=185, optional=True, + proto.DOUBLE, + number=185, + optional=True, ) active_view_impressions: int = proto.Field( - proto.INT64, number=186, optional=True, + proto.INT64, + number=186, + optional=True, ) active_view_measurability: float = proto.Field( - proto.DOUBLE, number=187, optional=True, + proto.DOUBLE, + number=187, + optional=True, ) active_view_measurable_cost_micros: int = proto.Field( - proto.INT64, number=188, optional=True, + proto.INT64, + number=188, + optional=True, ) active_view_measurable_impressions: int = proto.Field( - proto.INT64, number=189, optional=True, + proto.INT64, + number=189, + optional=True, ) active_view_viewability: float = proto.Field( - proto.DOUBLE, number=190, optional=True, + proto.DOUBLE, + number=190, + optional=True, ) all_conversions_from_interactions_rate: float = proto.Field( - proto.DOUBLE, number=191, optional=True, + proto.DOUBLE, + number=191, + optional=True, ) all_conversions_value: float = proto.Field( - proto.DOUBLE, number=192, optional=True, + proto.DOUBLE, + number=192, + optional=True, ) all_conversions_value_by_conversion_date: float = proto.Field( - proto.DOUBLE, number=240, + proto.DOUBLE, + number=240, + ) + all_new_customer_lifetime_value: float = proto.Field( + proto.DOUBLE, + number=294, + optional=True, ) all_conversions: float = proto.Field( - proto.DOUBLE, number=193, optional=True, + proto.DOUBLE, + number=193, + optional=True, ) all_conversions_by_conversion_date: float = proto.Field( - proto.DOUBLE, number=241, + proto.DOUBLE, + number=241, ) all_conversions_value_per_cost: float = proto.Field( - proto.DOUBLE, number=194, optional=True, + proto.DOUBLE, + number=194, + optional=True, ) all_conversions_from_click_to_call: float = proto.Field( - proto.DOUBLE, number=195, optional=True, + proto.DOUBLE, + number=195, + optional=True, ) all_conversions_from_directions: float = proto.Field( - proto.DOUBLE, number=196, optional=True, + proto.DOUBLE, + number=196, + optional=True, ) - all_conversions_from_interactions_value_per_interaction: float = proto.Field( - proto.DOUBLE, number=197, optional=True, + all_conversions_from_interactions_value_per_interaction: float = ( + proto.Field( + proto.DOUBLE, + number=197, + optional=True, + ) ) all_conversions_from_menu: float = proto.Field( - proto.DOUBLE, number=198, optional=True, + proto.DOUBLE, + number=198, + optional=True, ) all_conversions_from_order: float = proto.Field( - proto.DOUBLE, number=199, optional=True, + proto.DOUBLE, + number=199, + optional=True, ) all_conversions_from_other_engagement: float = proto.Field( - proto.DOUBLE, number=200, optional=True, + proto.DOUBLE, + number=200, + optional=True, ) all_conversions_from_store_visit: float = proto.Field( - proto.DOUBLE, number=201, optional=True, + proto.DOUBLE, + number=201, + optional=True, ) all_conversions_from_store_website: float = proto.Field( - proto.DOUBLE, number=202, optional=True, + proto.DOUBLE, + number=202, + optional=True, ) - auction_insight_search_absolute_top_impression_percentage: float = proto.Field( - proto.DOUBLE, number=258, optional=True, + auction_insight_search_absolute_top_impression_percentage: float = ( + proto.Field( + proto.DOUBLE, + number=258, + optional=True, + ) ) auction_insight_search_impression_share: float = proto.Field( - proto.DOUBLE, number=259, optional=True, + proto.DOUBLE, + number=259, + optional=True, ) auction_insight_search_outranking_share: float = proto.Field( - proto.DOUBLE, number=260, optional=True, + proto.DOUBLE, + number=260, + optional=True, ) auction_insight_search_overlap_rate: float = proto.Field( - proto.DOUBLE, number=261, optional=True, + proto.DOUBLE, + number=261, + optional=True, ) auction_insight_search_position_above_rate: float = proto.Field( - proto.DOUBLE, number=262, optional=True, + proto.DOUBLE, + number=262, + optional=True, ) auction_insight_search_top_impression_percentage: float = proto.Field( - proto.DOUBLE, number=263, optional=True, + proto.DOUBLE, + number=263, + optional=True, ) average_cost: float = proto.Field( - proto.DOUBLE, number=203, optional=True, + proto.DOUBLE, + number=203, + optional=True, ) average_cpc: float = proto.Field( - proto.DOUBLE, number=204, optional=True, + proto.DOUBLE, + number=204, + optional=True, ) average_cpe: float = proto.Field( - proto.DOUBLE, number=205, optional=True, + proto.DOUBLE, + number=205, + optional=True, ) average_cpm: float = proto.Field( - proto.DOUBLE, number=206, optional=True, + proto.DOUBLE, + number=206, + optional=True, ) average_cpv: float = proto.Field( - proto.DOUBLE, number=207, optional=True, + proto.DOUBLE, + number=207, + optional=True, ) average_page_views: float = proto.Field( - proto.DOUBLE, number=208, optional=True, + proto.DOUBLE, + number=208, + optional=True, ) average_time_on_site: float = proto.Field( - proto.DOUBLE, number=209, optional=True, + proto.DOUBLE, + number=209, + optional=True, ) benchmark_average_max_cpc: float = proto.Field( - proto.DOUBLE, number=210, optional=True, + proto.DOUBLE, + number=210, + optional=True, ) biddable_app_install_conversions: float = proto.Field( - proto.DOUBLE, number=254, optional=True, + proto.DOUBLE, + number=254, + optional=True, ) biddable_app_post_install_conversions: float = proto.Field( - proto.DOUBLE, number=255, optional=True, + proto.DOUBLE, + number=255, + optional=True, ) benchmark_ctr: float = proto.Field( - proto.DOUBLE, number=211, optional=True, + proto.DOUBLE, + number=211, + optional=True, ) bounce_rate: float = proto.Field( - proto.DOUBLE, number=212, optional=True, + proto.DOUBLE, + number=212, + optional=True, ) clicks: int = proto.Field( - proto.INT64, number=131, optional=True, + proto.INT64, + number=131, + optional=True, ) combined_clicks: int = proto.Field( - proto.INT64, number=156, optional=True, + proto.INT64, + number=156, + optional=True, ) combined_clicks_per_query: float = proto.Field( - proto.DOUBLE, number=157, optional=True, + proto.DOUBLE, + number=157, + optional=True, ) combined_queries: int = proto.Field( - proto.INT64, number=158, optional=True, + proto.INT64, + number=158, + optional=True, ) content_budget_lost_impression_share: float = proto.Field( - proto.DOUBLE, number=159, optional=True, + proto.DOUBLE, + number=159, + optional=True, ) content_impression_share: float = proto.Field( - proto.DOUBLE, number=160, optional=True, + proto.DOUBLE, + number=160, + optional=True, ) conversion_last_received_request_date_time: str = proto.Field( - proto.STRING, number=161, optional=True, + proto.STRING, + number=161, + optional=True, ) conversion_last_conversion_date: str = proto.Field( - proto.STRING, number=162, optional=True, + proto.STRING, + number=162, + optional=True, ) content_rank_lost_impression_share: float = proto.Field( - proto.DOUBLE, number=163, optional=True, + proto.DOUBLE, + number=163, + optional=True, ) conversions_from_interactions_rate: float = proto.Field( - proto.DOUBLE, number=164, optional=True, + proto.DOUBLE, + number=164, + optional=True, ) conversions_value: float = proto.Field( - proto.DOUBLE, number=165, optional=True, + proto.DOUBLE, + number=165, + optional=True, ) conversions_value_by_conversion_date: float = proto.Field( - proto.DOUBLE, number=242, + proto.DOUBLE, + number=242, + ) + new_customer_lifetime_value: float = proto.Field( + proto.DOUBLE, + number=293, + optional=True, ) conversions_value_per_cost: float = proto.Field( - proto.DOUBLE, number=166, optional=True, + proto.DOUBLE, + number=166, + optional=True, ) conversions_from_interactions_value_per_interaction: float = proto.Field( - proto.DOUBLE, number=167, optional=True, + proto.DOUBLE, + number=167, + optional=True, ) conversions: float = proto.Field( - proto.DOUBLE, number=168, optional=True, + proto.DOUBLE, + number=168, + optional=True, ) conversions_by_conversion_date: float = proto.Field( - proto.DOUBLE, number=243, + proto.DOUBLE, + number=243, ) cost_micros: int = proto.Field( - proto.INT64, number=169, optional=True, + proto.INT64, + number=169, + optional=True, ) cost_per_all_conversions: float = proto.Field( - proto.DOUBLE, number=170, optional=True, + proto.DOUBLE, + number=170, + optional=True, ) cost_per_conversion: float = proto.Field( - proto.DOUBLE, number=171, optional=True, + proto.DOUBLE, + number=171, + optional=True, ) cost_per_current_model_attributed_conversion: float = proto.Field( - proto.DOUBLE, number=172, optional=True, + proto.DOUBLE, + number=172, + optional=True, ) cross_device_conversions: float = proto.Field( - proto.DOUBLE, number=173, optional=True, + proto.DOUBLE, + number=173, + optional=True, ) ctr: float = proto.Field( - proto.DOUBLE, number=174, optional=True, + proto.DOUBLE, + number=174, + optional=True, ) current_model_attributed_conversions: float = proto.Field( - proto.DOUBLE, number=175, optional=True, + proto.DOUBLE, + number=175, + optional=True, ) - current_model_attributed_conversions_from_interactions_rate: float = proto.Field( - proto.DOUBLE, number=176, optional=True, + current_model_attributed_conversions_from_interactions_rate: float = ( + proto.Field( + proto.DOUBLE, + number=176, + optional=True, + ) ) current_model_attributed_conversions_from_interactions_value_per_interaction: float = proto.Field( - proto.DOUBLE, number=177, optional=True, + proto.DOUBLE, + number=177, + optional=True, ) current_model_attributed_conversions_value: float = proto.Field( - proto.DOUBLE, number=178, optional=True, + proto.DOUBLE, + number=178, + optional=True, ) current_model_attributed_conversions_value_per_cost: float = proto.Field( - proto.DOUBLE, number=179, optional=True, + proto.DOUBLE, + number=179, + optional=True, ) engagement_rate: float = proto.Field( - proto.DOUBLE, number=180, optional=True, + proto.DOUBLE, + number=180, + optional=True, ) engagements: int = proto.Field( - proto.INT64, number=181, optional=True, + proto.INT64, + number=181, + optional=True, ) hotel_average_lead_value_micros: float = proto.Field( - proto.DOUBLE, number=213, optional=True, + proto.DOUBLE, + number=213, + optional=True, ) hotel_commission_rate_micros: int = proto.Field( - proto.INT64, number=256, optional=True, + proto.INT64, + number=256, + optional=True, ) hotel_expected_commission_cost: float = proto.Field( - proto.DOUBLE, number=257, optional=True, + proto.DOUBLE, + number=257, + optional=True, ) hotel_price_difference_percentage: float = proto.Field( - proto.DOUBLE, number=214, optional=True, + proto.DOUBLE, + number=214, + optional=True, ) hotel_eligible_impressions: int = proto.Field( - proto.INT64, number=215, optional=True, + proto.INT64, + number=215, + optional=True, ) historical_creative_quality_score: quality_score_bucket.QualityScoreBucketEnum.QualityScoreBucket = proto.Field( proto.ENUM, @@ -1292,7 +1485,9 @@ class Metrics(proto.Message): enum=quality_score_bucket.QualityScoreBucketEnum.QualityScoreBucket, ) historical_quality_score: int = proto.Field( - proto.INT64, number=216, optional=True, + proto.INT64, + number=216, + optional=True, ) historical_search_predicted_ctr: quality_score_bucket.QualityScoreBucketEnum.QualityScoreBucket = proto.Field( proto.ENUM, @@ -1300,25 +1495,39 @@ class Metrics(proto.Message): enum=quality_score_bucket.QualityScoreBucketEnum.QualityScoreBucket, ) gmail_forwards: int = proto.Field( - proto.INT64, number=217, optional=True, + proto.INT64, + number=217, + optional=True, ) gmail_saves: int = proto.Field( - proto.INT64, number=218, optional=True, + proto.INT64, + number=218, + optional=True, ) gmail_secondary_clicks: int = proto.Field( - proto.INT64, number=219, optional=True, + proto.INT64, + number=219, + optional=True, ) impressions_from_store_reach: int = proto.Field( - proto.INT64, number=220, optional=True, + proto.INT64, + number=220, + optional=True, ) impressions: int = proto.Field( - proto.INT64, number=221, optional=True, + proto.INT64, + number=221, + optional=True, ) interaction_rate: float = proto.Field( - proto.DOUBLE, number=222, optional=True, + proto.DOUBLE, + number=222, + optional=True, ) interactions: int = proto.Field( - proto.INT64, number=223, optional=True, + proto.INT64, + number=223, + optional=True, ) interaction_event_types: MutableSequence[ interaction_event_type.InteractionEventTypeEnum.InteractionEventType @@ -1328,199 +1537,368 @@ class Metrics(proto.Message): enum=interaction_event_type.InteractionEventTypeEnum.InteractionEventType, ) invalid_click_rate: float = proto.Field( - proto.DOUBLE, number=224, optional=True, + proto.DOUBLE, + number=224, + optional=True, ) invalid_clicks: int = proto.Field( - proto.INT64, number=225, optional=True, + proto.INT64, + number=225, + optional=True, ) message_chats: int = proto.Field( - proto.INT64, number=226, optional=True, + proto.INT64, + number=226, + optional=True, ) message_impressions: int = proto.Field( - proto.INT64, number=227, optional=True, + proto.INT64, + number=227, + optional=True, ) message_chat_rate: float = proto.Field( - proto.DOUBLE, number=228, optional=True, + proto.DOUBLE, + number=228, + optional=True, ) mobile_friendly_clicks_percentage: float = proto.Field( - proto.DOUBLE, number=229, optional=True, + proto.DOUBLE, + number=229, + optional=True, ) optimization_score_uplift: float = proto.Field( - proto.DOUBLE, number=247, optional=True, + proto.DOUBLE, + number=247, + optional=True, ) optimization_score_url: str = proto.Field( - proto.STRING, number=248, optional=True, + proto.STRING, + number=248, + optional=True, ) organic_clicks: int = proto.Field( - proto.INT64, number=230, optional=True, + proto.INT64, + number=230, + optional=True, ) organic_clicks_per_query: float = proto.Field( - proto.DOUBLE, number=231, optional=True, + proto.DOUBLE, + number=231, + optional=True, ) organic_impressions: int = proto.Field( - proto.INT64, number=232, optional=True, + proto.INT64, + number=232, + optional=True, ) organic_impressions_per_query: float = proto.Field( - proto.DOUBLE, number=233, optional=True, + proto.DOUBLE, + number=233, + optional=True, ) organic_queries: int = proto.Field( - proto.INT64, number=234, optional=True, + proto.INT64, + number=234, + optional=True, ) percent_new_visitors: float = proto.Field( - proto.DOUBLE, number=235, optional=True, + proto.DOUBLE, + number=235, + optional=True, ) phone_calls: int = proto.Field( - proto.INT64, number=236, optional=True, + proto.INT64, + number=236, + optional=True, ) phone_impressions: int = proto.Field( - proto.INT64, number=237, optional=True, + proto.INT64, + number=237, + optional=True, ) phone_through_rate: float = proto.Field( - proto.DOUBLE, number=238, optional=True, + proto.DOUBLE, + number=238, + optional=True, ) relative_ctr: float = proto.Field( - proto.DOUBLE, number=239, optional=True, + proto.DOUBLE, + number=239, + optional=True, ) search_absolute_top_impression_share: float = proto.Field( - proto.DOUBLE, number=136, optional=True, + proto.DOUBLE, + number=136, + optional=True, ) search_budget_lost_absolute_top_impression_share: float = proto.Field( - proto.DOUBLE, number=137, optional=True, + proto.DOUBLE, + number=137, + optional=True, ) search_budget_lost_impression_share: float = proto.Field( - proto.DOUBLE, number=138, optional=True, + proto.DOUBLE, + number=138, + optional=True, ) search_budget_lost_top_impression_share: float = proto.Field( - proto.DOUBLE, number=139, optional=True, + proto.DOUBLE, + number=139, + optional=True, ) search_click_share: float = proto.Field( - proto.DOUBLE, number=140, optional=True, + proto.DOUBLE, + number=140, + optional=True, ) search_exact_match_impression_share: float = proto.Field( - proto.DOUBLE, number=141, optional=True, + proto.DOUBLE, + number=141, + optional=True, ) search_impression_share: float = proto.Field( - proto.DOUBLE, number=142, optional=True, + proto.DOUBLE, + number=142, + optional=True, ) search_rank_lost_absolute_top_impression_share: float = proto.Field( - proto.DOUBLE, number=143, optional=True, + proto.DOUBLE, + number=143, + optional=True, ) search_rank_lost_impression_share: float = proto.Field( - proto.DOUBLE, number=144, optional=True, + proto.DOUBLE, + number=144, + optional=True, ) search_rank_lost_top_impression_share: float = proto.Field( - proto.DOUBLE, number=145, optional=True, + proto.DOUBLE, + number=145, + optional=True, ) search_top_impression_share: float = proto.Field( - proto.DOUBLE, number=146, optional=True, + proto.DOUBLE, + number=146, + optional=True, + ) + search_volume: "SearchVolumeRange" = proto.Field( + proto.MESSAGE, + number=295, + optional=True, + message="SearchVolumeRange", ) speed_score: int = proto.Field( - proto.INT64, number=147, optional=True, + proto.INT64, + number=147, + optional=True, ) average_target_cpa_micros: int = proto.Field( - proto.INT64, number=290, optional=True, + proto.INT64, + number=290, + optional=True, ) average_target_roas: float = proto.Field( - proto.DOUBLE, number=250, optional=True, + proto.DOUBLE, + number=250, + optional=True, ) top_impression_percentage: float = proto.Field( - proto.DOUBLE, number=148, optional=True, + proto.DOUBLE, + number=148, + optional=True, ) valid_accelerated_mobile_pages_clicks_percentage: float = proto.Field( - proto.DOUBLE, number=149, optional=True, + proto.DOUBLE, + number=149, + optional=True, ) value_per_all_conversions: float = proto.Field( - proto.DOUBLE, number=150, optional=True, + proto.DOUBLE, + number=150, + optional=True, ) value_per_all_conversions_by_conversion_date: float = proto.Field( - proto.DOUBLE, number=244, optional=True, + proto.DOUBLE, + number=244, + optional=True, ) value_per_conversion: float = proto.Field( - proto.DOUBLE, number=151, optional=True, + proto.DOUBLE, + number=151, + optional=True, ) value_per_conversions_by_conversion_date: float = proto.Field( - proto.DOUBLE, number=245, optional=True, + proto.DOUBLE, + number=245, + optional=True, ) value_per_current_model_attributed_conversion: float = proto.Field( - proto.DOUBLE, number=152, optional=True, + proto.DOUBLE, + number=152, + optional=True, ) video_quartile_p100_rate: float = proto.Field( - proto.DOUBLE, number=132, optional=True, + proto.DOUBLE, + number=132, + optional=True, ) video_quartile_p25_rate: float = proto.Field( - proto.DOUBLE, number=133, optional=True, + proto.DOUBLE, + number=133, + optional=True, ) video_quartile_p50_rate: float = proto.Field( - proto.DOUBLE, number=134, optional=True, + proto.DOUBLE, + number=134, + optional=True, ) video_quartile_p75_rate: float = proto.Field( - proto.DOUBLE, number=135, optional=True, + proto.DOUBLE, + number=135, + optional=True, ) video_view_rate: float = proto.Field( - proto.DOUBLE, number=153, optional=True, + proto.DOUBLE, + number=153, + optional=True, ) video_views: int = proto.Field( - proto.INT64, number=154, optional=True, + proto.INT64, + number=154, + optional=True, ) view_through_conversions: int = proto.Field( - proto.INT64, number=155, optional=True, + proto.INT64, + number=155, + optional=True, ) sk_ad_network_conversions: int = proto.Field( - proto.INT64, number=246, + proto.INT64, + number=246, ) publisher_purchased_clicks: int = proto.Field( - proto.INT64, number=264, + proto.INT64, + number=264, ) publisher_organic_clicks: int = proto.Field( - proto.INT64, number=265, + proto.INT64, + number=265, ) publisher_unknown_clicks: int = proto.Field( - proto.INT64, number=266, + proto.INT64, + number=266, ) all_conversions_from_location_asset_click_to_call: float = proto.Field( - proto.DOUBLE, number=267, optional=True, + proto.DOUBLE, + number=267, + optional=True, ) all_conversions_from_location_asset_directions: float = proto.Field( - proto.DOUBLE, number=268, optional=True, + proto.DOUBLE, + number=268, + optional=True, ) all_conversions_from_location_asset_menu: float = proto.Field( - proto.DOUBLE, number=269, optional=True, + proto.DOUBLE, + number=269, + optional=True, ) all_conversions_from_location_asset_order: float = proto.Field( - proto.DOUBLE, number=270, optional=True, + proto.DOUBLE, + number=270, + optional=True, ) all_conversions_from_location_asset_other_engagement: float = proto.Field( - proto.DOUBLE, number=271, optional=True, + proto.DOUBLE, + number=271, + optional=True, ) all_conversions_from_location_asset_store_visits: float = proto.Field( - proto.DOUBLE, number=272, optional=True, + proto.DOUBLE, + number=272, + optional=True, ) all_conversions_from_location_asset_website: float = proto.Field( - proto.DOUBLE, number=273, optional=True, + proto.DOUBLE, + number=273, + optional=True, ) eligible_impressions_from_location_asset_store_reach: int = proto.Field( - proto.INT64, number=274, optional=True, - ) - view_through_conversions_from_location_asset_click_to_call: float = proto.Field( - proto.DOUBLE, number=275, optional=True, - ) - view_through_conversions_from_location_asset_directions: float = proto.Field( - proto.DOUBLE, number=276, optional=True, + proto.INT64, + number=274, + optional=True, + ) + view_through_conversions_from_location_asset_click_to_call: float = ( + proto.Field( + proto.DOUBLE, + number=275, + optional=True, + ) + ) + view_through_conversions_from_location_asset_directions: float = ( + proto.Field( + proto.DOUBLE, + number=276, + optional=True, + ) ) view_through_conversions_from_location_asset_menu: float = proto.Field( - proto.DOUBLE, number=277, optional=True, + proto.DOUBLE, + number=277, + optional=True, ) view_through_conversions_from_location_asset_order: float = proto.Field( - proto.DOUBLE, number=278, optional=True, + proto.DOUBLE, + number=278, + optional=True, + ) + view_through_conversions_from_location_asset_other_engagement: float = ( + proto.Field( + proto.DOUBLE, + number=279, + optional=True, + ) + ) + view_through_conversions_from_location_asset_store_visits: float = ( + proto.Field( + proto.DOUBLE, + number=280, + optional=True, + ) ) - view_through_conversions_from_location_asset_other_engagement: float = proto.Field( - proto.DOUBLE, number=279, optional=True, + view_through_conversions_from_location_asset_website: float = proto.Field( + proto.DOUBLE, + number=281, + optional=True, ) - view_through_conversions_from_location_asset_store_visits: float = proto.Field( - proto.DOUBLE, number=280, optional=True, + + +class SearchVolumeRange(proto.Message): + r"""Search volume range. + Actual search volume falls within this range. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + min_ (int): + Lower bound of search volume. + + This field is a member of `oneof`_ ``_min``. + max_ (int): + Upper bound of search volume. + + This field is a member of `oneof`_ ``_max``. + """ + + min_: int = proto.Field( + proto.INT64, + number=1, + optional=True, ) - view_through_conversions_from_location_asset_website: float = proto.Field( - proto.DOUBLE, number=281, optional=True, + max_: int = proto.Field( + proto.INT64, + number=2, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/offline_user_data.py b/google/ads/googleads/v14/common/types/offline_user_data.py index dec5e545a..a179cba47 100644 --- a/google/ads/googleads/v14/common/types/offline_user_data.py +++ b/google/ads/googleads/v14/common/types/offline_user_data.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -93,25 +93,39 @@ class OfflineUserAddressInfo(proto.Message): """ hashed_first_name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) hashed_last_name: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) city: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) state: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) postal_code: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) hashed_street_address: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) @@ -171,16 +185,24 @@ class UserIdentifier(proto.Message): enum=gage_user_identifier_source.UserIdentifierSourceEnum.UserIdentifierSource, ) hashed_email: str = proto.Field( - proto.STRING, number=7, oneof="identifier", + proto.STRING, + number=7, + oneof="identifier", ) hashed_phone_number: str = proto.Field( - proto.STRING, number=8, oneof="identifier", + proto.STRING, + number=8, + oneof="identifier", ) mobile_id: str = proto.Field( - proto.STRING, number=9, oneof="identifier", + proto.STRING, + number=9, + oneof="identifier", ) third_party_user_id: str = proto.Field( - proto.STRING, number=10, oneof="identifier", + proto.STRING, + number=10, + oneof="identifier", ) address_info: "OfflineUserAddressInfo" = proto.Field( proto.MESSAGE, @@ -242,28 +264,44 @@ class TransactionAttribute(proto.Message): """ transaction_date_time: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) transaction_amount_micros: float = proto.Field( - proto.DOUBLE, number=9, optional=True, + proto.DOUBLE, + number=9, + optional=True, ) currency_code: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) conversion_action: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) order_id: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) store_attribute: "StoreAttribute" = proto.Field( - proto.MESSAGE, number=6, message="StoreAttribute", + proto.MESSAGE, + number=6, + message="StoreAttribute", ) custom_value: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) item_attribute: "ItemAttribute" = proto.Field( - proto.MESSAGE, number=14, message="ItemAttribute", + proto.MESSAGE, + number=14, + message="ItemAttribute", ) @@ -280,7 +318,9 @@ class StoreAttribute(proto.Message): """ store_code: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -312,19 +352,25 @@ class ItemAttribute(proto.Message): """ item_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) merchant_id: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) language_code: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) quantity: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) @@ -345,13 +391,19 @@ class UserData(proto.Message): """ user_identifiers: MutableSequence["UserIdentifier"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="UserIdentifier", + proto.MESSAGE, + number=1, + message="UserIdentifier", ) transaction_attribute: "TransactionAttribute" = proto.Field( - proto.MESSAGE, number=2, message="TransactionAttribute", + proto.MESSAGE, + number=2, + message="TransactionAttribute", ) user_attribute: "UserAttribute" = proto.Field( - proto.MESSAGE, number=3, message="UserAttribute", + proto.MESSAGE, + number=3, + message="UserAttribute", ) @@ -415,34 +467,49 @@ class UserAttribute(proto.Message): """ lifetime_value_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) lifetime_value_bucket: int = proto.Field( - proto.INT32, number=2, optional=True, + proto.INT32, + number=2, + optional=True, ) last_purchase_date_time: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) average_purchase_count: int = proto.Field( - proto.INT32, number=4, + proto.INT32, + number=4, ) average_purchase_value_micros: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) acquisition_date_time: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) shopping_loyalty: "ShoppingLoyalty" = proto.Field( - proto.MESSAGE, number=7, optional=True, message="ShoppingLoyalty", + proto.MESSAGE, + number=7, + optional=True, + message="ShoppingLoyalty", ) lifecycle_stage: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) first_purchase_date_time: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) event_attribute: MutableSequence["EventAttribute"] = proto.RepeatedField( - proto.MESSAGE, number=10, message="EventAttribute", + proto.MESSAGE, + number=10, + message="EventAttribute", ) @@ -465,13 +532,17 @@ class EventAttribute(proto.Message): """ event: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) event_date_time: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) item_attribute: MutableSequence["EventItemAttribute"] = proto.RepeatedField( - proto.MESSAGE, number=3, message="EventItemAttribute", + proto.MESSAGE, + number=3, + message="EventItemAttribute", ) @@ -485,7 +556,8 @@ class EventItemAttribute(proto.Message): """ item_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -508,7 +580,9 @@ class ShoppingLoyalty(proto.Message): """ loyalty_tier: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -525,7 +599,9 @@ class CustomerMatchUserListMetadata(proto.Message): """ user_list: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -566,16 +642,24 @@ class StoreSalesMetadata(proto.Message): """ loyalty_fraction: float = proto.Field( - proto.DOUBLE, number=5, optional=True, + proto.DOUBLE, + number=5, + optional=True, ) transaction_upload_fraction: float = proto.Field( - proto.DOUBLE, number=6, optional=True, + proto.DOUBLE, + number=6, + optional=True, ) custom_key: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) third_party_metadata: "StoreSalesThirdPartyMetadata" = proto.Field( - proto.MESSAGE, number=3, message="StoreSalesThirdPartyMetadata", + proto.MESSAGE, + number=3, + message="StoreSalesThirdPartyMetadata", ) @@ -632,22 +716,34 @@ class StoreSalesThirdPartyMetadata(proto.Message): """ advertiser_upload_date_time: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) valid_transaction_fraction: float = proto.Field( - proto.DOUBLE, number=8, optional=True, + proto.DOUBLE, + number=8, + optional=True, ) partner_match_fraction: float = proto.Field( - proto.DOUBLE, number=9, optional=True, + proto.DOUBLE, + number=9, + optional=True, ) partner_upload_fraction: float = proto.Field( - proto.DOUBLE, number=10, optional=True, + proto.DOUBLE, + number=10, + optional=True, ) bridge_map_version_id: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) partner_id: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/policy.py b/google/ads/googleads/v14/common/types/policy.py index 876a4866d..e01ffb666 100644 --- a/google/ads/googleads/v14/common/types/policy.py +++ b/google/ads/googleads/v14/common/types/policy.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,10 +67,14 @@ class PolicyViolationKey(proto.Message): """ policy_name: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) violating_text: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) @@ -101,12 +105,15 @@ class PolicyValidationParameter(proto.Message): """ ignorable_policy_topics: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=3, + proto.STRING, + number=3, ) exempt_policy_violation_keys: MutableSequence[ "PolicyViolationKey" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="PolicyViolationKey", + proto.MESSAGE, + number=2, + message="PolicyViolationKey", ) @@ -145,7 +152,9 @@ class PolicyTopicEntry(proto.Message): """ topic: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) type_: policy_topic_entry_type.PolicyTopicEntryTypeEnum.PolicyTopicEntryType = proto.Field( proto.ENUM, @@ -153,10 +162,14 @@ class PolicyTopicEntry(proto.Message): enum=policy_topic_entry_type.PolicyTopicEntryTypeEnum.PolicyTopicEntryType, ) evidences: MutableSequence["PolicyTopicEvidence"] = proto.RepeatedField( - proto.MESSAGE, number=3, message="PolicyTopicEvidence", + proto.MESSAGE, + number=3, + message="PolicyTopicEvidence", ) constraints: MutableSequence["PolicyTopicConstraint"] = proto.RepeatedField( - proto.MESSAGE, number=4, message="PolicyTopicConstraint", + proto.MESSAGE, + number=4, + message="PolicyTopicConstraint", ) @@ -212,7 +225,8 @@ class TextList(proto.Message): """ texts: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) class WebsiteList(proto.Message): @@ -227,7 +241,8 @@ class WebsiteList(proto.Message): """ websites: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) class DestinationTextList(proto.Message): @@ -241,7 +256,8 @@ class DestinationTextList(proto.Message): """ destination_texts: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) class DestinationMismatch(proto.Message): @@ -298,7 +314,9 @@ class DestinationNotWorking(proto.Message): """ expanded_url: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) device: policy_topic_evidence_destination_not_working_device.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice = proto.Field( proto.ENUM, @@ -306,7 +324,9 @@ class DestinationNotWorking(proto.Message): enum=policy_topic_evidence_destination_not_working_device.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice, ) last_checked_date_time: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) dns_error_type: policy_topic_evidence_destination_not_working_dns_error_type.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType = proto.Field( proto.ENUM, @@ -315,26 +335,45 @@ class DestinationNotWorking(proto.Message): enum=policy_topic_evidence_destination_not_working_dns_error_type.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType, ) http_error_code: int = proto.Field( - proto.INT64, number=6, oneof="reason", + proto.INT64, + number=6, + oneof="reason", ) website_list: WebsiteList = proto.Field( - proto.MESSAGE, number=3, oneof="value", message=WebsiteList, + proto.MESSAGE, + number=3, + oneof="value", + message=WebsiteList, ) text_list: TextList = proto.Field( - proto.MESSAGE, number=4, oneof="value", message=TextList, + proto.MESSAGE, + number=4, + oneof="value", + message=TextList, ) language_code: str = proto.Field( - proto.STRING, number=9, oneof="value", + proto.STRING, + number=9, + oneof="value", ) destination_text_list: DestinationTextList = proto.Field( - proto.MESSAGE, number=6, oneof="value", message=DestinationTextList, + proto.MESSAGE, + number=6, + oneof="value", + message=DestinationTextList, ) destination_mismatch: DestinationMismatch = proto.Field( - proto.MESSAGE, number=7, oneof="value", message=DestinationMismatch, + proto.MESSAGE, + number=7, + oneof="value", + message=DestinationMismatch, ) destination_not_working: DestinationNotWorking = proto.Field( - proto.MESSAGE, number=8, oneof="value", message=DestinationNotWorking, + proto.MESSAGE, + number=8, + oneof="value", + message=DestinationNotWorking, ) @@ -387,7 +426,9 @@ class CountryConstraintList(proto.Message): """ total_targeted_countries: int = proto.Field( - proto.INT32, number=3, optional=True, + proto.INT32, + number=3, + optional=True, ) countries: MutableSequence[ "PolicyTopicConstraint.CountryConstraint" @@ -418,20 +459,36 @@ class CountryConstraint(proto.Message): """ country_criterion: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) country_constraint_list: CountryConstraintList = proto.Field( - proto.MESSAGE, number=1, oneof="value", message=CountryConstraintList, + proto.MESSAGE, + number=1, + oneof="value", + message=CountryConstraintList, ) reseller_constraint: ResellerConstraint = proto.Field( - proto.MESSAGE, number=2, oneof="value", message=ResellerConstraint, + proto.MESSAGE, + number=2, + oneof="value", + message=ResellerConstraint, ) certificate_missing_in_country_list: CountryConstraintList = proto.Field( - proto.MESSAGE, number=3, oneof="value", message=CountryConstraintList, + proto.MESSAGE, + number=3, + oneof="value", + message=CountryConstraintList, ) - certificate_domain_mismatch_in_country_list: CountryConstraintList = proto.Field( - proto.MESSAGE, number=4, oneof="value", message=CountryConstraintList, + certificate_domain_mismatch_in_country_list: CountryConstraintList = ( + proto.Field( + proto.MESSAGE, + number=4, + oneof="value", + message=CountryConstraintList, + ) ) diff --git a/google/ads/googleads/v14/common/types/policy_summary.py b/google/ads/googleads/v14/common/types/policy_summary.py index e72334066..26e99832c 100644 --- a/google/ads/googleads/v14/common/types/policy_summary.py +++ b/google/ads/googleads/v14/common/types/policy_summary.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"PolicySummary",}, + manifest={ + "PolicySummary", + }, ) @@ -47,7 +49,9 @@ class PolicySummary(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=1, + message=policy.PolicyTopicEntry, ) review_status: policy_review_status.PolicyReviewStatusEnum.PolicyReviewStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/common/types/real_time_bidding_setting.py b/google/ads/googleads/v14/common/types/real_time_bidding_setting.py index 7fc1c4712..4fb92e7a9 100644 --- a/google/ads/googleads/v14/common/types/real_time_bidding_setting.py +++ b/google/ads/googleads/v14/common/types/real_time_bidding_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"RealTimeBiddingSetting",}, + manifest={ + "RealTimeBiddingSetting", + }, ) @@ -41,7 +43,9 @@ class RealTimeBiddingSetting(proto.Message): """ opt_in: bool = proto.Field( - proto.BOOL, number=2, optional=True, + proto.BOOL, + number=2, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/segments.py b/google/ads/googleads/v14/common/types/segments.py index 482174b82..6b49fa6ef 100644 --- a/google/ads/googleads/v14/common/types/segments.py +++ b/google/ads/googleads/v14/common/types/segments.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,6 +44,9 @@ from google.ads.googleads.v14.enums.types import ( conversion_value_rule_primary_dimension as gage_conversion_value_rule_primary_dimension, ) +from google.ads.googleads.v14.enums.types import ( + converting_user_prior_engagement_type_and_ltv_bucket, +) from google.ads.googleads.v14.enums.types import day_of_week as gage_day_of_week from google.ads.googleads.v14.enums.types import device as gage_device from google.ads.googleads.v14.enums.types import ( @@ -128,6 +131,14 @@ class Segments(proto.Message): Ad Destination type. ad_network_type (google.ads.googleads.v14.enums.types.AdNetworkTypeEnum.AdNetworkType): Ad network type. + ad_group (str): + Resource name of the ad group. + + This field is a member of `oneof`_ ``_ad_group``. + asset_group (str): + Resource name of the asset group. + + This field is a member of `oneof`_ ``_asset_group``. auction_insight_domain (str): Domain (visible URL) of a participant in the Auction Insights report. @@ -135,6 +146,10 @@ class Segments(proto.Message): This field is a member of `oneof`_ ``_auction_insight_domain``. budget_campaign_association_status (google.ads.googleads.v14.common.types.BudgetCampaignAssociationStatus): Budget campaign association status. + campaign (str): + Resource name of the campaign. + + This field is a member of `oneof`_ ``_campaign``. click_type (google.ads.googleads.v14.enums.types.ClickTypeEnum.ClickType): Click type. conversion_action (str): @@ -426,6 +441,16 @@ class Segments(proto.Message): Recommendation type. search_engine_results_page_type (google.ads.googleads.v14.enums.types.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType): Type of the search engine results page. + search_subcategory (str): + A search term subcategory. An empty string + denotes the catch-all subcategory for search + terms that didn't fit into another subcategory. + + This field is a member of `oneof`_ ``_search_subcategory``. + search_term (str): + A search term. + + This field is a member of `oneof`_ ``_search_term``. search_term_match_type (google.ads.googleads.v14.enums.types.SearchTermMatchTypeEnum.SearchTermMatchType): Match type of the keyword that triggered the ad, including variants. @@ -487,38 +512,76 @@ class Segments(proto.Message): parts of the served ad this asset is served with. This field is a member of `oneof`_ ``_asset_interaction_target``. + new_versus_returning_customers (google.ads.googleads.v14.enums.types.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucket): + This is for segmenting conversions by whether + the user is a new customer or a returning + customer. This segmentation is typically used to + measure the impact of customer acquisition goal. """ activity_account_id: int = proto.Field( - proto.INT64, number=148, optional=True, + proto.INT64, + number=148, + optional=True, ) activity_rating: int = proto.Field( - proto.INT64, number=149, optional=True, + proto.INT64, + number=149, + optional=True, ) external_activity_id: str = proto.Field( - proto.STRING, number=150, optional=True, + proto.STRING, + number=150, + optional=True, ) ad_destination_type: gage_ad_destination_type.AdDestinationTypeEnum.AdDestinationType = proto.Field( proto.ENUM, number=136, enum=gage_ad_destination_type.AdDestinationTypeEnum.AdDestinationType, ) - ad_network_type: gage_ad_network_type.AdNetworkTypeEnum.AdNetworkType = proto.Field( - proto.ENUM, - number=3, - enum=gage_ad_network_type.AdNetworkTypeEnum.AdNetworkType, + ad_network_type: gage_ad_network_type.AdNetworkTypeEnum.AdNetworkType = ( + proto.Field( + proto.ENUM, + number=3, + enum=gage_ad_network_type.AdNetworkTypeEnum.AdNetworkType, + ) + ) + ad_group: str = proto.Field( + proto.STRING, + number=158, + optional=True, + ) + asset_group: str = proto.Field( + proto.STRING, + number=159, + optional=True, ) auction_insight_domain: str = proto.Field( - proto.STRING, number=145, optional=True, + proto.STRING, + number=145, + optional=True, ) - budget_campaign_association_status: "BudgetCampaignAssociationStatus" = proto.Field( - proto.MESSAGE, number=134, message="BudgetCampaignAssociationStatus", + budget_campaign_association_status: "BudgetCampaignAssociationStatus" = ( + proto.Field( + proto.MESSAGE, + number=134, + message="BudgetCampaignAssociationStatus", + ) + ) + campaign: str = proto.Field( + proto.STRING, + number=157, + optional=True, ) click_type: gage_click_type.ClickTypeEnum.ClickType = proto.Field( - proto.ENUM, number=26, enum=gage_click_type.ClickTypeEnum.ClickType, + proto.ENUM, + number=26, + enum=gage_click_type.ClickTypeEnum.ClickType, ) conversion_action: str = proto.Field( - proto.STRING, number=113, optional=True, + proto.STRING, + number=113, + optional=True, ) conversion_action_category: gage_conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory = proto.Field( proto.ENUM, @@ -526,10 +589,14 @@ class Segments(proto.Message): enum=gage_conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory, ) conversion_action_name: str = proto.Field( - proto.STRING, number=114, optional=True, + proto.STRING, + number=114, + optional=True, ) conversion_adjustment: bool = proto.Field( - proto.BOOL, number=115, optional=True, + proto.BOOL, + number=115, + optional=True, ) conversion_attribution_event_type: gage_conversion_attribution_event_type.ConversionAttributionEventTypeEnum.ConversionAttributionEventType = proto.Field( proto.ENUM, @@ -547,13 +614,19 @@ class Segments(proto.Message): enum=gage_conversion_or_adjustment_lag_bucket.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket, ) date: str = proto.Field( - proto.STRING, number=79, optional=True, + proto.STRING, + number=79, + optional=True, ) day_of_week: gage_day_of_week.DayOfWeekEnum.DayOfWeek = proto.Field( - proto.ENUM, number=5, enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, + proto.ENUM, + number=5, + enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, ) device: gage_device.DeviceEnum.Device = proto.Field( - proto.ENUM, number=1, enum=gage_device.DeviceEnum.Device, + proto.ENUM, + number=1, + enum=gage_device.DeviceEnum.Device, ) external_conversion_source: gage_external_conversion_source.ExternalConversionSourceEnum.ExternalConversionSource = proto.Field( proto.ENUM, @@ -561,61 +634,101 @@ class Segments(proto.Message): enum=gage_external_conversion_source.ExternalConversionSourceEnum.ExternalConversionSource, ) geo_target_airport: str = proto.Field( - proto.STRING, number=116, optional=True, + proto.STRING, + number=116, + optional=True, ) geo_target_canton: str = proto.Field( - proto.STRING, number=117, optional=True, + proto.STRING, + number=117, + optional=True, ) geo_target_city: str = proto.Field( - proto.STRING, number=118, optional=True, + proto.STRING, + number=118, + optional=True, ) geo_target_country: str = proto.Field( - proto.STRING, number=119, optional=True, + proto.STRING, + number=119, + optional=True, ) geo_target_county: str = proto.Field( - proto.STRING, number=120, optional=True, + proto.STRING, + number=120, + optional=True, ) geo_target_district: str = proto.Field( - proto.STRING, number=121, optional=True, + proto.STRING, + number=121, + optional=True, ) geo_target_metro: str = proto.Field( - proto.STRING, number=122, optional=True, + proto.STRING, + number=122, + optional=True, ) geo_target_most_specific_location: str = proto.Field( - proto.STRING, number=123, optional=True, + proto.STRING, + number=123, + optional=True, ) geo_target_postal_code: str = proto.Field( - proto.STRING, number=124, optional=True, + proto.STRING, + number=124, + optional=True, ) geo_target_province: str = proto.Field( - proto.STRING, number=125, optional=True, + proto.STRING, + number=125, + optional=True, ) geo_target_region: str = proto.Field( - proto.STRING, number=126, optional=True, + proto.STRING, + number=126, + optional=True, ) geo_target_state: str = proto.Field( - proto.STRING, number=127, optional=True, + proto.STRING, + number=127, + optional=True, ) hotel_booking_window_days: int = proto.Field( - proto.INT64, number=135, optional=True, + proto.INT64, + number=135, + optional=True, ) hotel_center_id: int = proto.Field( - proto.INT64, number=80, optional=True, + proto.INT64, + number=80, + optional=True, ) hotel_check_in_date: str = proto.Field( - proto.STRING, number=81, optional=True, + proto.STRING, + number=81, + optional=True, ) - hotel_check_in_day_of_week: gage_day_of_week.DayOfWeekEnum.DayOfWeek = proto.Field( - proto.ENUM, number=9, enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, + hotel_check_in_day_of_week: gage_day_of_week.DayOfWeekEnum.DayOfWeek = ( + proto.Field( + proto.ENUM, + number=9, + enum=gage_day_of_week.DayOfWeekEnum.DayOfWeek, + ) ) hotel_city: str = proto.Field( - proto.STRING, number=82, optional=True, + proto.STRING, + number=82, + optional=True, ) hotel_class: int = proto.Field( - proto.INT32, number=83, optional=True, + proto.INT32, + number=83, + optional=True, ) hotel_country: str = proto.Field( - proto.STRING, number=84, optional=True, + proto.STRING, + number=84, + optional=True, ) hotel_date_selection_type: gage_hotel_date_selection_type.HotelDateSelectionTypeEnum.HotelDateSelectionType = proto.Field( proto.ENUM, @@ -623,15 +736,21 @@ class Segments(proto.Message): enum=gage_hotel_date_selection_type.HotelDateSelectionTypeEnum.HotelDateSelectionType, ) hotel_length_of_stay: int = proto.Field( - proto.INT32, number=85, optional=True, + proto.INT32, + number=85, + optional=True, ) hotel_rate_rule_id: str = proto.Field( - proto.STRING, number=86, optional=True, + proto.STRING, + number=86, + optional=True, ) - hotel_rate_type: gage_hotel_rate_type.HotelRateTypeEnum.HotelRateType = proto.Field( - proto.ENUM, - number=74, - enum=gage_hotel_rate_type.HotelRateTypeEnum.HotelRateType, + hotel_rate_type: gage_hotel_rate_type.HotelRateTypeEnum.HotelRateType = ( + proto.Field( + proto.ENUM, + number=74, + enum=gage_hotel_rate_type.HotelRateTypeEnum.HotelRateType, + ) ) hotel_price_bucket: gage_hotel_price_bucket.HotelPriceBucketEnum.HotelPriceBucket = proto.Field( proto.ENUM, @@ -639,19 +758,29 @@ class Segments(proto.Message): enum=gage_hotel_price_bucket.HotelPriceBucketEnum.HotelPriceBucket, ) hotel_state: str = proto.Field( - proto.STRING, number=87, optional=True, + proto.STRING, + number=87, + optional=True, ) hour: int = proto.Field( - proto.INT32, number=88, optional=True, + proto.INT32, + number=88, + optional=True, ) interaction_on_this_extension: bool = proto.Field( - proto.BOOL, number=89, optional=True, + proto.BOOL, + number=89, + optional=True, ) keyword: "Keyword" = proto.Field( - proto.MESSAGE, number=61, message="Keyword", + proto.MESSAGE, + number=61, + message="Keyword", ) month: str = proto.Field( - proto.STRING, number=90, optional=True, + proto.STRING, + number=90, + optional=True, ) month_of_year: gage_month_of_year.MonthOfYearEnum.MonthOfYear = proto.Field( proto.ENUM, @@ -659,7 +788,9 @@ class Segments(proto.Message): enum=gage_month_of_year.MonthOfYearEnum.MonthOfYear, ) partner_hotel_id: str = proto.Field( - proto.STRING, number=91, optional=True, + proto.STRING, + number=91, + optional=True, ) placeholder_type: gage_placeholder_type.PlaceholderTypeEnum.PlaceholderType = proto.Field( proto.ENUM, @@ -667,30 +798,46 @@ class Segments(proto.Message): enum=gage_placeholder_type.PlaceholderTypeEnum.PlaceholderType, ) product_aggregator_id: int = proto.Field( - proto.INT64, number=132, optional=True, + proto.INT64, + number=132, + optional=True, ) product_bidding_category_level1: str = proto.Field( - proto.STRING, number=92, optional=True, + proto.STRING, + number=92, + optional=True, ) product_bidding_category_level2: str = proto.Field( - proto.STRING, number=93, optional=True, + proto.STRING, + number=93, + optional=True, ) product_bidding_category_level3: str = proto.Field( - proto.STRING, number=94, optional=True, + proto.STRING, + number=94, + optional=True, ) product_bidding_category_level4: str = proto.Field( - proto.STRING, number=95, optional=True, + proto.STRING, + number=95, + optional=True, ) product_bidding_category_level5: str = proto.Field( - proto.STRING, number=96, optional=True, + proto.STRING, + number=96, + optional=True, ) product_brand: str = proto.Field( - proto.STRING, number=97, optional=True, + proto.STRING, + number=97, + optional=True, ) - product_channel: gage_product_channel.ProductChannelEnum.ProductChannel = proto.Field( - proto.ENUM, - number=30, - enum=gage_product_channel.ProductChannelEnum.ProductChannel, + product_channel: gage_product_channel.ProductChannelEnum.ProductChannel = ( + proto.Field( + proto.ENUM, + number=30, + enum=gage_product_channel.ProductChannelEnum.ProductChannel, + ) ) product_channel_exclusivity: gage_product_channel_exclusivity.ProductChannelExclusivityEnum.ProductChannelExclusivity = proto.Field( proto.ENUM, @@ -703,58 +850,94 @@ class Segments(proto.Message): enum=gage_product_condition.ProductConditionEnum.ProductCondition, ) product_country: str = proto.Field( - proto.STRING, number=98, optional=True, + proto.STRING, + number=98, + optional=True, ) product_custom_attribute0: str = proto.Field( - proto.STRING, number=99, optional=True, + proto.STRING, + number=99, + optional=True, ) product_custom_attribute1: str = proto.Field( - proto.STRING, number=100, optional=True, + proto.STRING, + number=100, + optional=True, ) product_custom_attribute2: str = proto.Field( - proto.STRING, number=101, optional=True, + proto.STRING, + number=101, + optional=True, ) product_custom_attribute3: str = proto.Field( - proto.STRING, number=102, optional=True, + proto.STRING, + number=102, + optional=True, ) product_custom_attribute4: str = proto.Field( - proto.STRING, number=103, optional=True, + proto.STRING, + number=103, + optional=True, ) product_feed_label: str = proto.Field( - proto.STRING, number=147, optional=True, + proto.STRING, + number=147, + optional=True, ) product_item_id: str = proto.Field( - proto.STRING, number=104, optional=True, + proto.STRING, + number=104, + optional=True, ) product_language: str = proto.Field( - proto.STRING, number=105, optional=True, + proto.STRING, + number=105, + optional=True, ) product_merchant_id: int = proto.Field( - proto.INT64, number=133, optional=True, + proto.INT64, + number=133, + optional=True, ) product_store_id: str = proto.Field( - proto.STRING, number=106, optional=True, + proto.STRING, + number=106, + optional=True, ) product_title: str = proto.Field( - proto.STRING, number=107, optional=True, + proto.STRING, + number=107, + optional=True, ) product_type_l1: str = proto.Field( - proto.STRING, number=108, optional=True, + proto.STRING, + number=108, + optional=True, ) product_type_l2: str = proto.Field( - proto.STRING, number=109, optional=True, + proto.STRING, + number=109, + optional=True, ) product_type_l3: str = proto.Field( - proto.STRING, number=110, optional=True, + proto.STRING, + number=110, + optional=True, ) product_type_l4: str = proto.Field( - proto.STRING, number=111, optional=True, + proto.STRING, + number=111, + optional=True, ) product_type_l5: str = proto.Field( - proto.STRING, number=112, optional=True, + proto.STRING, + number=112, + optional=True, ) quarter: str = proto.Field( - proto.STRING, number=128, optional=True, + proto.STRING, + number=128, + optional=True, ) recommendation_type: gage_recommendation_type.RecommendationTypeEnum.RecommendationType = proto.Field( proto.ENUM, @@ -766,13 +949,25 @@ class Segments(proto.Message): number=70, enum=gage_search_engine_results_page_type.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType, ) + search_subcategory: str = proto.Field( + proto.STRING, + number=155, + optional=True, + ) + search_term: str = proto.Field( + proto.STRING, + number=156, + optional=True, + ) search_term_match_type: gage_search_term_match_type.SearchTermMatchTypeEnum.SearchTermMatchType = proto.Field( proto.ENUM, number=22, enum=gage_search_term_match_type.SearchTermMatchTypeEnum.SearchTermMatchType, ) slot: gage_slot.SlotEnum.Slot = proto.Field( - proto.ENUM, number=23, enum=gage_slot.SlotEnum.Slot, + proto.ENUM, + number=23, + enum=gage_slot.SlotEnum.Slot, ) conversion_value_rule_primary_dimension: gage_conversion_value_rule_primary_dimension.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension = proto.Field( proto.ENUM, @@ -780,16 +975,24 @@ class Segments(proto.Message): enum=gage_conversion_value_rule_primary_dimension.ConversionValueRulePrimaryDimensionEnum.ConversionValueRulePrimaryDimension, ) webpage: str = proto.Field( - proto.STRING, number=129, optional=True, + proto.STRING, + number=129, + optional=True, ) week: str = proto.Field( - proto.STRING, number=130, optional=True, + proto.STRING, + number=130, + optional=True, ) year: int = proto.Field( - proto.INT32, number=131, optional=True, + proto.INT32, + number=131, + optional=True, ) sk_ad_network_conversion_value: int = proto.Field( - proto.INT64, number=137, optional=True, + proto.INT64, + number=137, + optional=True, ) sk_ad_network_user_type: gage_sk_ad_network_user_type.SkAdNetworkUserTypeEnum.SkAdNetworkUserType = proto.Field( proto.ENUM, @@ -818,6 +1021,11 @@ class Segments(proto.Message): optional=True, message="AssetInteractionTarget", ) + new_versus_returning_customers: converting_user_prior_engagement_type_and_ltv_bucket.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucket = proto.Field( + proto.ENUM, + number=160, + enum=converting_user_prior_engagement_type_and_ltv_bucket.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.ConvertingUserPriorEngagementTypeAndLtvBucket, + ) class Keyword(proto.Message): @@ -834,10 +1042,14 @@ class Keyword(proto.Message): """ ad_group_criterion: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) info: criteria.KeywordInfo = proto.Field( - proto.MESSAGE, number=2, message=criteria.KeywordInfo, + proto.MESSAGE, + number=2, + message=criteria.KeywordInfo, ) @@ -855,7 +1067,9 @@ class BudgetCampaignAssociationStatus(proto.Message): """ campaign: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) status: gage_budget_campaign_association_status.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus = proto.Field( proto.ENUM, @@ -877,10 +1091,12 @@ class AssetInteractionTarget(proto.Message): """ asset: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) interaction_on_this_asset: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -897,7 +1113,9 @@ class SkAdNetworkSourceApp(proto.Message): """ sk_ad_network_source_app_id: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/simulation.py b/google/ads/googleads/v14/common/types/simulation.py index 44aeca604..082be78df 100644 --- a/google/ads/googleads/v14/common/types/simulation.py +++ b/google/ads/googleads/v14/common/types/simulation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -51,7 +51,9 @@ class CpcBidSimulationPointList(proto.Message): """ points: MutableSequence["CpcBidSimulationPoint"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="CpcBidSimulationPoint", + proto.MESSAGE, + number=1, + message="CpcBidSimulationPoint", ) @@ -64,7 +66,9 @@ class CpvBidSimulationPointList(proto.Message): """ points: MutableSequence["CpvBidSimulationPoint"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="CpvBidSimulationPoint", + proto.MESSAGE, + number=1, + message="CpvBidSimulationPoint", ) @@ -79,7 +83,9 @@ class TargetCpaSimulationPointList(proto.Message): """ points: MutableSequence["TargetCpaSimulationPoint"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="TargetCpaSimulationPoint", + proto.MESSAGE, + number=1, + message="TargetCpaSimulationPoint", ) @@ -94,7 +100,9 @@ class TargetRoasSimulationPointList(proto.Message): """ points: MutableSequence["TargetRoasSimulationPoint"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="TargetRoasSimulationPoint", + proto.MESSAGE, + number=1, + message="TargetRoasSimulationPoint", ) @@ -111,7 +119,9 @@ class PercentCpcBidSimulationPointList(proto.Message): points: MutableSequence[ "PercentCpcBidSimulationPoint" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="PercentCpcBidSimulationPoint", + proto.MESSAGE, + number=1, + message="PercentCpcBidSimulationPoint", ) @@ -126,7 +136,9 @@ class BudgetSimulationPointList(proto.Message): """ points: MutableSequence["BudgetSimulationPoint"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="BudgetSimulationPoint", + proto.MESSAGE, + number=1, + message="BudgetSimulationPoint", ) @@ -143,7 +155,9 @@ class TargetImpressionShareSimulationPointList(proto.Message): points: MutableSequence[ "TargetImpressionShareSimulationPoint" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="TargetImpressionShareSimulationPoint", + proto.MESSAGE, + number=1, + message="TargetImpressionShareSimulationPoint", ) @@ -204,31 +218,48 @@ class CpcBidSimulationPoint(proto.Message): """ required_budget_amount_micros: int = proto.Field( - proto.INT64, number=17, + proto.INT64, + number=17, ) biddable_conversions: float = proto.Field( - proto.DOUBLE, number=9, optional=True, + proto.DOUBLE, + number=9, + optional=True, ) biddable_conversions_value: float = proto.Field( - proto.DOUBLE, number=10, optional=True, + proto.DOUBLE, + number=10, + optional=True, ) clicks: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) cost_micros: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) impressions: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, ) top_slot_impressions: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=15, oneof="cpc_simulation_key_value", + proto.INT64, + number=15, + oneof="cpc_simulation_key_value", ) cpc_bid_scaling_modifier: float = proto.Field( - proto.DOUBLE, number=16, oneof="cpc_simulation_key_value", + proto.DOUBLE, + number=16, + oneof="cpc_simulation_key_value", ) @@ -257,16 +288,24 @@ class CpvBidSimulationPoint(proto.Message): """ cpv_bid_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) cost_micros: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) impressions: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) views: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) @@ -331,37 +370,56 @@ class TargetCpaSimulationPoint(proto.Message): """ required_budget_amount_micros: int = proto.Field( - proto.INT64, number=19, + proto.INT64, + number=19, ) biddable_conversions: float = proto.Field( - proto.DOUBLE, number=9, optional=True, + proto.DOUBLE, + number=9, + optional=True, ) biddable_conversions_value: float = proto.Field( - proto.DOUBLE, number=10, optional=True, + proto.DOUBLE, + number=10, + optional=True, ) app_installs: float = proto.Field( - proto.DOUBLE, number=15, + proto.DOUBLE, + number=15, ) in_app_actions: float = proto.Field( - proto.DOUBLE, number=16, + proto.DOUBLE, + number=16, ) clicks: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) cost_micros: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) impressions: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, ) top_slot_impressions: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) target_cpa_micros: int = proto.Field( - proto.INT64, number=17, oneof="target_cpa_simulation_key_value", + proto.INT64, + number=17, + oneof="target_cpa_simulation_key_value", ) target_cpa_scaling_modifier: float = proto.Field( - proto.DOUBLE, number=18, oneof="target_cpa_simulation_key_value", + proto.DOUBLE, + number=18, + oneof="target_cpa_simulation_key_value", ) @@ -410,28 +468,43 @@ class TargetRoasSimulationPoint(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=8, optional=True, + proto.DOUBLE, + number=8, + optional=True, ) required_budget_amount_micros: int = proto.Field( - proto.INT64, number=15, + proto.INT64, + number=15, ) biddable_conversions: float = proto.Field( - proto.DOUBLE, number=9, optional=True, + proto.DOUBLE, + number=9, + optional=True, ) biddable_conversions_value: float = proto.Field( - proto.DOUBLE, number=10, optional=True, + proto.DOUBLE, + number=10, + optional=True, ) clicks: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) cost_micros: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) impressions: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, ) top_slot_impressions: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) @@ -477,25 +550,39 @@ class PercentCpcBidSimulationPoint(proto.Message): """ percent_cpc_bid_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) biddable_conversions: float = proto.Field( - proto.DOUBLE, number=2, optional=True, + proto.DOUBLE, + number=2, + optional=True, ) biddable_conversions_value: float = proto.Field( - proto.DOUBLE, number=3, optional=True, + proto.DOUBLE, + number=3, + optional=True, ) clicks: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) cost_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) impressions: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) top_slot_impressions: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) @@ -529,28 +616,36 @@ class BudgetSimulationPoint(proto.Message): """ budget_amount_micros: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) required_cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) biddable_conversions: float = proto.Field( - proto.DOUBLE, number=3, + proto.DOUBLE, + number=3, ) biddable_conversions_value: float = proto.Field( - proto.DOUBLE, number=4, + proto.DOUBLE, + number=4, ) clicks: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) cost_micros: int = proto.Field( - proto.INT64, number=6, + proto.INT64, + number=6, ) impressions: int = proto.Field( - proto.INT64, number=7, + proto.INT64, + number=7, ) top_slot_impressions: int = proto.Field( - proto.INT64, number=8, + proto.INT64, + number=8, ) @@ -597,34 +692,44 @@ class TargetImpressionShareSimulationPoint(proto.Message): """ target_impression_share_micros: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) required_cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) required_budget_amount_micros: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) biddable_conversions: float = proto.Field( - proto.DOUBLE, number=4, + proto.DOUBLE, + number=4, ) biddable_conversions_value: float = proto.Field( - proto.DOUBLE, number=5, + proto.DOUBLE, + number=5, ) clicks: int = proto.Field( - proto.INT64, number=6, + proto.INT64, + number=6, ) cost_micros: int = proto.Field( - proto.INT64, number=7, + proto.INT64, + number=7, ) impressions: int = proto.Field( - proto.INT64, number=8, + proto.INT64, + number=8, ) top_slot_impressions: int = proto.Field( - proto.INT64, number=9, + proto.INT64, + number=9, ) absolute_top_impressions: int = proto.Field( - proto.INT64, number=10, + proto.INT64, + number=10, ) diff --git a/google/ads/googleads/v14/common/types/tag_snippet.py b/google/ads/googleads/v14/common/types/tag_snippet.py index fde41f962..20595cbf2 100644 --- a/google/ads/googleads/v14/common/types/tag_snippet.py +++ b/google/ads/googleads/v14/common/types/tag_snippet.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"TagSnippet",}, + manifest={ + "TagSnippet", + }, ) @@ -55,10 +57,12 @@ class TagSnippet(proto.Message): This field is a member of `oneof`_ ``_event_snippet``. """ - type_: tracking_code_type.TrackingCodeTypeEnum.TrackingCodeType = proto.Field( - proto.ENUM, - number=1, - enum=tracking_code_type.TrackingCodeTypeEnum.TrackingCodeType, + type_: tracking_code_type.TrackingCodeTypeEnum.TrackingCodeType = ( + proto.Field( + proto.ENUM, + number=1, + enum=tracking_code_type.TrackingCodeTypeEnum.TrackingCodeType, + ) ) page_format: tracking_code_page_format.TrackingCodePageFormatEnum.TrackingCodePageFormat = proto.Field( proto.ENUM, @@ -66,10 +70,14 @@ class TagSnippet(proto.Message): enum=tracking_code_page_format.TrackingCodePageFormatEnum.TrackingCodePageFormat, ) global_site_tag: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) event_snippet: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/targeting_setting.py b/google/ads/googleads/v14/common/types/targeting_setting.py index 8cace85fc..7a423b89b 100644 --- a/google/ads/googleads/v14/common/types/targeting_setting.py +++ b/google/ads/googleads/v14/common/types/targeting_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,12 +57,16 @@ class TargetingSetting(proto.Message): target_restrictions: MutableSequence[ "TargetRestriction" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="TargetRestriction", + proto.MESSAGE, + number=1, + message="TargetRestriction", ) target_restriction_operations: MutableSequence[ "TargetRestrictionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="TargetRestrictionOperation", + proto.MESSAGE, + number=2, + message="TargetRestrictionOperation", ) @@ -93,7 +97,9 @@ class TargetRestriction(proto.Message): enum=gage_targeting_dimension.TargetingDimensionEnum.TargetingDimension, ) bid_only: bool = proto.Field( - proto.BOOL, number=3, optional=True, + proto.BOOL, + number=3, + optional=True, ) @@ -117,10 +123,14 @@ class Operator(proto.Enum): REMOVE = 3 operator: Operator = proto.Field( - proto.ENUM, number=1, enum=Operator, + proto.ENUM, + number=1, + enum=Operator, ) value: "TargetRestriction" = proto.Field( - proto.MESSAGE, number=2, message="TargetRestriction", + proto.MESSAGE, + number=2, + message="TargetRestriction", ) diff --git a/google/ads/googleads/v14/common/types/text_label.py b/google/ads/googleads/v14/common/types/text_label.py index 42374d0c2..a05d4525c 100644 --- a/google/ads/googleads/v14/common/types/text_label.py +++ b/google/ads/googleads/v14/common/types/text_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"TextLabel",}, + manifest={ + "TextLabel", + }, ) @@ -46,10 +48,14 @@ class TextLabel(proto.Message): """ background_color: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) description: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/url_collection.py b/google/ads/googleads/v14/common/types/url_collection.py index 5ddf83ddc..f24f31215 100644 --- a/google/ads/googleads/v14/common/types/url_collection.py +++ b/google/ads/googleads/v14/common/types/url_collection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"UrlCollection",}, + manifest={ + "UrlCollection", + }, ) @@ -48,16 +50,22 @@ class UrlCollection(proto.Message): """ url_collection_id: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=6, + proto.STRING, + number=6, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=7, + proto.STRING, + number=7, ) tracking_url_template: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) diff --git a/google/ads/googleads/v14/common/types/user_lists.py b/google/ads/googleads/v14/common/types/user_lists.py index 720c8036f..729627cec 100644 --- a/google/ads/googleads/v14/common/types/user_lists.py +++ b/google/ads/googleads/v14/common/types/user_lists.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -78,7 +78,9 @@ class SimilarUserListInfo(proto.Message): """ seed_user_list: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -116,7 +118,9 @@ class CrmBasedUserListInfo(proto.Message): """ app_id: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) upload_key_type: customer_match_upload_key_type.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType = proto.Field( proto.ENUM, @@ -150,15 +154,19 @@ class UserListRuleInfo(proto.Message): groups are grouped together based on rule_type. """ - rule_type: user_list_rule_type.UserListRuleTypeEnum.UserListRuleType = proto.Field( - proto.ENUM, - number=1, - enum=user_list_rule_type.UserListRuleTypeEnum.UserListRuleType, + rule_type: user_list_rule_type.UserListRuleTypeEnum.UserListRuleType = ( + proto.Field( + proto.ENUM, + number=1, + enum=user_list_rule_type.UserListRuleTypeEnum.UserListRuleType, + ) ) rule_item_groups: MutableSequence[ "UserListRuleItemGroupInfo" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="UserListRuleItemGroupInfo", + proto.MESSAGE, + number=2, + message="UserListRuleItemGroupInfo", ) @@ -170,7 +178,9 @@ class UserListRuleItemGroupInfo(proto.Message): """ rule_items: MutableSequence["UserListRuleItemInfo"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="UserListRuleItemInfo", + proto.MESSAGE, + number=1, + message="UserListRuleItemInfo", ) @@ -213,7 +223,9 @@ class UserListRuleItemInfo(proto.Message): """ name: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) number_rule_item: "UserListNumberRuleItemInfo" = proto.Field( proto.MESSAGE, @@ -266,10 +278,14 @@ class UserListDateRuleItemInfo(proto.Message): enum=user_list_date_rule_item_operator.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator, ) value: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) offset_in_days: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) @@ -296,7 +312,9 @@ class UserListNumberRuleItemInfo(proto.Message): enum=user_list_number_rule_item_operator.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator, ) value: float = proto.Field( - proto.DOUBLE, number=3, optional=True, + proto.DOUBLE, + number=3, + optional=True, ) @@ -326,7 +344,9 @@ class UserListStringRuleItemInfo(proto.Message): enum=user_list_string_rule_item_operator.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator, ) value: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) @@ -348,10 +368,14 @@ class FlexibleRuleOperandInfo(proto.Message): """ rule: "UserListRuleInfo" = proto.Field( - proto.MESSAGE, number=1, message="UserListRuleInfo", + proto.MESSAGE, + number=1, + message="UserListRuleInfo", ) lookback_window_days: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -387,12 +411,16 @@ class FlexibleRuleUserListInfo(proto.Message): inclusive_operands: MutableSequence[ "FlexibleRuleOperandInfo" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FlexibleRuleOperandInfo", + proto.MESSAGE, + number=2, + message="FlexibleRuleOperandInfo", ) exclusive_operands: MutableSequence[ "FlexibleRuleOperandInfo" ] = proto.RepeatedField( - proto.MESSAGE, number=3, message="FlexibleRuleOperandInfo", + proto.MESSAGE, + number=3, + message="FlexibleRuleOperandInfo", ) @@ -430,7 +458,9 @@ class RuleBasedUserListInfo(proto.Message): enum=user_list_prepopulation_status.UserListPrepopulationStatusEnum.UserListPrepopulationStatus, ) flexible_rule_user_list: "FlexibleRuleUserListInfo" = proto.Field( - proto.MESSAGE, number=5, message="FlexibleRuleUserListInfo", + proto.MESSAGE, + number=5, + message="FlexibleRuleUserListInfo", ) @@ -450,7 +480,9 @@ class LogicalUserListInfo(proto.Message): """ rules: MutableSequence["UserListLogicalRuleInfo"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="UserListLogicalRuleInfo", + proto.MESSAGE, + number=1, + message="UserListLogicalRuleInfo", ) @@ -473,7 +505,9 @@ class UserListLogicalRuleInfo(proto.Message): rule_operands: MutableSequence[ "LogicalUserListOperandInfo" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="LogicalUserListOperandInfo", + proto.MESSAGE, + number=2, + message="LogicalUserListOperandInfo", ) @@ -489,7 +523,9 @@ class LogicalUserListOperandInfo(proto.Message): """ user_list: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -503,7 +539,9 @@ class BasicUserListInfo(proto.Message): """ actions: MutableSequence["UserListActionInfo"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="UserListActionInfo", + proto.MESSAGE, + number=1, + message="UserListActionInfo", ) @@ -531,10 +569,14 @@ class UserListActionInfo(proto.Message): """ conversion_action: str = proto.Field( - proto.STRING, number=3, oneof="user_list_action", + proto.STRING, + number=3, + oneof="user_list_action", ) remarketing_action: str = proto.Field( - proto.STRING, number=4, oneof="user_list_action", + proto.STRING, + number=4, + oneof="user_list_action", ) diff --git a/google/ads/googleads/v14/common/types/value.py b/google/ads/googleads/v14/common/types/value.py index 4fa9f629b..fc35bd0f4 100644 --- a/google/ads/googleads/v14/common/types/value.py +++ b/google/ads/googleads/v14/common/types/value.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.common", marshal="google.ads.googleads.v14", - manifest={"Value",}, + manifest={ + "Value", + }, ) @@ -59,19 +61,29 @@ class Value(proto.Message): """ boolean_value: bool = proto.Field( - proto.BOOL, number=1, oneof="value", + proto.BOOL, + number=1, + oneof="value", ) int64_value: int = proto.Field( - proto.INT64, number=2, oneof="value", + proto.INT64, + number=2, + oneof="value", ) float_value: float = proto.Field( - proto.FLOAT, number=3, oneof="value", + proto.FLOAT, + number=3, + oneof="value", ) double_value: float = proto.Field( - proto.DOUBLE, number=4, oneof="value", + proto.DOUBLE, + number=4, + oneof="value", ) string_value: str = proto.Field( - proto.STRING, number=5, oneof="value", + proto.STRING, + number=5, + oneof="value", ) diff --git a/google/ads/googleads/v14/enums/__init__.py b/google/ads/googleads/v14/enums/__init__.py index 19a9122c0..4ae186cb0 100644 --- a/google/ads/googleads/v14/enums/__init__.py +++ b/google/ads/googleads/v14/enums/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ "AppStoreEnum", "AppUrlOperatingSystemTypeEnum", "AssetFieldTypeEnum", + "AssetGroupPrimaryStatusEnum", + "AssetGroupPrimaryStatusReasonEnum", "AssetGroupStatusEnum", "AssetLinkPrimaryStatusEnum", "AssetLinkPrimaryStatusReasonEnum", @@ -114,6 +116,7 @@ "ConversionValueRulePrimaryDimensionEnum", "ConversionValueRuleSetStatusEnum", "ConversionValueRuleStatusEnum", + "ConvertingUserPriorEngagementTypeAndLtvBucketEnum", "CriterionCategoryChannelAvailabilityModeEnum", "CriterionCategoryLocaleAvailabilityModeEnum", "CriterionSystemServingStatusEnum", diff --git a/google/ads/googleads/v14/enums/services/__init__.py b/google/ads/googleads/v14/enums/services/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/enums/services/__init__.py +++ b/google/ads/googleads/v14/enums/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/enums/types/__init__.py b/google/ads/googleads/v14/enums/types/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/enums/types/__init__.py +++ b/google/ads/googleads/v14/enums/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/enums/types/access_invitation_status.py b/google/ads/googleads/v14/enums/types/access_invitation_status.py index 6eb1272bf..b2b65cbc5 100644 --- a/google/ads/googleads/v14/enums/types/access_invitation_status.py +++ b/google/ads/googleads/v14/enums/types/access_invitation_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccessInvitationStatusEnum",}, + manifest={ + "AccessInvitationStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/access_reason.py b/google/ads/googleads/v14/enums/types/access_reason.py index c6bcefde3..11ebb4a3d 100644 --- a/google/ads/googleads/v14/enums/types/access_reason.py +++ b/google/ads/googleads/v14/enums/types/access_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccessReasonEnum",}, + manifest={ + "AccessReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/access_role.py b/google/ads/googleads/v14/enums/types/access_role.py index 857793972..2a8bdc10b 100644 --- a/google/ads/googleads/v14/enums/types/access_role.py +++ b/google/ads/googleads/v14/enums/types/access_role.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccessRoleEnum",}, + manifest={ + "AccessRoleEnum", + }, ) class AccessRoleEnum(proto.Message): - r"""Container for enum describing possible access role for user. - """ + r"""Container for enum describing possible access role for user.""" class AccessRole(proto.Enum): r"""Possible access role of a user.""" diff --git a/google/ads/googleads/v14/enums/types/account_budget_proposal_status.py b/google/ads/googleads/v14/enums/types/account_budget_proposal_status.py index 871014010..ac07997e7 100644 --- a/google/ads/googleads/v14/enums/types/account_budget_proposal_status.py +++ b/google/ads/googleads/v14/enums/types/account_budget_proposal_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccountBudgetProposalStatusEnum",}, + manifest={ + "AccountBudgetProposalStatusEnum", + }, ) class AccountBudgetProposalStatusEnum(proto.Message): - r"""Message describing AccountBudgetProposal statuses. - """ + r"""Message describing AccountBudgetProposal statuses.""" class AccountBudgetProposalStatus(proto.Enum): r"""The possible statuses of an AccountBudgetProposal.""" diff --git a/google/ads/googleads/v14/enums/types/account_budget_proposal_type.py b/google/ads/googleads/v14/enums/types/account_budget_proposal_type.py index e0002d85f..1cd691d90 100644 --- a/google/ads/googleads/v14/enums/types/account_budget_proposal_type.py +++ b/google/ads/googleads/v14/enums/types/account_budget_proposal_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccountBudgetProposalTypeEnum",}, + manifest={ + "AccountBudgetProposalTypeEnum", + }, ) class AccountBudgetProposalTypeEnum(proto.Message): - r"""Message describing AccountBudgetProposal types. - """ + r"""Message describing AccountBudgetProposal types.""" class AccountBudgetProposalType(proto.Enum): r"""The possible types of an AccountBudgetProposal.""" diff --git a/google/ads/googleads/v14/enums/types/account_budget_status.py b/google/ads/googleads/v14/enums/types/account_budget_status.py index ba3a92400..35125581c 100644 --- a/google/ads/googleads/v14/enums/types/account_budget_status.py +++ b/google/ads/googleads/v14/enums/types/account_budget_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccountBudgetStatusEnum",}, + manifest={ + "AccountBudgetStatusEnum", + }, ) class AccountBudgetStatusEnum(proto.Message): - r"""Message describing AccountBudget statuses. - """ + r"""Message describing AccountBudget statuses.""" class AccountBudgetStatus(proto.Enum): r"""The possible statuses of an AccountBudget.""" diff --git a/google/ads/googleads/v14/enums/types/account_link_status.py b/google/ads/googleads/v14/enums/types/account_link_status.py index 5c66e1d55..8f55e51a7 100644 --- a/google/ads/googleads/v14/enums/types/account_link_status.py +++ b/google/ads/googleads/v14/enums/types/account_link_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AccountLinkStatusEnum",}, + manifest={ + "AccountLinkStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/ad_customizer_placeholder_field.py b/google/ads/googleads/v14/enums/types/ad_customizer_placeholder_field.py index e18700f89..0b9bc98f0 100644 --- a/google/ads/googleads/v14/enums/types/ad_customizer_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/ad_customizer_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdCustomizerPlaceholderFieldEnum",}, + manifest={ + "AdCustomizerPlaceholderFieldEnum", + }, ) class AdCustomizerPlaceholderFieldEnum(proto.Message): - r"""Values for Ad Customizer placeholder fields. - """ + r"""Values for Ad Customizer placeholder fields.""" class AdCustomizerPlaceholderField(proto.Enum): r"""Possible values for Ad Customizers placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/ad_destination_type.py b/google/ads/googleads/v14/enums/types/ad_destination_type.py index ce7583a36..9c6a7acae 100644 --- a/google/ads/googleads/v14/enums/types/ad_destination_type.py +++ b/google/ads/googleads/v14/enums/types/ad_destination_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdDestinationTypeEnum",}, + manifest={ + "AdDestinationTypeEnum", + }, ) class AdDestinationTypeEnum(proto.Message): - r"""Container for enumeration of Google Ads destination types. - """ + r"""Container for enumeration of Google Ads destination types.""" class AdDestinationType(proto.Enum): r"""Enumerates Google Ads destination types""" diff --git a/google/ads/googleads/v14/enums/types/ad_group_ad_rotation_mode.py b/google/ads/googleads/v14/enums/types/ad_group_ad_rotation_mode.py index 427547e81..0e38f2185 100644 --- a/google/ads/googleads/v14/enums/types/ad_group_ad_rotation_mode.py +++ b/google/ads/googleads/v14/enums/types/ad_group_ad_rotation_mode.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdGroupAdRotationModeEnum",}, + manifest={ + "AdGroupAdRotationModeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/ad_group_ad_status.py b/google/ads/googleads/v14/enums/types/ad_group_ad_status.py index c124a744d..4507273f6 100644 --- a/google/ads/googleads/v14/enums/types/ad_group_ad_status.py +++ b/google/ads/googleads/v14/enums/types/ad_group_ad_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdGroupAdStatusEnum",}, + manifest={ + "AdGroupAdStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/ad_group_criterion_approval_status.py b/google/ads/googleads/v14/enums/types/ad_group_criterion_approval_status.py index 68ce5139a..d00894f91 100644 --- a/google/ads/googleads/v14/enums/types/ad_group_criterion_approval_status.py +++ b/google/ads/googleads/v14/enums/types/ad_group_criterion_approval_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionApprovalStatusEnum",}, + manifest={ + "AdGroupCriterionApprovalStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/ad_group_criterion_status.py b/google/ads/googleads/v14/enums/types/ad_group_criterion_status.py index 30b205c6b..3df81ef42 100644 --- a/google/ads/googleads/v14/enums/types/ad_group_criterion_status.py +++ b/google/ads/googleads/v14/enums/types/ad_group_criterion_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionStatusEnum",}, + manifest={ + "AdGroupCriterionStatusEnum", + }, ) class AdGroupCriterionStatusEnum(proto.Message): - r"""Message describing AdGroupCriterion statuses. - """ + r"""Message describing AdGroupCriterion statuses.""" class AdGroupCriterionStatus(proto.Enum): r"""The possible statuses of an AdGroupCriterion.""" diff --git a/google/ads/googleads/v14/enums/types/ad_group_status.py b/google/ads/googleads/v14/enums/types/ad_group_status.py index e17944fb1..771b1882f 100644 --- a/google/ads/googleads/v14/enums/types/ad_group_status.py +++ b/google/ads/googleads/v14/enums/types/ad_group_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdGroupStatusEnum",}, + manifest={ + "AdGroupStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/ad_group_type.py b/google/ads/googleads/v14/enums/types/ad_group_type.py index 7326ba196..1f5523050 100644 --- a/google/ads/googleads/v14/enums/types/ad_group_type.py +++ b/google/ads/googleads/v14/enums/types/ad_group_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdGroupTypeEnum",}, + manifest={ + "AdGroupTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/ad_network_type.py b/google/ads/googleads/v14/enums/types/ad_network_type.py index 44d715bda..ddbdc4c8e 100644 --- a/google/ads/googleads/v14/enums/types/ad_network_type.py +++ b/google/ads/googleads/v14/enums/types/ad_network_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdNetworkTypeEnum",}, + manifest={ + "AdNetworkTypeEnum", + }, ) class AdNetworkTypeEnum(proto.Message): - r"""Container for enumeration of Google Ads network types. - """ + r"""Container for enumeration of Google Ads network types.""" class AdNetworkType(proto.Enum): r"""Enumerates Google Ads network types.""" diff --git a/google/ads/googleads/v14/enums/types/ad_serving_optimization_status.py b/google/ads/googleads/v14/enums/types/ad_serving_optimization_status.py index 031337f88..f331dce32 100644 --- a/google/ads/googleads/v14/enums/types/ad_serving_optimization_status.py +++ b/google/ads/googleads/v14/enums/types/ad_serving_optimization_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdServingOptimizationStatusEnum",}, + manifest={ + "AdServingOptimizationStatusEnum", + }, ) class AdServingOptimizationStatusEnum(proto.Message): - r"""Possible ad serving statuses of a campaign. - """ + r"""Possible ad serving statuses of a campaign.""" class AdServingOptimizationStatus(proto.Enum): r"""Enum describing possible serving statuses.""" diff --git a/google/ads/googleads/v14/enums/types/ad_strength.py b/google/ads/googleads/v14/enums/types/ad_strength.py index b7d5e163c..bd5d396f7 100644 --- a/google/ads/googleads/v14/enums/types/ad_strength.py +++ b/google/ads/googleads/v14/enums/types/ad_strength.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdStrengthEnum",}, + manifest={ + "AdStrengthEnum", + }, ) class AdStrengthEnum(proto.Message): - r"""Container for enum describing possible ad strengths. - """ + r"""Container for enum describing possible ad strengths.""" class AdStrength(proto.Enum): r"""Enum listing the possible ad strengths.""" diff --git a/google/ads/googleads/v14/enums/types/ad_type.py b/google/ads/googleads/v14/enums/types/ad_type.py index 1e1d5b122..0692fdbd1 100644 --- a/google/ads/googleads/v14/enums/types/ad_type.py +++ b/google/ads/googleads/v14/enums/types/ad_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdTypeEnum",}, + manifest={ + "AdTypeEnum", + }, ) class AdTypeEnum(proto.Message): - r"""Container for enum describing possible types of an ad. - """ + r"""Container for enum describing possible types of an ad.""" class AdType(proto.Enum): r"""The possible types of an ad.""" @@ -64,6 +65,7 @@ class AdType(proto.Enum): DISCOVERY_MULTI_ASSET_AD = 35 DISCOVERY_CAROUSEL_AD = 36 TRAVEL_AD = 37 + DISCOVERY_VIDEO_RESPONSIVE_AD = 38 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/advertising_channel_sub_type.py b/google/ads/googleads/v14/enums/types/advertising_channel_sub_type.py index 24225c888..5070f0aaf 100644 --- a/google/ads/googleads/v14/enums/types/advertising_channel_sub_type.py +++ b/google/ads/googleads/v14/enums/types/advertising_channel_sub_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdvertisingChannelSubTypeEnum",}, + manifest={ + "AdvertisingChannelSubTypeEnum", + }, ) class AdvertisingChannelSubTypeEnum(proto.Message): - r"""An immutable specialization of an Advertising Channel. - """ + r"""An immutable specialization of an Advertising Channel.""" class AdvertisingChannelSubType(proto.Enum): r"""Enum describing the different channel subtypes.""" diff --git a/google/ads/googleads/v14/enums/types/advertising_channel_type.py b/google/ads/googleads/v14/enums/types/advertising_channel_type.py index 1a99649c4..5becd87cd 100644 --- a/google/ads/googleads/v14/enums/types/advertising_channel_type.py +++ b/google/ads/googleads/v14/enums/types/advertising_channel_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AdvertisingChannelTypeEnum",}, + manifest={ + "AdvertisingChannelTypeEnum", + }, ) class AdvertisingChannelTypeEnum(proto.Message): - r"""The channel type a campaign may target to serve on. - """ + r"""The channel type a campaign may target to serve on.""" class AdvertisingChannelType(proto.Enum): r"""Enum describing the various advertising channel types.""" diff --git a/google/ads/googleads/v14/enums/types/affiliate_location_feed_relationship_type.py b/google/ads/googleads/v14/enums/types/affiliate_location_feed_relationship_type.py index f8a01a59e..3ba1a2eb0 100644 --- a/google/ads/googleads/v14/enums/types/affiliate_location_feed_relationship_type.py +++ b/google/ads/googleads/v14/enums/types/affiliate_location_feed_relationship_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AffiliateLocationFeedRelationshipTypeEnum",}, + manifest={ + "AffiliateLocationFeedRelationshipTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/affiliate_location_placeholder_field.py b/google/ads/googleads/v14/enums/types/affiliate_location_placeholder_field.py index f33a6510a..24b5b13ce 100644 --- a/google/ads/googleads/v14/enums/types/affiliate_location_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/affiliate_location_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AffiliateLocationPlaceholderFieldEnum",}, + manifest={ + "AffiliateLocationPlaceholderFieldEnum", + }, ) class AffiliateLocationPlaceholderFieldEnum(proto.Message): - r"""Values for Affiliate Location placeholder fields. - """ + r"""Values for Affiliate Location placeholder fields.""" class AffiliateLocationPlaceholderField(proto.Enum): r"""Possible values for Affiliate Location placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/age_range_type.py b/google/ads/googleads/v14/enums/types/age_range_type.py index 74226a9d1..b80717faf 100644 --- a/google/ads/googleads/v14/enums/types/age_range_type.py +++ b/google/ads/googleads/v14/enums/types/age_range_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AgeRangeTypeEnum",}, + manifest={ + "AgeRangeTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/app_bidding_goal.py b/google/ads/googleads/v14/enums/types/app_bidding_goal.py index 6795344ed..6ce23069f 100644 --- a/google/ads/googleads/v14/enums/types/app_bidding_goal.py +++ b/google/ads/googleads/v14/enums/types/app_bidding_goal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppBiddingGoalEnum",}, + manifest={ + "AppBiddingGoalEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/app_campaign_app_store.py b/google/ads/googleads/v14/enums/types/app_campaign_app_store.py index d4116df16..351e3bb1a 100644 --- a/google/ads/googleads/v14/enums/types/app_campaign_app_store.py +++ b/google/ads/googleads/v14/enums/types/app_campaign_app_store.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppCampaignAppStoreEnum",}, + manifest={ + "AppCampaignAppStoreEnum", + }, ) class AppCampaignAppStoreEnum(proto.Message): - r"""The application store that distributes mobile applications. - """ + r"""The application store that distributes mobile applications.""" class AppCampaignAppStore(proto.Enum): r"""Enum describing app campaign app store.""" diff --git a/google/ads/googleads/v14/enums/types/app_campaign_bidding_strategy_goal_type.py b/google/ads/googleads/v14/enums/types/app_campaign_bidding_strategy_goal_type.py index f920da3d7..8fc9897ee 100644 --- a/google/ads/googleads/v14/enums/types/app_campaign_bidding_strategy_goal_type.py +++ b/google/ads/googleads/v14/enums/types/app_campaign_bidding_strategy_goal_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppCampaignBiddingStrategyGoalTypeEnum",}, + manifest={ + "AppCampaignBiddingStrategyGoalTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/app_payment_model_type.py b/google/ads/googleads/v14/enums/types/app_payment_model_type.py index cb79ad29d..3f0e2de6d 100644 --- a/google/ads/googleads/v14/enums/types/app_payment_model_type.py +++ b/google/ads/googleads/v14/enums/types/app_payment_model_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppPaymentModelTypeEnum",}, + manifest={ + "AppPaymentModelTypeEnum", + }, ) class AppPaymentModelTypeEnum(proto.Message): - r"""Represents a criterion for targeting paid apps. - """ + r"""Represents a criterion for targeting paid apps.""" class AppPaymentModelType(proto.Enum): r"""Enum describing possible app payment models.""" diff --git a/google/ads/googleads/v14/enums/types/app_placeholder_field.py b/google/ads/googleads/v14/enums/types/app_placeholder_field.py index 888bb2e23..01bc53add 100644 --- a/google/ads/googleads/v14/enums/types/app_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/app_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppPlaceholderFieldEnum",}, + manifest={ + "AppPlaceholderFieldEnum", + }, ) class AppPlaceholderFieldEnum(proto.Message): - r"""Values for App placeholder fields. - """ + r"""Values for App placeholder fields.""" class AppPlaceholderField(proto.Enum): r"""Possible values for App placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/app_store.py b/google/ads/googleads/v14/enums/types/app_store.py index 90afaf7cf..c2d9051a1 100644 --- a/google/ads/googleads/v14/enums/types/app_store.py +++ b/google/ads/googleads/v14/enums/types/app_store.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppStoreEnum",}, + manifest={ + "AppStoreEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/app_url_operating_system_type.py b/google/ads/googleads/v14/enums/types/app_url_operating_system_type.py index f4328c3d3..de3ad0def 100644 --- a/google/ads/googleads/v14/enums/types/app_url_operating_system_type.py +++ b/google/ads/googleads/v14/enums/types/app_url_operating_system_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AppUrlOperatingSystemTypeEnum",}, + manifest={ + "AppUrlOperatingSystemTypeEnum", + }, ) class AppUrlOperatingSystemTypeEnum(proto.Message): - r"""The possible OS types for a deeplink AppUrl. - """ + r"""The possible OS types for a deeplink AppUrl.""" class AppUrlOperatingSystemType(proto.Enum): r"""Operating System""" diff --git a/google/ads/googleads/v14/enums/types/asset_field_type.py b/google/ads/googleads/v14/enums/types/asset_field_type.py index aaee8eb81..314c568fd 100644 --- a/google/ads/googleads/v14/enums/types/asset_field_type.py +++ b/google/ads/googleads/v14/enums/types/asset_field_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetFieldTypeEnum",}, + manifest={ + "AssetFieldTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_group_primary_status.py b/google/ads/googleads/v14/enums/types/asset_group_primary_status.py new file mode 100644 index 000000000..c6b0607e1 --- /dev/null +++ b/google/ads/googleads/v14/enums/types/asset_group_primary_status.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 +# +# http://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. +# +from __future__ import annotations + + +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.ads.googleads.v14.enums", + marshal="google.ads.googleads.v14", + manifest={ + "AssetGroupPrimaryStatusEnum", + }, +) + + +class AssetGroupPrimaryStatusEnum(proto.Message): + r"""Container for enum describing possible asset group primary + status. + + """ + + class AssetGroupPrimaryStatus(proto.Enum): + r"""Enum describing the possible asset group primary status. + Provides insights into why an asset group is not serving or not + serving optimally. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ELIGIBLE = 2 + PAUSED = 3 + REMOVED = 4 + NOT_ELIGIBLE = 5 + LIMITED = 6 + PENDING = 7 + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/asset_group_primary_status_reason.py b/google/ads/googleads/v14/enums/types/asset_group_primary_status_reason.py new file mode 100644 index 000000000..a1642f5b7 --- /dev/null +++ b/google/ads/googleads/v14/enums/types/asset_group_primary_status_reason.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 +# +# http://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. +# +from __future__ import annotations + + +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.ads.googleads.v14.enums", + marshal="google.ads.googleads.v14", + manifest={ + "AssetGroupPrimaryStatusReasonEnum", + }, +) + + +class AssetGroupPrimaryStatusReasonEnum(proto.Message): + r"""Container for enum describing possible asset group primary + status reasons. + + """ + + class AssetGroupPrimaryStatusReason(proto.Enum): + r"""Enum describing the possible asset group primary status + reasons. Provides reasons into why an asset group is not serving + or not serving optimally. It will be empty when the asset group + is serving without issues. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ASSET_GROUP_PAUSED = 2 + ASSET_GROUP_REMOVED = 3 + CAMPAIGN_REMOVED = 4 + CAMPAIGN_PAUSED = 5 + CAMPAIGN_PENDING = 6 + CAMPAIGN_ENDED = 7 + ASSET_GROUP_LIMITED = 8 + ASSET_GROUP_DISAPPROVED = 9 + ASSET_GROUP_UNDER_REVIEW = 10 + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/asset_group_status.py b/google/ads/googleads/v14/enums/types/asset_group_status.py index db2f1f870..9ce1ea536 100644 --- a/google/ads/googleads/v14/enums/types/asset_group_status.py +++ b/google/ads/googleads/v14/enums/types/asset_group_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetGroupStatusEnum",}, + manifest={ + "AssetGroupStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_link_primary_status.py b/google/ads/googleads/v14/enums/types/asset_link_primary_status.py index ed893f9ce..eb601090a 100644 --- a/google/ads/googleads/v14/enums/types/asset_link_primary_status.py +++ b/google/ads/googleads/v14/enums/types/asset_link_primary_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetLinkPrimaryStatusEnum",}, + manifest={ + "AssetLinkPrimaryStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_link_primary_status_reason.py b/google/ads/googleads/v14/enums/types/asset_link_primary_status_reason.py index 10818a324..35b291650 100644 --- a/google/ads/googleads/v14/enums/types/asset_link_primary_status_reason.py +++ b/google/ads/googleads/v14/enums/types/asset_link_primary_status_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetLinkPrimaryStatusReasonEnum",}, + manifest={ + "AssetLinkPrimaryStatusReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_link_status.py b/google/ads/googleads/v14/enums/types/asset_link_status.py index f8ad9d5f5..99eab6fc9 100644 --- a/google/ads/googleads/v14/enums/types/asset_link_status.py +++ b/google/ads/googleads/v14/enums/types/asset_link_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetLinkStatusEnum",}, + manifest={ + "AssetLinkStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_offline_evaluation_error_reasons.py b/google/ads/googleads/v14/enums/types/asset_offline_evaluation_error_reasons.py index d06c95805..6035127fe 100644 --- a/google/ads/googleads/v14/enums/types/asset_offline_evaluation_error_reasons.py +++ b/google/ads/googleads/v14/enums/types/asset_offline_evaluation_error_reasons.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetOfflineEvaluationErrorReasonsEnum",}, + manifest={ + "AssetOfflineEvaluationErrorReasonsEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_performance_label.py b/google/ads/googleads/v14/enums/types/asset_performance_label.py index d5c1c6064..ece431e61 100644 --- a/google/ads/googleads/v14/enums/types/asset_performance_label.py +++ b/google/ads/googleads/v14/enums/types/asset_performance_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetPerformanceLabelEnum",}, + manifest={ + "AssetPerformanceLabelEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_set_asset_status.py b/google/ads/googleads/v14/enums/types/asset_set_asset_status.py index ea8496019..6b5909b5d 100644 --- a/google/ads/googleads/v14/enums/types/asset_set_asset_status.py +++ b/google/ads/googleads/v14/enums/types/asset_set_asset_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetSetAssetStatusEnum",}, + manifest={ + "AssetSetAssetStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_set_link_status.py b/google/ads/googleads/v14/enums/types/asset_set_link_status.py index efaa8bd36..5f4b2e4a7 100644 --- a/google/ads/googleads/v14/enums/types/asset_set_link_status.py +++ b/google/ads/googleads/v14/enums/types/asset_set_link_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetSetLinkStatusEnum",}, + manifest={ + "AssetSetLinkStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_set_status.py b/google/ads/googleads/v14/enums/types/asset_set_status.py index 2174a874f..8430cfa85 100644 --- a/google/ads/googleads/v14/enums/types/asset_set_status.py +++ b/google/ads/googleads/v14/enums/types/asset_set_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetSetStatusEnum",}, + manifest={ + "AssetSetStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_set_type.py b/google/ads/googleads/v14/enums/types/asset_set_type.py index 802201d48..c666b0b84 100644 --- a/google/ads/googleads/v14/enums/types/asset_set_type.py +++ b/google/ads/googleads/v14/enums/types/asset_set_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetSetTypeEnum",}, + manifest={ + "AssetSetTypeEnum", + }, ) class AssetSetTypeEnum(proto.Message): - r"""Container for enum describing possible types of an asset set. - """ + r"""Container for enum describing possible types of an asset set.""" class AssetSetType(proto.Enum): r"""Possible types of an asset set.""" diff --git a/google/ads/googleads/v14/enums/types/asset_source.py b/google/ads/googleads/v14/enums/types/asset_source.py index 3d03c1a31..c43a4a059 100644 --- a/google/ads/googleads/v14/enums/types/asset_source.py +++ b/google/ads/googleads/v14/enums/types/asset_source.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetSourceEnum",}, + manifest={ + "AssetSourceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/asset_type.py b/google/ads/googleads/v14/enums/types/asset_type.py index 05032d935..83e8db246 100644 --- a/google/ads/googleads/v14/enums/types/asset_type.py +++ b/google/ads/googleads/v14/enums/types/asset_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AssetTypeEnum",}, + manifest={ + "AssetTypeEnum", + }, ) class AssetTypeEnum(proto.Message): - r"""Container for enum describing the types of asset. - """ + r"""Container for enum describing the types of asset.""" class AssetType(proto.Enum): r"""Enum describing possible types of asset.""" diff --git a/google/ads/googleads/v14/enums/types/async_action_status.py b/google/ads/googleads/v14/enums/types/async_action_status.py index b969dce1a..bbf027c3d 100644 --- a/google/ads/googleads/v14/enums/types/async_action_status.py +++ b/google/ads/googleads/v14/enums/types/async_action_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AsyncActionStatusEnum",}, + manifest={ + "AsyncActionStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/attribution_model.py b/google/ads/googleads/v14/enums/types/attribution_model.py index f663333a6..a70b27a04 100644 --- a/google/ads/googleads/v14/enums/types/attribution_model.py +++ b/google/ads/googleads/v14/enums/types/attribution_model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AttributionModelEnum",}, + manifest={ + "AttributionModelEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/audience_insights_dimension.py b/google/ads/googleads/v14/enums/types/audience_insights_dimension.py index eddc715d4..e79d08675 100644 --- a/google/ads/googleads/v14/enums/types/audience_insights_dimension.py +++ b/google/ads/googleads/v14/enums/types/audience_insights_dimension.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AudienceInsightsDimensionEnum",}, + manifest={ + "AudienceInsightsDimensionEnum", + }, ) class AudienceInsightsDimensionEnum(proto.Message): - r"""Container for enum describing insights dimensions. - """ + r"""Container for enum describing insights dimensions.""" class AudienceInsightsDimension(proto.Enum): r"""Possible dimensions for use in generating insights.""" diff --git a/google/ads/googleads/v14/enums/types/audience_status.py b/google/ads/googleads/v14/enums/types/audience_status.py index 9f803d03b..f90942a72 100644 --- a/google/ads/googleads/v14/enums/types/audience_status.py +++ b/google/ads/googleads/v14/enums/types/audience_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"AudienceStatusEnum",}, + manifest={ + "AudienceStatusEnum", + }, ) class AudienceStatusEnum(proto.Message): - r"""The status of audience. - """ + r"""The status of audience.""" class AudienceStatus(proto.Enum): r"""Enum containing possible audience status types.""" diff --git a/google/ads/googleads/v14/enums/types/batch_job_status.py b/google/ads/googleads/v14/enums/types/batch_job_status.py index 90f7ef7b2..efa5e30ab 100644 --- a/google/ads/googleads/v14/enums/types/batch_job_status.py +++ b/google/ads/googleads/v14/enums/types/batch_job_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BatchJobStatusEnum",}, + manifest={ + "BatchJobStatusEnum", + }, ) class BatchJobStatusEnum(proto.Message): - r"""Container for enum describing possible batch job statuses. - """ + r"""Container for enum describing possible batch job statuses.""" class BatchJobStatus(proto.Enum): r"""The batch job statuses.""" diff --git a/google/ads/googleads/v14/enums/types/bid_modifier_source.py b/google/ads/googleads/v14/enums/types/bid_modifier_source.py index 64bfeffd9..3060a860b 100644 --- a/google/ads/googleads/v14/enums/types/bid_modifier_source.py +++ b/google/ads/googleads/v14/enums/types/bid_modifier_source.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BidModifierSourceEnum",}, + manifest={ + "BidModifierSourceEnum", + }, ) class BidModifierSourceEnum(proto.Message): - r"""Container for enum describing possible bid modifier sources. - """ + r"""Container for enum describing possible bid modifier sources.""" class BidModifierSource(proto.Enum): r"""Enum describing possible bid modifier sources.""" diff --git a/google/ads/googleads/v14/enums/types/bidding_source.py b/google/ads/googleads/v14/enums/types/bidding_source.py index 149aab06a..112efb63e 100644 --- a/google/ads/googleads/v14/enums/types/bidding_source.py +++ b/google/ads/googleads/v14/enums/types/bidding_source.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BiddingSourceEnum",}, + manifest={ + "BiddingSourceEnum", + }, ) class BiddingSourceEnum(proto.Message): - r"""Container for enum describing possible bidding sources. - """ + r"""Container for enum describing possible bidding sources.""" class BiddingSource(proto.Enum): r"""Indicates where a bid or target is defined. For example, an diff --git a/google/ads/googleads/v14/enums/types/bidding_strategy_status.py b/google/ads/googleads/v14/enums/types/bidding_strategy_status.py index 9ea6e959e..0982d69db 100644 --- a/google/ads/googleads/v14/enums/types/bidding_strategy_status.py +++ b/google/ads/googleads/v14/enums/types/bidding_strategy_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BiddingStrategyStatusEnum",}, + manifest={ + "BiddingStrategyStatusEnum", + }, ) class BiddingStrategyStatusEnum(proto.Message): - r"""Message describing BiddingStrategy statuses. - """ + r"""Message describing BiddingStrategy statuses.""" class BiddingStrategyStatus(proto.Enum): r"""The possible statuses of a BiddingStrategy.""" diff --git a/google/ads/googleads/v14/enums/types/bidding_strategy_system_status.py b/google/ads/googleads/v14/enums/types/bidding_strategy_system_status.py index f55024d6e..543e0a20b 100644 --- a/google/ads/googleads/v14/enums/types/bidding_strategy_system_status.py +++ b/google/ads/googleads/v14/enums/types/bidding_strategy_system_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BiddingStrategySystemStatusEnum",}, + manifest={ + "BiddingStrategySystemStatusEnum", + }, ) class BiddingStrategySystemStatusEnum(proto.Message): - r"""Message describing BiddingStrategy system statuses. - """ + r"""Message describing BiddingStrategy system statuses.""" class BiddingStrategySystemStatus(proto.Enum): r"""The possible system statuses of a BiddingStrategy.""" diff --git a/google/ads/googleads/v14/enums/types/bidding_strategy_type.py b/google/ads/googleads/v14/enums/types/bidding_strategy_type.py index d5fb656f7..4d75f0412 100644 --- a/google/ads/googleads/v14/enums/types/bidding_strategy_type.py +++ b/google/ads/googleads/v14/enums/types/bidding_strategy_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BiddingStrategyTypeEnum",}, + manifest={ + "BiddingStrategyTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/billing_setup_status.py b/google/ads/googleads/v14/enums/types/billing_setup_status.py index 504073ec1..9bb9823a1 100644 --- a/google/ads/googleads/v14/enums/types/billing_setup_status.py +++ b/google/ads/googleads/v14/enums/types/billing_setup_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BillingSetupStatusEnum",}, + manifest={ + "BillingSetupStatusEnum", + }, ) class BillingSetupStatusEnum(proto.Message): - r"""Message describing BillingSetup statuses. - """ + r"""Message describing BillingSetup statuses.""" class BillingSetupStatus(proto.Enum): r"""The possible statuses of a BillingSetup.""" diff --git a/google/ads/googleads/v14/enums/types/brand_safety_suitability.py b/google/ads/googleads/v14/enums/types/brand_safety_suitability.py index 33d1c7188..afeccbb79 100644 --- a/google/ads/googleads/v14/enums/types/brand_safety_suitability.py +++ b/google/ads/googleads/v14/enums/types/brand_safety_suitability.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BrandSafetySuitabilityEnum",}, + manifest={ + "BrandSafetySuitabilityEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/budget_campaign_association_status.py b/google/ads/googleads/v14/enums/types/budget_campaign_association_status.py index fa0bd273e..a8964e777 100644 --- a/google/ads/googleads/v14/enums/types/budget_campaign_association_status.py +++ b/google/ads/googleads/v14/enums/types/budget_campaign_association_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BudgetCampaignAssociationStatusEnum",}, + manifest={ + "BudgetCampaignAssociationStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/budget_delivery_method.py b/google/ads/googleads/v14/enums/types/budget_delivery_method.py index 1bd5d34e5..abb3f5444 100644 --- a/google/ads/googleads/v14/enums/types/budget_delivery_method.py +++ b/google/ads/googleads/v14/enums/types/budget_delivery_method.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BudgetDeliveryMethodEnum",}, + manifest={ + "BudgetDeliveryMethodEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/budget_period.py b/google/ads/googleads/v14/enums/types/budget_period.py index dfa87e23f..87f4cdeb3 100644 --- a/google/ads/googleads/v14/enums/types/budget_period.py +++ b/google/ads/googleads/v14/enums/types/budget_period.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BudgetPeriodEnum",}, + manifest={ + "BudgetPeriodEnum", + }, ) class BudgetPeriodEnum(proto.Message): - r"""Message describing Budget period. - """ + r"""Message describing Budget period.""" class BudgetPeriod(proto.Enum): r"""Possible period of a Budget.""" diff --git a/google/ads/googleads/v14/enums/types/budget_status.py b/google/ads/googleads/v14/enums/types/budget_status.py index ef904c87f..42dfc9951 100644 --- a/google/ads/googleads/v14/enums/types/budget_status.py +++ b/google/ads/googleads/v14/enums/types/budget_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BudgetStatusEnum",}, + manifest={ + "BudgetStatusEnum", + }, ) class BudgetStatusEnum(proto.Message): - r"""Message describing a Budget status - """ + r"""Message describing a Budget status""" class BudgetStatus(proto.Enum): r"""Possible statuses of a Budget.""" diff --git a/google/ads/googleads/v14/enums/types/budget_type.py b/google/ads/googleads/v14/enums/types/budget_type.py index 8e0c600f0..1c0d2f3ab 100644 --- a/google/ads/googleads/v14/enums/types/budget_type.py +++ b/google/ads/googleads/v14/enums/types/budget_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"BudgetTypeEnum",}, + manifest={ + "BudgetTypeEnum", + }, ) class BudgetTypeEnum(proto.Message): - r"""Describes Budget types. - """ + r"""Describes Budget types.""" class BudgetType(proto.Enum): r"""Possible Budget types.""" diff --git a/google/ads/googleads/v14/enums/types/call_conversion_reporting_state.py b/google/ads/googleads/v14/enums/types/call_conversion_reporting_state.py index f1e802d20..fe0ef14ae 100644 --- a/google/ads/googleads/v14/enums/types/call_conversion_reporting_state.py +++ b/google/ads/googleads/v14/enums/types/call_conversion_reporting_state.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CallConversionReportingStateEnum",}, + manifest={ + "CallConversionReportingStateEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/call_placeholder_field.py b/google/ads/googleads/v14/enums/types/call_placeholder_field.py index 11a19b745..565701937 100644 --- a/google/ads/googleads/v14/enums/types/call_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/call_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CallPlaceholderFieldEnum",}, + manifest={ + "CallPlaceholderFieldEnum", + }, ) class CallPlaceholderFieldEnum(proto.Message): - r"""Values for Call placeholder fields. - """ + r"""Values for Call placeholder fields.""" class CallPlaceholderField(proto.Enum): r"""Possible values for Call placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/call_to_action_type.py b/google/ads/googleads/v14/enums/types/call_to_action_type.py index 2800c51f4..d1b7363fa 100644 --- a/google/ads/googleads/v14/enums/types/call_to_action_type.py +++ b/google/ads/googleads/v14/enums/types/call_to_action_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CallToActionTypeEnum",}, + manifest={ + "CallToActionTypeEnum", + }, ) class CallToActionTypeEnum(proto.Message): - r"""Container for enum describing the call to action types. - """ + r"""Container for enum describing the call to action types.""" class CallToActionType(proto.Enum): r"""Enum describing possible types of call to action.""" @@ -43,6 +44,14 @@ class CallToActionType(proto.Enum): DOWNLOAD = 8 BOOK_NOW = 9 SHOP_NOW = 10 + BUY_NOW = 11 + DONATE_NOW = 12 + ORDER_NOW = 13 + PLAY_NOW = 14 + SEE_MORE = 15 + START_NOW = 16 + VISIT_SITE = 17 + WATCH_NOW = 18 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/call_tracking_display_location.py b/google/ads/googleads/v14/enums/types/call_tracking_display_location.py index c6d68458b..8da9d4cf8 100644 --- a/google/ads/googleads/v14/enums/types/call_tracking_display_location.py +++ b/google/ads/googleads/v14/enums/types/call_tracking_display_location.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CallTrackingDisplayLocationEnum",}, + manifest={ + "CallTrackingDisplayLocationEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/call_type.py b/google/ads/googleads/v14/enums/types/call_type.py index c27fbb1d1..30f1296e5 100644 --- a/google/ads/googleads/v14/enums/types/call_type.py +++ b/google/ads/googleads/v14/enums/types/call_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CallTypeEnum",}, + manifest={ + "CallTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/callout_placeholder_field.py b/google/ads/googleads/v14/enums/types/callout_placeholder_field.py index cb961ee3e..d145846ed 100644 --- a/google/ads/googleads/v14/enums/types/callout_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/callout_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CalloutPlaceholderFieldEnum",}, + manifest={ + "CalloutPlaceholderFieldEnum", + }, ) class CalloutPlaceholderFieldEnum(proto.Message): - r"""Values for Callout placeholder fields. - """ + r"""Values for Callout placeholder fields.""" class CalloutPlaceholderField(proto.Enum): r"""Possible values for Callout placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/campaign_criterion_status.py b/google/ads/googleads/v14/enums/types/campaign_criterion_status.py index c5f41645d..bd741d1ee 100644 --- a/google/ads/googleads/v14/enums/types/campaign_criterion_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_criterion_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignCriterionStatusEnum",}, + manifest={ + "CampaignCriterionStatusEnum", + }, ) class CampaignCriterionStatusEnum(proto.Message): - r"""Message describing CampaignCriterion statuses. - """ + r"""Message describing CampaignCriterion statuses.""" class CampaignCriterionStatus(proto.Enum): r"""The possible statuses of a CampaignCriterion.""" diff --git a/google/ads/googleads/v14/enums/types/campaign_draft_status.py b/google/ads/googleads/v14/enums/types/campaign_draft_status.py index c8dafaf60..2d681072c 100644 --- a/google/ads/googleads/v14/enums/types/campaign_draft_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_draft_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignDraftStatusEnum",}, + manifest={ + "CampaignDraftStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/campaign_experiment_type.py b/google/ads/googleads/v14/enums/types/campaign_experiment_type.py index edb3ae4da..ec2d6e147 100644 --- a/google/ads/googleads/v14/enums/types/campaign_experiment_type.py +++ b/google/ads/googleads/v14/enums/types/campaign_experiment_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignExperimentTypeEnum",}, + manifest={ + "CampaignExperimentTypeEnum", + }, ) class CampaignExperimentTypeEnum(proto.Message): - r"""Container for enum describing campaign experiment type. - """ + r"""Container for enum describing campaign experiment type.""" class CampaignExperimentType(proto.Enum): r"""Indicates if this campaign is a normal campaign, diff --git a/google/ads/googleads/v14/enums/types/campaign_group_status.py b/google/ads/googleads/v14/enums/types/campaign_group_status.py index cf79cb95a..50fd7e2d0 100644 --- a/google/ads/googleads/v14/enums/types/campaign_group_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_group_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignGroupStatusEnum",}, + manifest={ + "CampaignGroupStatusEnum", + }, ) class CampaignGroupStatusEnum(proto.Message): - r"""Message describing CampaignGroup statuses. - """ + r"""Message describing CampaignGroup statuses.""" class CampaignGroupStatus(proto.Enum): r"""Possible statuses of a CampaignGroup.""" diff --git a/google/ads/googleads/v14/enums/types/campaign_primary_status.py b/google/ads/googleads/v14/enums/types/campaign_primary_status.py index 694f15c17..b6f719106 100644 --- a/google/ads/googleads/v14/enums/types/campaign_primary_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_primary_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignPrimaryStatusEnum",}, + manifest={ + "CampaignPrimaryStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/campaign_primary_status_reason.py b/google/ads/googleads/v14/enums/types/campaign_primary_status_reason.py index 4c3740011..5ad06eb31 100644 --- a/google/ads/googleads/v14/enums/types/campaign_primary_status_reason.py +++ b/google/ads/googleads/v14/enums/types/campaign_primary_status_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignPrimaryStatusReasonEnum",}, + manifest={ + "CampaignPrimaryStatusReasonEnum", + }, ) @@ -72,6 +74,9 @@ class CampaignPrimaryStatusReason(proto.Enum): CAMPAIGN_GROUP_ALL_GROUP_BUDGETS_ENDED = 31 APP_NOT_RELEASED = 32 APP_PARTIALLY_RELEASED = 33 + HAS_ASSET_GROUPS_DISAPPROVED = 34 + HAS_ASSET_GROUPS_LIMITED_BY_POLICY = 35 + MOST_ASSET_GROUPS_UNDER_REVIEW = 36 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/campaign_serving_status.py b/google/ads/googleads/v14/enums/types/campaign_serving_status.py index fdf92bafc..147aadbba 100644 --- a/google/ads/googleads/v14/enums/types/campaign_serving_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_serving_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignServingStatusEnum",}, + manifest={ + "CampaignServingStatusEnum", + }, ) class CampaignServingStatusEnum(proto.Message): - r"""Message describing Campaign serving statuses. - """ + r"""Message describing Campaign serving statuses.""" class CampaignServingStatus(proto.Enum): r"""Possible serving statuses of a campaign.""" diff --git a/google/ads/googleads/v14/enums/types/campaign_shared_set_status.py b/google/ads/googleads/v14/enums/types/campaign_shared_set_status.py index 711a2d35d..d1e0bebeb 100644 --- a/google/ads/googleads/v14/enums/types/campaign_shared_set_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_shared_set_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignSharedSetStatusEnum",}, + manifest={ + "CampaignSharedSetStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/campaign_status.py b/google/ads/googleads/v14/enums/types/campaign_status.py index bdae0d33c..dc7517d90 100644 --- a/google/ads/googleads/v14/enums/types/campaign_status.py +++ b/google/ads/googleads/v14/enums/types/campaign_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CampaignStatusEnum",}, + manifest={ + "CampaignStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/chain_relationship_type.py b/google/ads/googleads/v14/enums/types/chain_relationship_type.py index 8c630e14e..2e84453d2 100644 --- a/google/ads/googleads/v14/enums/types/chain_relationship_type.py +++ b/google/ads/googleads/v14/enums/types/chain_relationship_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ChainRelationshipTypeEnum",}, + manifest={ + "ChainRelationshipTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/change_client_type.py b/google/ads/googleads/v14/enums/types/change_client_type.py index c530f4e6a..d07ac6749 100644 --- a/google/ads/googleads/v14/enums/types/change_client_type.py +++ b/google/ads/googleads/v14/enums/types/change_client_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ChangeClientTypeEnum",}, + manifest={ + "ChangeClientTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/change_event_resource_type.py b/google/ads/googleads/v14/enums/types/change_event_resource_type.py index f10b2029f..241e558cb 100644 --- a/google/ads/googleads/v14/enums/types/change_event_resource_type.py +++ b/google/ads/googleads/v14/enums/types/change_event_resource_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ChangeEventResourceTypeEnum",}, + manifest={ + "ChangeEventResourceTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/change_status_operation.py b/google/ads/googleads/v14/enums/types/change_status_operation.py index 8798035e0..ad924773a 100644 --- a/google/ads/googleads/v14/enums/types/change_status_operation.py +++ b/google/ads/googleads/v14/enums/types/change_status_operation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ChangeStatusOperationEnum",}, + manifest={ + "ChangeStatusOperationEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/change_status_resource_type.py b/google/ads/googleads/v14/enums/types/change_status_resource_type.py index 765b75db7..d336164d7 100644 --- a/google/ads/googleads/v14/enums/types/change_status_resource_type.py +++ b/google/ads/googleads/v14/enums/types/change_status_resource_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ChangeStatusResourceTypeEnum",}, + manifest={ + "ChangeStatusResourceTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/click_type.py b/google/ads/googleads/v14/enums/types/click_type.py index e7964ece4..4f49008f5 100644 --- a/google/ads/googleads/v14/enums/types/click_type.py +++ b/google/ads/googleads/v14/enums/types/click_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ClickTypeEnum",}, + manifest={ + "ClickTypeEnum", + }, ) class ClickTypeEnum(proto.Message): - r"""Container for enumeration of Google Ads click types. - """ + r"""Container for enumeration of Google Ads click types.""" class ClickType(proto.Enum): r"""Enumerates Google Ads click types.""" diff --git a/google/ads/googleads/v14/enums/types/combined_audience_status.py b/google/ads/googleads/v14/enums/types/combined_audience_status.py index c59d2a591..2bd2df2f4 100644 --- a/google/ads/googleads/v14/enums/types/combined_audience_status.py +++ b/google/ads/googleads/v14/enums/types/combined_audience_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CombinedAudienceStatusEnum",}, + manifest={ + "CombinedAudienceStatusEnum", + }, ) class CombinedAudienceStatusEnum(proto.Message): - r"""The status of combined audience. - """ + r"""The status of combined audience.""" class CombinedAudienceStatus(proto.Enum): r"""Enum containing possible combined audience status types.""" diff --git a/google/ads/googleads/v14/enums/types/content_label_type.py b/google/ads/googleads/v14/enums/types/content_label_type.py index cfa1ef1ed..fada586ae 100644 --- a/google/ads/googleads/v14/enums/types/content_label_type.py +++ b/google/ads/googleads/v14/enums/types/content_label_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ContentLabelTypeEnum",}, + manifest={ + "ContentLabelTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_action_category.py b/google/ads/googleads/v14/enums/types/conversion_action_category.py index d785665d4..0b7ce462c 100644 --- a/google/ads/googleads/v14/enums/types/conversion_action_category.py +++ b/google/ads/googleads/v14/enums/types/conversion_action_category.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionActionCategoryEnum",}, + manifest={ + "ConversionActionCategoryEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_action_counting_type.py b/google/ads/googleads/v14/enums/types/conversion_action_counting_type.py index f6877b10e..6ac4adeee 100644 --- a/google/ads/googleads/v14/enums/types/conversion_action_counting_type.py +++ b/google/ads/googleads/v14/enums/types/conversion_action_counting_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionActionCountingTypeEnum",}, + manifest={ + "ConversionActionCountingTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_action_status.py b/google/ads/googleads/v14/enums/types/conversion_action_status.py index 741961e74..f42a89e47 100644 --- a/google/ads/googleads/v14/enums/types/conversion_action_status.py +++ b/google/ads/googleads/v14/enums/types/conversion_action_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionActionStatusEnum",}, + manifest={ + "ConversionActionStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_action_type.py b/google/ads/googleads/v14/enums/types/conversion_action_type.py index 84f20740f..6f2326d37 100644 --- a/google/ads/googleads/v14/enums/types/conversion_action_type.py +++ b/google/ads/googleads/v14/enums/types/conversion_action_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionActionTypeEnum",}, + manifest={ + "ConversionActionTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_adjustment_type.py b/google/ads/googleads/v14/enums/types/conversion_adjustment_type.py index d9bbd21dd..06259abfa 100644 --- a/google/ads/googleads/v14/enums/types/conversion_adjustment_type.py +++ b/google/ads/googleads/v14/enums/types/conversion_adjustment_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionAdjustmentTypeEnum",}, + manifest={ + "ConversionAdjustmentTypeEnum", + }, ) class ConversionAdjustmentTypeEnum(proto.Message): - r"""Container for enum describing conversion adjustment types. - """ + r"""Container for enum describing conversion adjustment types.""" class ConversionAdjustmentType(proto.Enum): r"""The different actions advertisers can take to adjust the diff --git a/google/ads/googleads/v14/enums/types/conversion_attribution_event_type.py b/google/ads/googleads/v14/enums/types/conversion_attribution_event_type.py index 938aedd69..14782d29f 100644 --- a/google/ads/googleads/v14/enums/types/conversion_attribution_event_type.py +++ b/google/ads/googleads/v14/enums/types/conversion_attribution_event_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionAttributionEventTypeEnum",}, + manifest={ + "ConversionAttributionEventTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_custom_variable_status.py b/google/ads/googleads/v14/enums/types/conversion_custom_variable_status.py index 98032dade..02eaf9480 100644 --- a/google/ads/googleads/v14/enums/types/conversion_custom_variable_status.py +++ b/google/ads/googleads/v14/enums/types/conversion_custom_variable_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionCustomVariableStatusEnum",}, + manifest={ + "ConversionCustomVariableStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_environment_enum.py b/google/ads/googleads/v14/enums/types/conversion_environment_enum.py index d9931182e..09d4b4e39 100644 --- a/google/ads/googleads/v14/enums/types/conversion_environment_enum.py +++ b/google/ads/googleads/v14/enums/types/conversion_environment_enum.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionEnvironmentEnum",}, + manifest={ + "ConversionEnvironmentEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_lag_bucket.py b/google/ads/googleads/v14/enums/types/conversion_lag_bucket.py index 75987bca9..5a6bfd4da 100644 --- a/google/ads/googleads/v14/enums/types/conversion_lag_bucket.py +++ b/google/ads/googleads/v14/enums/types/conversion_lag_bucket.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionLagBucketEnum",}, + manifest={ + "ConversionLagBucketEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_or_adjustment_lag_bucket.py b/google/ads/googleads/v14/enums/types/conversion_or_adjustment_lag_bucket.py index 273ff5857..b3a1a03a6 100644 --- a/google/ads/googleads/v14/enums/types/conversion_or_adjustment_lag_bucket.py +++ b/google/ads/googleads/v14/enums/types/conversion_or_adjustment_lag_bucket.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionOrAdjustmentLagBucketEnum",}, + manifest={ + "ConversionOrAdjustmentLagBucketEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_origin.py b/google/ads/googleads/v14/enums/types/conversion_origin.py index 25495a4d3..53e345bb0 100644 --- a/google/ads/googleads/v14/enums/types/conversion_origin.py +++ b/google/ads/googleads/v14/enums/types/conversion_origin.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionOriginEnum",}, + manifest={ + "ConversionOriginEnum", + }, ) class ConversionOriginEnum(proto.Message): - r"""Container for enum describing possible conversion origins. - """ + r"""Container for enum describing possible conversion origins.""" class ConversionOrigin(proto.Enum): r"""The possible places where a conversion can occur.""" diff --git a/google/ads/googleads/v14/enums/types/conversion_tracking_status_enum.py b/google/ads/googleads/v14/enums/types/conversion_tracking_status_enum.py index be0ab149a..0a79d5ea9 100644 --- a/google/ads/googleads/v14/enums/types/conversion_tracking_status_enum.py +++ b/google/ads/googleads/v14/enums/types/conversion_tracking_status_enum.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionTrackingStatusEnum",}, + manifest={ + "ConversionTrackingStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_value_rule_primary_dimension.py b/google/ads/googleads/v14/enums/types/conversion_value_rule_primary_dimension.py index 955412095..bb3aed51b 100644 --- a/google/ads/googleads/v14/enums/types/conversion_value_rule_primary_dimension.py +++ b/google/ads/googleads/v14/enums/types/conversion_value_rule_primary_dimension.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRulePrimaryDimensionEnum",}, + manifest={ + "ConversionValueRulePrimaryDimensionEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_value_rule_set_status.py b/google/ads/googleads/v14/enums/types/conversion_value_rule_set_status.py index e1756b101..f85076875 100644 --- a/google/ads/googleads/v14/enums/types/conversion_value_rule_set_status.py +++ b/google/ads/googleads/v14/enums/types/conversion_value_rule_set_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRuleSetStatusEnum",}, + manifest={ + "ConversionValueRuleSetStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/conversion_value_rule_status.py b/google/ads/googleads/v14/enums/types/conversion_value_rule_status.py index ae1101e3c..850cf6f8f 100644 --- a/google/ads/googleads/v14/enums/types/conversion_value_rule_status.py +++ b/google/ads/googleads/v14/enums/types/conversion_value_rule_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRuleStatusEnum",}, + manifest={ + "ConversionValueRuleStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/converting_user_prior_engagement_type_and_ltv_bucket.py b/google/ads/googleads/v14/enums/types/converting_user_prior_engagement_type_and_ltv_bucket.py new file mode 100644 index 000000000..058babca5 --- /dev/null +++ b/google/ads/googleads/v14/enums/types/converting_user_prior_engagement_type_and_ltv_bucket.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 +# +# http://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. +# +from __future__ import annotations + + +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.ads.googleads.v14.enums", + marshal="google.ads.googleads.v14", + manifest={ + "ConvertingUserPriorEngagementTypeAndLtvBucketEnum", + }, +) + + +class ConvertingUserPriorEngagementTypeAndLtvBucketEnum(proto.Message): + r"""Container for enumeration of converting user prior engagement + types and lifetime-value bucket. + + """ + + class ConvertingUserPriorEngagementTypeAndLtvBucket(proto.Enum): + r"""Enumerates converting user prior engagement types and + lifetime-value bucket + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NEW = 2 + RETURNING = 3 + NEW_AND_HIGH_LTV = 4 + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/criterion_category_channel_availability_mode.py b/google/ads/googleads/v14/enums/types/criterion_category_channel_availability_mode.py index 555bcb9d5..bfe7787ad 100644 --- a/google/ads/googleads/v14/enums/types/criterion_category_channel_availability_mode.py +++ b/google/ads/googleads/v14/enums/types/criterion_category_channel_availability_mode.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CriterionCategoryChannelAvailabilityModeEnum",}, + manifest={ + "CriterionCategoryChannelAvailabilityModeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/criterion_category_locale_availability_mode.py b/google/ads/googleads/v14/enums/types/criterion_category_locale_availability_mode.py index 73640915a..644a09e7e 100644 --- a/google/ads/googleads/v14/enums/types/criterion_category_locale_availability_mode.py +++ b/google/ads/googleads/v14/enums/types/criterion_category_locale_availability_mode.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CriterionCategoryLocaleAvailabilityModeEnum",}, + manifest={ + "CriterionCategoryLocaleAvailabilityModeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/criterion_system_serving_status.py b/google/ads/googleads/v14/enums/types/criterion_system_serving_status.py index 85430af1f..96744f4b2 100644 --- a/google/ads/googleads/v14/enums/types/criterion_system_serving_status.py +++ b/google/ads/googleads/v14/enums/types/criterion_system_serving_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CriterionSystemServingStatusEnum",}, + manifest={ + "CriterionSystemServingStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/criterion_type.py b/google/ads/googleads/v14/enums/types/criterion_type.py index 7c90c05ad..2a5fd27db 100644 --- a/google/ads/googleads/v14/enums/types/criterion_type.py +++ b/google/ads/googleads/v14/enums/types/criterion_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CriterionTypeEnum",}, + manifest={ + "CriterionTypeEnum", + }, ) class CriterionTypeEnum(proto.Message): - r"""The possible types of a criterion. - """ + r"""The possible types of a criterion.""" class CriterionType(proto.Enum): r"""Enum describing possible criterion types.""" diff --git a/google/ads/googleads/v14/enums/types/custom_audience_member_type.py b/google/ads/googleads/v14/enums/types/custom_audience_member_type.py index 449d535d4..c7fe63708 100644 --- a/google/ads/googleads/v14/enums/types/custom_audience_member_type.py +++ b/google/ads/googleads/v14/enums/types/custom_audience_member_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomAudienceMemberTypeEnum",}, + manifest={ + "CustomAudienceMemberTypeEnum", + }, ) class CustomAudienceMemberTypeEnum(proto.Message): - r"""The type of custom audience member. - """ + r"""The type of custom audience member.""" class CustomAudienceMemberType(proto.Enum): r"""Enum containing possible custom audience member types.""" diff --git a/google/ads/googleads/v14/enums/types/custom_audience_status.py b/google/ads/googleads/v14/enums/types/custom_audience_status.py index 208dc3ee6..e451e0a51 100644 --- a/google/ads/googleads/v14/enums/types/custom_audience_status.py +++ b/google/ads/googleads/v14/enums/types/custom_audience_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomAudienceStatusEnum",}, + manifest={ + "CustomAudienceStatusEnum", + }, ) class CustomAudienceStatusEnum(proto.Message): - r"""The status of custom audience. - """ + r"""The status of custom audience.""" class CustomAudienceStatus(proto.Enum): r"""Enum containing possible custom audience statuses.""" diff --git a/google/ads/googleads/v14/enums/types/custom_audience_type.py b/google/ads/googleads/v14/enums/types/custom_audience_type.py index cc56fde93..e75691c97 100644 --- a/google/ads/googleads/v14/enums/types/custom_audience_type.py +++ b/google/ads/googleads/v14/enums/types/custom_audience_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomAudienceTypeEnum",}, + manifest={ + "CustomAudienceTypeEnum", + }, ) class CustomAudienceTypeEnum(proto.Message): - r"""The types of custom audience. - """ + r"""The types of custom audience.""" class CustomAudienceType(proto.Enum): r"""Enum containing possible custom audience types.""" diff --git a/google/ads/googleads/v14/enums/types/custom_conversion_goal_status.py b/google/ads/googleads/v14/enums/types/custom_conversion_goal_status.py index f3eceb531..fa273eb54 100644 --- a/google/ads/googleads/v14/enums/types/custom_conversion_goal_status.py +++ b/google/ads/googleads/v14/enums/types/custom_conversion_goal_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomConversionGoalStatusEnum",}, + manifest={ + "CustomConversionGoalStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/custom_interest_member_type.py b/google/ads/googleads/v14/enums/types/custom_interest_member_type.py index 7ed1940d7..2a7849288 100644 --- a/google/ads/googleads/v14/enums/types/custom_interest_member_type.py +++ b/google/ads/googleads/v14/enums/types/custom_interest_member_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomInterestMemberTypeEnum",}, + manifest={ + "CustomInterestMemberTypeEnum", + }, ) class CustomInterestMemberTypeEnum(proto.Message): - r"""The types of custom interest member, either KEYWORD or URL. - """ + r"""The types of custom interest member, either KEYWORD or URL.""" class CustomInterestMemberType(proto.Enum): r"""Enum containing possible custom interest member types.""" diff --git a/google/ads/googleads/v14/enums/types/custom_interest_status.py b/google/ads/googleads/v14/enums/types/custom_interest_status.py index f5a43cb42..d56e88e9f 100644 --- a/google/ads/googleads/v14/enums/types/custom_interest_status.py +++ b/google/ads/googleads/v14/enums/types/custom_interest_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomInterestStatusEnum",}, + manifest={ + "CustomInterestStatusEnum", + }, ) class CustomInterestStatusEnum(proto.Message): - r"""The status of custom interest. - """ + r"""The status of custom interest.""" class CustomInterestStatus(proto.Enum): r"""Enum containing possible custom interest types.""" diff --git a/google/ads/googleads/v14/enums/types/custom_interest_type.py b/google/ads/googleads/v14/enums/types/custom_interest_type.py index f7159476e..fc611f833 100644 --- a/google/ads/googleads/v14/enums/types/custom_interest_type.py +++ b/google/ads/googleads/v14/enums/types/custom_interest_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomInterestTypeEnum",}, + manifest={ + "CustomInterestTypeEnum", + }, ) class CustomInterestTypeEnum(proto.Message): - r"""The types of custom interest. - """ + r"""The types of custom interest.""" class CustomInterestType(proto.Enum): r"""Enum containing possible custom interest types.""" diff --git a/google/ads/googleads/v14/enums/types/custom_placeholder_field.py b/google/ads/googleads/v14/enums/types/custom_placeholder_field.py index 6670fe497..85a0854f5 100644 --- a/google/ads/googleads/v14/enums/types/custom_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/custom_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomPlaceholderFieldEnum",}, + manifest={ + "CustomPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/customer_match_upload_key_type.py b/google/ads/googleads/v14/enums/types/customer_match_upload_key_type.py index 7cf8a7237..9aa6f9b3b 100644 --- a/google/ads/googleads/v14/enums/types/customer_match_upload_key_type.py +++ b/google/ads/googleads/v14/enums/types/customer_match_upload_key_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomerMatchUploadKeyTypeEnum",}, + manifest={ + "CustomerMatchUploadKeyTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/customer_pay_per_conversion_eligibility_failure_reason.py b/google/ads/googleads/v14/enums/types/customer_pay_per_conversion_eligibility_failure_reason.py index fc2c7831b..2f9c9b14f 100644 --- a/google/ads/googleads/v14/enums/types/customer_pay_per_conversion_eligibility_failure_reason.py +++ b/google/ads/googleads/v14/enums/types/customer_pay_per_conversion_eligibility_failure_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomerPayPerConversionEligibilityFailureReasonEnum",}, + manifest={ + "CustomerPayPerConversionEligibilityFailureReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/customer_status.py b/google/ads/googleads/v14/enums/types/customer_status.py index e3e927450..0da10670d 100644 --- a/google/ads/googleads/v14/enums/types/customer_status.py +++ b/google/ads/googleads/v14/enums/types/customer_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomerStatusEnum",}, + manifest={ + "CustomerStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/customizer_attribute_status.py b/google/ads/googleads/v14/enums/types/customizer_attribute_status.py index 0cdeb53d7..cfcc8e7c8 100644 --- a/google/ads/googleads/v14/enums/types/customizer_attribute_status.py +++ b/google/ads/googleads/v14/enums/types/customizer_attribute_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomizerAttributeStatusEnum",}, + manifest={ + "CustomizerAttributeStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/customizer_attribute_type.py b/google/ads/googleads/v14/enums/types/customizer_attribute_type.py index e363bacd7..df7657280 100644 --- a/google/ads/googleads/v14/enums/types/customizer_attribute_type.py +++ b/google/ads/googleads/v14/enums/types/customizer_attribute_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomizerAttributeTypeEnum",}, + manifest={ + "CustomizerAttributeTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/customizer_value_status.py b/google/ads/googleads/v14/enums/types/customizer_value_status.py index 1273a07c0..883435354 100644 --- a/google/ads/googleads/v14/enums/types/customizer_value_status.py +++ b/google/ads/googleads/v14/enums/types/customizer_value_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"CustomizerValueStatusEnum",}, + manifest={ + "CustomizerValueStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/data_driven_model_status.py b/google/ads/googleads/v14/enums/types/data_driven_model_status.py index 7eee2fc79..566b8e419 100644 --- a/google/ads/googleads/v14/enums/types/data_driven_model_status.py +++ b/google/ads/googleads/v14/enums/types/data_driven_model_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DataDrivenModelStatusEnum",}, + manifest={ + "DataDrivenModelStatusEnum", + }, ) class DataDrivenModelStatusEnum(proto.Message): - r"""Container for enum indicating data driven model status. - """ + r"""Container for enum indicating data driven model status.""" class DataDrivenModelStatus(proto.Enum): r"""Enumerates data driven model statuses.""" diff --git a/google/ads/googleads/v14/enums/types/day_of_week.py b/google/ads/googleads/v14/enums/types/day_of_week.py index 00d23f53c..bc01793b3 100644 --- a/google/ads/googleads/v14/enums/types/day_of_week.py +++ b/google/ads/googleads/v14/enums/types/day_of_week.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DayOfWeekEnum",}, + manifest={ + "DayOfWeekEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/device.py b/google/ads/googleads/v14/enums/types/device.py index ef3c84d93..f9c803171 100644 --- a/google/ads/googleads/v14/enums/types/device.py +++ b/google/ads/googleads/v14/enums/types/device.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DeviceEnum",}, + manifest={ + "DeviceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/display_ad_format_setting.py b/google/ads/googleads/v14/enums/types/display_ad_format_setting.py index b305415e7..54d4a34f9 100644 --- a/google/ads/googleads/v14/enums/types/display_ad_format_setting.py +++ b/google/ads/googleads/v14/enums/types/display_ad_format_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DisplayAdFormatSettingEnum",}, + manifest={ + "DisplayAdFormatSettingEnum", + }, ) class DisplayAdFormatSettingEnum(proto.Message): - r"""Container for display ad format settings. - """ + r"""Container for display ad format settings.""" class DisplayAdFormatSetting(proto.Enum): r"""Enumerates display ad format settings.""" diff --git a/google/ads/googleads/v14/enums/types/display_upload_product_type.py b/google/ads/googleads/v14/enums/types/display_upload_product_type.py index 6a6c0f8f7..9f8c7f3e4 100644 --- a/google/ads/googleads/v14/enums/types/display_upload_product_type.py +++ b/google/ads/googleads/v14/enums/types/display_upload_product_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DisplayUploadProductTypeEnum",}, + manifest={ + "DisplayUploadProductTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/distance_bucket.py b/google/ads/googleads/v14/enums/types/distance_bucket.py index 66e7d5a3d..1af9e1c49 100644 --- a/google/ads/googleads/v14/enums/types/distance_bucket.py +++ b/google/ads/googleads/v14/enums/types/distance_bucket.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DistanceBucketEnum",}, + manifest={ + "DistanceBucketEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/dsa_page_feed_criterion_field.py b/google/ads/googleads/v14/enums/types/dsa_page_feed_criterion_field.py index 979be3f3b..a2110db65 100644 --- a/google/ads/googleads/v14/enums/types/dsa_page_feed_criterion_field.py +++ b/google/ads/googleads/v14/enums/types/dsa_page_feed_criterion_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"DsaPageFeedCriterionFieldEnum",}, + manifest={ + "DsaPageFeedCriterionFieldEnum", + }, ) class DsaPageFeedCriterionFieldEnum(proto.Message): - r"""Values for Dynamic Search Ad Page Feed criterion fields. - """ + r"""Values for Dynamic Search Ad Page Feed criterion fields.""" class DsaPageFeedCriterionField(proto.Enum): r"""Possible values for Dynamic Search Ad Page Feed criterion diff --git a/google/ads/googleads/v14/enums/types/education_placeholder_field.py b/google/ads/googleads/v14/enums/types/education_placeholder_field.py index f3d356c76..cda383638 100644 --- a/google/ads/googleads/v14/enums/types/education_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/education_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"EducationPlaceholderFieldEnum",}, + manifest={ + "EducationPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/experiment_metric.py b/google/ads/googleads/v14/enums/types/experiment_metric.py index 57e521e67..b2af0fe09 100644 --- a/google/ads/googleads/v14/enums/types/experiment_metric.py +++ b/google/ads/googleads/v14/enums/types/experiment_metric.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExperimentMetricEnum",}, + manifest={ + "ExperimentMetricEnum", + }, ) class ExperimentMetricEnum(proto.Message): - r"""Container for enum describing the type of experiment metric. - """ + r"""Container for enum describing the type of experiment metric.""" class ExperimentMetric(proto.Enum): r"""The type of experiment metric.""" diff --git a/google/ads/googleads/v14/enums/types/experiment_metric_direction.py b/google/ads/googleads/v14/enums/types/experiment_metric_direction.py index f1035e2d5..5b4140f97 100644 --- a/google/ads/googleads/v14/enums/types/experiment_metric_direction.py +++ b/google/ads/googleads/v14/enums/types/experiment_metric_direction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExperimentMetricDirectionEnum",}, + manifest={ + "ExperimentMetricDirectionEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/experiment_status.py b/google/ads/googleads/v14/enums/types/experiment_status.py index 6cd262e48..5da70e2f6 100644 --- a/google/ads/googleads/v14/enums/types/experiment_status.py +++ b/google/ads/googleads/v14/enums/types/experiment_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExperimentStatusEnum",}, + manifest={ + "ExperimentStatusEnum", + }, ) class ExperimentStatusEnum(proto.Message): - r"""Container for enum describing the experiment status. - """ + r"""Container for enum describing the experiment status.""" class ExperimentStatus(proto.Enum): r"""The status of the experiment.""" diff --git a/google/ads/googleads/v14/enums/types/experiment_type.py b/google/ads/googleads/v14/enums/types/experiment_type.py index f9cb2894d..63aab80e5 100644 --- a/google/ads/googleads/v14/enums/types/experiment_type.py +++ b/google/ads/googleads/v14/enums/types/experiment_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExperimentTypeEnum",}, + manifest={ + "ExperimentTypeEnum", + }, ) class ExperimentTypeEnum(proto.Message): - r"""Container for enum describing the type of experiment. - """ + r"""Container for enum describing the type of experiment.""" class ExperimentType(proto.Enum): r"""The type of the experiment.""" diff --git a/google/ads/googleads/v14/enums/types/extension_setting_device.py b/google/ads/googleads/v14/enums/types/extension_setting_device.py index ccdaf4e3c..591446acc 100644 --- a/google/ads/googleads/v14/enums/types/extension_setting_device.py +++ b/google/ads/googleads/v14/enums/types/extension_setting_device.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExtensionSettingDeviceEnum",}, + manifest={ + "ExtensionSettingDeviceEnum", + }, ) class ExtensionSettingDeviceEnum(proto.Message): - r"""Container for enum describing extension setting device types. - """ + r"""Container for enum describing extension setting device types.""" class ExtensionSettingDevice(proto.Enum): r"""Possible device types for an extension setting.""" diff --git a/google/ads/googleads/v14/enums/types/extension_type.py b/google/ads/googleads/v14/enums/types/extension_type.py index 9c634a057..0b6260ff9 100644 --- a/google/ads/googleads/v14/enums/types/extension_type.py +++ b/google/ads/googleads/v14/enums/types/extension_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExtensionTypeEnum",}, + manifest={ + "ExtensionTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/external_conversion_source.py b/google/ads/googleads/v14/enums/types/external_conversion_source.py index a02ed5d94..fff948c54 100644 --- a/google/ads/googleads/v14/enums/types/external_conversion_source.py +++ b/google/ads/googleads/v14/enums/types/external_conversion_source.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ExternalConversionSourceEnum",}, + manifest={ + "ExternalConversionSourceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_attribute_type.py b/google/ads/googleads/v14/enums/types/feed_attribute_type.py index 079d61f58..1168919f9 100644 --- a/google/ads/googleads/v14/enums/types/feed_attribute_type.py +++ b/google/ads/googleads/v14/enums/types/feed_attribute_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedAttributeTypeEnum",}, + manifest={ + "FeedAttributeTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_quality_approval_status.py b/google/ads/googleads/v14/enums/types/feed_item_quality_approval_status.py index ea064b3c3..a7b3eb8e0 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_quality_approval_status.py +++ b/google/ads/googleads/v14/enums/types/feed_item_quality_approval_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemQualityApprovalStatusEnum",}, + manifest={ + "FeedItemQualityApprovalStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_quality_disapproval_reason.py b/google/ads/googleads/v14/enums/types/feed_item_quality_disapproval_reason.py index b8807964c..84b2673b6 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_quality_disapproval_reason.py +++ b/google/ads/googleads/v14/enums/types/feed_item_quality_disapproval_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemQualityDisapprovalReasonEnum",}, + manifest={ + "FeedItemQualityDisapprovalReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_set_status.py b/google/ads/googleads/v14/enums/types/feed_item_set_status.py index c66755a3f..7b0d96271 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_set_status.py +++ b/google/ads/googleads/v14/enums/types/feed_item_set_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemSetStatusEnum",}, + manifest={ + "FeedItemSetStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_set_string_filter_type.py b/google/ads/googleads/v14/enums/types/feed_item_set_string_filter_type.py index c8c985fb4..87b4886cc 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_set_string_filter_type.py +++ b/google/ads/googleads/v14/enums/types/feed_item_set_string_filter_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemSetStringFilterTypeEnum",}, + manifest={ + "FeedItemSetStringFilterTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_status.py b/google/ads/googleads/v14/enums/types/feed_item_status.py index a02c1e4e1..ce29ac507 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_status.py +++ b/google/ads/googleads/v14/enums/types/feed_item_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemStatusEnum",}, + manifest={ + "FeedItemStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_target_device.py b/google/ads/googleads/v14/enums/types/feed_item_target_device.py index c89730a66..ebdaf7920 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_target_device.py +++ b/google/ads/googleads/v14/enums/types/feed_item_target_device.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemTargetDeviceEnum",}, + manifest={ + "FeedItemTargetDeviceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_target_status.py b/google/ads/googleads/v14/enums/types/feed_item_target_status.py index 46a227753..3268edb44 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_target_status.py +++ b/google/ads/googleads/v14/enums/types/feed_item_target_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemTargetStatusEnum",}, + manifest={ + "FeedItemTargetStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_target_type.py b/google/ads/googleads/v14/enums/types/feed_item_target_type.py index 9a334fcfb..e2f561413 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_target_type.py +++ b/google/ads/googleads/v14/enums/types/feed_item_target_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemTargetTypeEnum",}, + manifest={ + "FeedItemTargetTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_item_validation_status.py b/google/ads/googleads/v14/enums/types/feed_item_validation_status.py index 2a091e590..0feef5941 100644 --- a/google/ads/googleads/v14/enums/types/feed_item_validation_status.py +++ b/google/ads/googleads/v14/enums/types/feed_item_validation_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedItemValidationStatusEnum",}, + manifest={ + "FeedItemValidationStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_link_status.py b/google/ads/googleads/v14/enums/types/feed_link_status.py index 0801057ab..f797af9fb 100644 --- a/google/ads/googleads/v14/enums/types/feed_link_status.py +++ b/google/ads/googleads/v14/enums/types/feed_link_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedLinkStatusEnum",}, + manifest={ + "FeedLinkStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_mapping_criterion_type.py b/google/ads/googleads/v14/enums/types/feed_mapping_criterion_type.py index 0ab031520..455681c63 100644 --- a/google/ads/googleads/v14/enums/types/feed_mapping_criterion_type.py +++ b/google/ads/googleads/v14/enums/types/feed_mapping_criterion_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedMappingCriterionTypeEnum",}, + manifest={ + "FeedMappingCriterionTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_mapping_status.py b/google/ads/googleads/v14/enums/types/feed_mapping_status.py index a93233793..4a02b8ab0 100644 --- a/google/ads/googleads/v14/enums/types/feed_mapping_status.py +++ b/google/ads/googleads/v14/enums/types/feed_mapping_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedMappingStatusEnum",}, + manifest={ + "FeedMappingStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_origin.py b/google/ads/googleads/v14/enums/types/feed_origin.py index 21081a658..bb2cc73a7 100644 --- a/google/ads/googleads/v14/enums/types/feed_origin.py +++ b/google/ads/googleads/v14/enums/types/feed_origin.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedOriginEnum",}, + manifest={ + "FeedOriginEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/feed_status.py b/google/ads/googleads/v14/enums/types/feed_status.py index ba05eefe7..c97184e4e 100644 --- a/google/ads/googleads/v14/enums/types/feed_status.py +++ b/google/ads/googleads/v14/enums/types/feed_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FeedStatusEnum",}, + manifest={ + "FeedStatusEnum", + }, ) class FeedStatusEnum(proto.Message): - r"""Container for enum describing possible statuses of a feed. - """ + r"""Container for enum describing possible statuses of a feed.""" class FeedStatus(proto.Enum): r"""Possible statuses of a feed.""" diff --git a/google/ads/googleads/v14/enums/types/flight_placeholder_field.py b/google/ads/googleads/v14/enums/types/flight_placeholder_field.py index fdea70163..ceaa921a1 100644 --- a/google/ads/googleads/v14/enums/types/flight_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/flight_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FlightPlaceholderFieldEnum",}, + manifest={ + "FlightPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/frequency_cap_event_type.py b/google/ads/googleads/v14/enums/types/frequency_cap_event_type.py index c0e52e2c0..6f49c4580 100644 --- a/google/ads/googleads/v14/enums/types/frequency_cap_event_type.py +++ b/google/ads/googleads/v14/enums/types/frequency_cap_event_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FrequencyCapEventTypeEnum",}, + manifest={ + "FrequencyCapEventTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/frequency_cap_level.py b/google/ads/googleads/v14/enums/types/frequency_cap_level.py index f6cc661c0..d9ae0f3dd 100644 --- a/google/ads/googleads/v14/enums/types/frequency_cap_level.py +++ b/google/ads/googleads/v14/enums/types/frequency_cap_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FrequencyCapLevelEnum",}, + manifest={ + "FrequencyCapLevelEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/frequency_cap_time_unit.py b/google/ads/googleads/v14/enums/types/frequency_cap_time_unit.py index 4a098f17c..d281919df 100644 --- a/google/ads/googleads/v14/enums/types/frequency_cap_time_unit.py +++ b/google/ads/googleads/v14/enums/types/frequency_cap_time_unit.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"FrequencyCapTimeUnitEnum",}, + manifest={ + "FrequencyCapTimeUnitEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/gender_type.py b/google/ads/googleads/v14/enums/types/gender_type.py index 3b6bb50bf..bb02c84e7 100644 --- a/google/ads/googleads/v14/enums/types/gender_type.py +++ b/google/ads/googleads/v14/enums/types/gender_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GenderTypeEnum",}, + manifest={ + "GenderTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/geo_target_constant_status.py b/google/ads/googleads/v14/enums/types/geo_target_constant_status.py index 9ad981c54..e86e6fedc 100644 --- a/google/ads/googleads/v14/enums/types/geo_target_constant_status.py +++ b/google/ads/googleads/v14/enums/types/geo_target_constant_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GeoTargetConstantStatusEnum",}, + manifest={ + "GeoTargetConstantStatusEnum", + }, ) class GeoTargetConstantStatusEnum(proto.Message): - r"""Container for describing the status of a geo target constant. - """ + r"""Container for describing the status of a geo target constant.""" class GeoTargetConstantStatus(proto.Enum): r"""The possible statuses of a geo target constant.""" diff --git a/google/ads/googleads/v14/enums/types/geo_targeting_restriction.py b/google/ads/googleads/v14/enums/types/geo_targeting_restriction.py index 72e056442..2e9255445 100644 --- a/google/ads/googleads/v14/enums/types/geo_targeting_restriction.py +++ b/google/ads/googleads/v14/enums/types/geo_targeting_restriction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GeoTargetingRestrictionEnum",}, + manifest={ + "GeoTargetingRestrictionEnum", + }, ) class GeoTargetingRestrictionEnum(proto.Message): - r"""Message describing feed item geo targeting restriction. - """ + r"""Message describing feed item geo targeting restriction.""" class GeoTargetingRestriction(proto.Enum): r"""A restriction used to determine if the request context's diff --git a/google/ads/googleads/v14/enums/types/geo_targeting_type.py b/google/ads/googleads/v14/enums/types/geo_targeting_type.py index c82c64337..b92192cf0 100644 --- a/google/ads/googleads/v14/enums/types/geo_targeting_type.py +++ b/google/ads/googleads/v14/enums/types/geo_targeting_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GeoTargetingTypeEnum",}, + manifest={ + "GeoTargetingTypeEnum", + }, ) class GeoTargetingTypeEnum(proto.Message): - r"""Container for enum describing possible geo targeting types. - """ + r"""Container for enum describing possible geo targeting types.""" class GeoTargetingType(proto.Enum): r"""The possible geo targeting types.""" diff --git a/google/ads/googleads/v14/enums/types/goal_config_level.py b/google/ads/googleads/v14/enums/types/goal_config_level.py index f8e2b8d67..01524c803 100644 --- a/google/ads/googleads/v14/enums/types/goal_config_level.py +++ b/google/ads/googleads/v14/enums/types/goal_config_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GoalConfigLevelEnum",}, + manifest={ + "GoalConfigLevelEnum", + }, ) class GoalConfigLevelEnum(proto.Message): - r"""Container for enum describing possible goal config levels. - """ + r"""Container for enum describing possible goal config levels.""" class GoalConfigLevel(proto.Enum): r"""The possible goal config levels. Campaigns automatically diff --git a/google/ads/googleads/v14/enums/types/google_ads_field_category.py b/google/ads/googleads/v14/enums/types/google_ads_field_category.py index 37fdab7a3..16c10df36 100644 --- a/google/ads/googleads/v14/enums/types/google_ads_field_category.py +++ b/google/ads/googleads/v14/enums/types/google_ads_field_category.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GoogleAdsFieldCategoryEnum",}, + manifest={ + "GoogleAdsFieldCategoryEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/google_ads_field_data_type.py b/google/ads/googleads/v14/enums/types/google_ads_field_data_type.py index d4abc6c33..9ac52781c 100644 --- a/google/ads/googleads/v14/enums/types/google_ads_field_data_type.py +++ b/google/ads/googleads/v14/enums/types/google_ads_field_data_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GoogleAdsFieldDataTypeEnum",}, + manifest={ + "GoogleAdsFieldDataTypeEnum", + }, ) class GoogleAdsFieldDataTypeEnum(proto.Message): - r"""Container holding the various data types. - """ + r"""Container holding the various data types.""" class GoogleAdsFieldDataType(proto.Enum): r"""These are the various types a GoogleAdsService artifact may diff --git a/google/ads/googleads/v14/enums/types/google_voice_call_status.py b/google/ads/googleads/v14/enums/types/google_voice_call_status.py index 2e8a771b9..ebb9bf857 100644 --- a/google/ads/googleads/v14/enums/types/google_voice_call_status.py +++ b/google/ads/googleads/v14/enums/types/google_voice_call_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"GoogleVoiceCallStatusEnum",}, + manifest={ + "GoogleVoiceCallStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/hotel_asset_suggestion_status.py b/google/ads/googleads/v14/enums/types/hotel_asset_suggestion_status.py index c740db5c3..f68c9c640 100644 --- a/google/ads/googleads/v14/enums/types/hotel_asset_suggestion_status.py +++ b/google/ads/googleads/v14/enums/types/hotel_asset_suggestion_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"HotelAssetSuggestionStatusEnum",}, + manifest={ + "HotelAssetSuggestionStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/hotel_date_selection_type.py b/google/ads/googleads/v14/enums/types/hotel_date_selection_type.py index 6d33e63a7..ba5ca6740 100644 --- a/google/ads/googleads/v14/enums/types/hotel_date_selection_type.py +++ b/google/ads/googleads/v14/enums/types/hotel_date_selection_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"HotelDateSelectionTypeEnum",}, + manifest={ + "HotelDateSelectionTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/hotel_placeholder_field.py b/google/ads/googleads/v14/enums/types/hotel_placeholder_field.py index 56ee2590a..fc247e635 100644 --- a/google/ads/googleads/v14/enums/types/hotel_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/hotel_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"HotelPlaceholderFieldEnum",}, + manifest={ + "HotelPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/hotel_price_bucket.py b/google/ads/googleads/v14/enums/types/hotel_price_bucket.py index 637e3dc61..7ba4fe6fd 100644 --- a/google/ads/googleads/v14/enums/types/hotel_price_bucket.py +++ b/google/ads/googleads/v14/enums/types/hotel_price_bucket.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"HotelPriceBucketEnum",}, + manifest={ + "HotelPriceBucketEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/hotel_rate_type.py b/google/ads/googleads/v14/enums/types/hotel_rate_type.py index d2380f409..fda4dd88a 100644 --- a/google/ads/googleads/v14/enums/types/hotel_rate_type.py +++ b/google/ads/googleads/v14/enums/types/hotel_rate_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"HotelRateTypeEnum",}, + manifest={ + "HotelRateTypeEnum", + }, ) class HotelRateTypeEnum(proto.Message): - r"""Container for enum describing possible hotel rate types. - """ + r"""Container for enum describing possible hotel rate types.""" class HotelRateType(proto.Enum): r"""Enum describing possible hotel rate types.""" diff --git a/google/ads/googleads/v14/enums/types/hotel_reconciliation_status.py b/google/ads/googleads/v14/enums/types/hotel_reconciliation_status.py index fe71326b4..fa034b339 100644 --- a/google/ads/googleads/v14/enums/types/hotel_reconciliation_status.py +++ b/google/ads/googleads/v14/enums/types/hotel_reconciliation_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"HotelReconciliationStatusEnum",}, + manifest={ + "HotelReconciliationStatusEnum", + }, ) class HotelReconciliationStatusEnum(proto.Message): - r"""Container for HotelReconciliationStatus. - """ + r"""Container for HotelReconciliationStatus.""" class HotelReconciliationStatus(proto.Enum): r"""Status of the hotel booking reconciliation.""" diff --git a/google/ads/googleads/v14/enums/types/image_placeholder_field.py b/google/ads/googleads/v14/enums/types/image_placeholder_field.py index 038bfcbef..290cb4c38 100644 --- a/google/ads/googleads/v14/enums/types/image_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/image_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ImagePlaceholderFieldEnum",}, + manifest={ + "ImagePlaceholderFieldEnum", + }, ) class ImagePlaceholderFieldEnum(proto.Message): - r"""Values for Advertiser Provided Image placeholder fields. - """ + r"""Values for Advertiser Provided Image placeholder fields.""" class ImagePlaceholderField(proto.Enum): r"""Possible values for Advertiser Provided Image placeholder diff --git a/google/ads/googleads/v14/enums/types/income_range_type.py b/google/ads/googleads/v14/enums/types/income_range_type.py index 582fe0538..52bff92e5 100644 --- a/google/ads/googleads/v14/enums/types/income_range_type.py +++ b/google/ads/googleads/v14/enums/types/income_range_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"IncomeRangeTypeEnum",}, + manifest={ + "IncomeRangeTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/interaction_event_type.py b/google/ads/googleads/v14/enums/types/interaction_event_type.py index 150557b82..b4babcbdc 100644 --- a/google/ads/googleads/v14/enums/types/interaction_event_type.py +++ b/google/ads/googleads/v14/enums/types/interaction_event_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"InteractionEventTypeEnum",}, + manifest={ + "InteractionEventTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/interaction_type.py b/google/ads/googleads/v14/enums/types/interaction_type.py index 845a79541..c2902c408 100644 --- a/google/ads/googleads/v14/enums/types/interaction_type.py +++ b/google/ads/googleads/v14/enums/types/interaction_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"InteractionTypeEnum",}, + manifest={ + "InteractionTypeEnum", + }, ) class InteractionTypeEnum(proto.Message): - r"""Container for enum describing possible interaction types. - """ + r"""Container for enum describing possible interaction types.""" class InteractionType(proto.Enum): r"""Enum describing possible interaction types.""" diff --git a/google/ads/googleads/v14/enums/types/invoice_type.py b/google/ads/googleads/v14/enums/types/invoice_type.py index 46c538f81..dd0c6139c 100644 --- a/google/ads/googleads/v14/enums/types/invoice_type.py +++ b/google/ads/googleads/v14/enums/types/invoice_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"InvoiceTypeEnum",}, + manifest={ + "InvoiceTypeEnum", + }, ) class InvoiceTypeEnum(proto.Message): - r"""Container for enum describing the type of invoices. - """ + r"""Container for enum describing the type of invoices.""" class InvoiceType(proto.Enum): r"""The possible type of invoices.""" diff --git a/google/ads/googleads/v14/enums/types/job_placeholder_field.py b/google/ads/googleads/v14/enums/types/job_placeholder_field.py index 76b351792..c47249b5d 100644 --- a/google/ads/googleads/v14/enums/types/job_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/job_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"JobPlaceholderFieldEnum",}, + manifest={ + "JobPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/keyword_match_type.py b/google/ads/googleads/v14/enums/types/keyword_match_type.py index 72466d66c..74b1da920 100644 --- a/google/ads/googleads/v14/enums/types/keyword_match_type.py +++ b/google/ads/googleads/v14/enums/types/keyword_match_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordMatchTypeEnum",}, + manifest={ + "KeywordMatchTypeEnum", + }, ) class KeywordMatchTypeEnum(proto.Message): - r"""Message describing Keyword match types. - """ + r"""Message describing Keyword match types.""" class KeywordMatchType(proto.Enum): r"""Possible Keyword match types.""" diff --git a/google/ads/googleads/v14/enums/types/keyword_plan_aggregate_metric_type.py b/google/ads/googleads/v14/enums/types/keyword_plan_aggregate_metric_type.py index fcb21c5ab..890224e76 100644 --- a/google/ads/googleads/v14/enums/types/keyword_plan_aggregate_metric_type.py +++ b/google/ads/googleads/v14/enums/types/keyword_plan_aggregate_metric_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanAggregateMetricTypeEnum",}, + manifest={ + "KeywordPlanAggregateMetricTypeEnum", + }, ) class KeywordPlanAggregateMetricTypeEnum(proto.Message): - r"""The enumeration of keyword plan aggregate metric types. - """ + r"""The enumeration of keyword plan aggregate metric types.""" class KeywordPlanAggregateMetricType(proto.Enum): r"""Aggregate fields.""" diff --git a/google/ads/googleads/v14/enums/types/keyword_plan_competition_level.py b/google/ads/googleads/v14/enums/types/keyword_plan_competition_level.py index c48e41c71..a892d7b38 100644 --- a/google/ads/googleads/v14/enums/types/keyword_plan_competition_level.py +++ b/google/ads/googleads/v14/enums/types/keyword_plan_competition_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanCompetitionLevelEnum",}, + manifest={ + "KeywordPlanCompetitionLevelEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/keyword_plan_concept_group_type.py b/google/ads/googleads/v14/enums/types/keyword_plan_concept_group_type.py index 37d9496cf..f698d9bc4 100644 --- a/google/ads/googleads/v14/enums/types/keyword_plan_concept_group_type.py +++ b/google/ads/googleads/v14/enums/types/keyword_plan_concept_group_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanConceptGroupTypeEnum",}, + manifest={ + "KeywordPlanConceptGroupTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/keyword_plan_forecast_interval.py b/google/ads/googleads/v14/enums/types/keyword_plan_forecast_interval.py index 446092542..84c3876fa 100644 --- a/google/ads/googleads/v14/enums/types/keyword_plan_forecast_interval.py +++ b/google/ads/googleads/v14/enums/types/keyword_plan_forecast_interval.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanForecastIntervalEnum",}, + manifest={ + "KeywordPlanForecastIntervalEnum", + }, ) class KeywordPlanForecastIntervalEnum(proto.Message): - r"""Container for enumeration of forecast intervals. - """ + r"""Container for enumeration of forecast intervals.""" class KeywordPlanForecastInterval(proto.Enum): r"""Forecast intervals.""" diff --git a/google/ads/googleads/v14/enums/types/keyword_plan_keyword_annotation.py b/google/ads/googleads/v14/enums/types/keyword_plan_keyword_annotation.py index 889149277..570e0edcd 100644 --- a/google/ads/googleads/v14/enums/types/keyword_plan_keyword_annotation.py +++ b/google/ads/googleads/v14/enums/types/keyword_plan_keyword_annotation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanKeywordAnnotationEnum",}, + manifest={ + "KeywordPlanKeywordAnnotationEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/keyword_plan_network.py b/google/ads/googleads/v14/enums/types/keyword_plan_network.py index 97aece938..eafcefb4f 100644 --- a/google/ads/googleads/v14/enums/types/keyword_plan_network.py +++ b/google/ads/googleads/v14/enums/types/keyword_plan_network.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanNetworkEnum",}, + manifest={ + "KeywordPlanNetworkEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/label_status.py b/google/ads/googleads/v14/enums/types/label_status.py index 5768f5825..5dde6ea28 100644 --- a/google/ads/googleads/v14/enums/types/label_status.py +++ b/google/ads/googleads/v14/enums/types/label_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LabelStatusEnum",}, + manifest={ + "LabelStatusEnum", + }, ) class LabelStatusEnum(proto.Message): - r"""Container for enum describing possible status of a label. - """ + r"""Container for enum describing possible status of a label.""" class LabelStatus(proto.Enum): r"""Possible statuses of a label.""" diff --git a/google/ads/googleads/v14/enums/types/lead_form_call_to_action_type.py b/google/ads/googleads/v14/enums/types/lead_form_call_to_action_type.py index 857996a3c..775763fc1 100644 --- a/google/ads/googleads/v14/enums/types/lead_form_call_to_action_type.py +++ b/google/ads/googleads/v14/enums/types/lead_form_call_to_action_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LeadFormCallToActionTypeEnum",}, + manifest={ + "LeadFormCallToActionTypeEnum", + }, ) class LeadFormCallToActionTypeEnum(proto.Message): - r"""Describes the type of call-to-action phrases in a lead form. - """ + r"""Describes the type of call-to-action phrases in a lead form.""" class LeadFormCallToActionType(proto.Enum): r"""Enum describing the type of call-to-action phrases in a lead diff --git a/google/ads/googleads/v14/enums/types/lead_form_desired_intent.py b/google/ads/googleads/v14/enums/types/lead_form_desired_intent.py index 473ee1bd1..39a8ecb6a 100644 --- a/google/ads/googleads/v14/enums/types/lead_form_desired_intent.py +++ b/google/ads/googleads/v14/enums/types/lead_form_desired_intent.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LeadFormDesiredIntentEnum",}, + manifest={ + "LeadFormDesiredIntentEnum", + }, ) class LeadFormDesiredIntentEnum(proto.Message): - r"""Describes the chosen level of intent of generated leads. - """ + r"""Describes the chosen level of intent of generated leads.""" class LeadFormDesiredIntent(proto.Enum): r"""Enum describing the chosen level of intent of generated diff --git a/google/ads/googleads/v14/enums/types/lead_form_field_user_input_type.py b/google/ads/googleads/v14/enums/types/lead_form_field_user_input_type.py index 0b50a0515..db3ad47f8 100644 --- a/google/ads/googleads/v14/enums/types/lead_form_field_user_input_type.py +++ b/google/ads/googleads/v14/enums/types/lead_form_field_user_input_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LeadFormFieldUserInputTypeEnum",}, + manifest={ + "LeadFormFieldUserInputTypeEnum", + }, ) class LeadFormFieldUserInputTypeEnum(proto.Message): - r"""Describes the input type of a lead form field. - """ + r"""Describes the input type of a lead form field.""" class LeadFormFieldUserInputType(proto.Enum): r"""Enum describing the input type of a lead form field.""" diff --git a/google/ads/googleads/v14/enums/types/lead_form_post_submit_call_to_action_type.py b/google/ads/googleads/v14/enums/types/lead_form_post_submit_call_to_action_type.py index ce56c9db7..1c4339e13 100644 --- a/google/ads/googleads/v14/enums/types/lead_form_post_submit_call_to_action_type.py +++ b/google/ads/googleads/v14/enums/types/lead_form_post_submit_call_to_action_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LeadFormPostSubmitCallToActionTypeEnum",}, + manifest={ + "LeadFormPostSubmitCallToActionTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/legacy_app_install_ad_app_store.py b/google/ads/googleads/v14/enums/types/legacy_app_install_ad_app_store.py index d17cbed4c..2a7325dec 100644 --- a/google/ads/googleads/v14/enums/types/legacy_app_install_ad_app_store.py +++ b/google/ads/googleads/v14/enums/types/legacy_app_install_ad_app_store.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LegacyAppInstallAdAppStoreEnum",}, + manifest={ + "LegacyAppInstallAdAppStoreEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/linked_account_type.py b/google/ads/googleads/v14/enums/types/linked_account_type.py index 3dc070e4b..2145bab4c 100644 --- a/google/ads/googleads/v14/enums/types/linked_account_type.py +++ b/google/ads/googleads/v14/enums/types/linked_account_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LinkedAccountTypeEnum",}, + manifest={ + "LinkedAccountTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/linked_product_type.py b/google/ads/googleads/v14/enums/types/linked_product_type.py index fbd7fe19a..5e344cd9f 100644 --- a/google/ads/googleads/v14/enums/types/linked_product_type.py +++ b/google/ads/googleads/v14/enums/types/linked_product_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LinkedProductTypeEnum",}, + manifest={ + "LinkedProductTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_bidding_category_level.py b/google/ads/googleads/v14/enums/types/listing_group_filter_bidding_category_level.py index c21b68cd7..d1dc0b477 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_bidding_category_level.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_bidding_category_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterBiddingCategoryLevelEnum",}, + manifest={ + "ListingGroupFilterBiddingCategoryLevelEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_custom_attribute_index.py b/google/ads/googleads/v14/enums/types/listing_group_filter_custom_attribute_index.py index 8dff59a01..2c9d14303 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_custom_attribute_index.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_custom_attribute_index.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterCustomAttributeIndexEnum",}, + manifest={ + "ListingGroupFilterCustomAttributeIndexEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_product_channel.py b/google/ads/googleads/v14/enums/types/listing_group_filter_product_channel.py index ee4c172cb..4f87a549f 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_product_channel.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_product_channel.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterProductChannelEnum",}, + manifest={ + "ListingGroupFilterProductChannelEnum", + }, ) class ListingGroupFilterProductChannelEnum(proto.Message): - r"""Locality of a product offer. - """ + r"""Locality of a product offer.""" class ListingGroupFilterProductChannel(proto.Enum): r"""Enum describing the locality of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_product_condition.py b/google/ads/googleads/v14/enums/types/listing_group_filter_product_condition.py index f69ac6022..ea3916ee3 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_product_condition.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_product_condition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterProductConditionEnum",}, + manifest={ + "ListingGroupFilterProductConditionEnum", + }, ) class ListingGroupFilterProductConditionEnum(proto.Message): - r"""Condition of a product offer. - """ + r"""Condition of a product offer.""" class ListingGroupFilterProductCondition(proto.Enum): r"""Enum describing the condition of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_product_type_level.py b/google/ads/googleads/v14/enums/types/listing_group_filter_product_type_level.py index 565d9d982..b393786ca 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_product_type_level.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_product_type_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterProductTypeLevelEnum",}, + manifest={ + "ListingGroupFilterProductTypeLevelEnum", + }, ) class ListingGroupFilterProductTypeLevelEnum(proto.Message): - r"""Level of the type of a product offer. - """ + r"""Level of the type of a product offer.""" class ListingGroupFilterProductTypeLevel(proto.Enum): r"""Enum describing the level of the type of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_type_enum.py b/google/ads/googleads/v14/enums/types/listing_group_filter_type_enum.py index c81f48be5..8cc79ac2c 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_type_enum.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_type_enum.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterTypeEnum",}, + manifest={ + "ListingGroupFilterTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/listing_group_filter_vertical.py b/google/ads/googleads/v14/enums/types/listing_group_filter_vertical.py index 6fcf0d5e1..c2173fbe5 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_filter_vertical.py +++ b/google/ads/googleads/v14/enums/types/listing_group_filter_vertical.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupFilterVerticalEnum",}, + manifest={ + "ListingGroupFilterVerticalEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/listing_group_type.py b/google/ads/googleads/v14/enums/types/listing_group_type.py index 1bbee9037..0cd19a29f 100644 --- a/google/ads/googleads/v14/enums/types/listing_group_type.py +++ b/google/ads/googleads/v14/enums/types/listing_group_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingGroupTypeEnum",}, + manifest={ + "ListingGroupTypeEnum", + }, ) class ListingGroupTypeEnum(proto.Message): - r"""Container for enum describing the type of the listing group. - """ + r"""Container for enum describing the type of the listing group.""" class ListingGroupType(proto.Enum): r"""The type of the listing group.""" diff --git a/google/ads/googleads/v14/enums/types/listing_type.py b/google/ads/googleads/v14/enums/types/listing_type.py index 5cb94c098..78df5a2b3 100644 --- a/google/ads/googleads/v14/enums/types/listing_type.py +++ b/google/ads/googleads/v14/enums/types/listing_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ListingTypeEnum",}, + manifest={ + "ListingTypeEnum", + }, ) class ListingTypeEnum(proto.Message): - r"""Container for enum describing possible listing types. - """ + r"""Container for enum describing possible listing types.""" class ListingType(proto.Enum): r"""Possible listing types.""" diff --git a/google/ads/googleads/v14/enums/types/local_placeholder_field.py b/google/ads/googleads/v14/enums/types/local_placeholder_field.py index 3d001291c..9cbdacf3e 100644 --- a/google/ads/googleads/v14/enums/types/local_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/local_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocalPlaceholderFieldEnum",}, + manifest={ + "LocalPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/location_extension_targeting_criterion_field.py b/google/ads/googleads/v14/enums/types/location_extension_targeting_criterion_field.py index 578e005ad..adb605fc9 100644 --- a/google/ads/googleads/v14/enums/types/location_extension_targeting_criterion_field.py +++ b/google/ads/googleads/v14/enums/types/location_extension_targeting_criterion_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocationExtensionTargetingCriterionFieldEnum",}, + manifest={ + "LocationExtensionTargetingCriterionFieldEnum", + }, ) class LocationExtensionTargetingCriterionFieldEnum(proto.Message): - r"""Values for Location Extension Targeting criterion fields. - """ + r"""Values for Location Extension Targeting criterion fields.""" class LocationExtensionTargetingCriterionField(proto.Enum): r"""Possible values for Location Extension Targeting criterion diff --git a/google/ads/googleads/v14/enums/types/location_group_radius_units.py b/google/ads/googleads/v14/enums/types/location_group_radius_units.py index 780b72178..f0ed2c5ac 100644 --- a/google/ads/googleads/v14/enums/types/location_group_radius_units.py +++ b/google/ads/googleads/v14/enums/types/location_group_radius_units.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocationGroupRadiusUnitsEnum",}, + manifest={ + "LocationGroupRadiusUnitsEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/location_ownership_type.py b/google/ads/googleads/v14/enums/types/location_ownership_type.py index ab344e857..560b25dd5 100644 --- a/google/ads/googleads/v14/enums/types/location_ownership_type.py +++ b/google/ads/googleads/v14/enums/types/location_ownership_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocationOwnershipTypeEnum",}, + manifest={ + "LocationOwnershipTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/location_placeholder_field.py b/google/ads/googleads/v14/enums/types/location_placeholder_field.py index 0fb8261fa..8426f028a 100644 --- a/google/ads/googleads/v14/enums/types/location_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/location_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocationPlaceholderFieldEnum",}, + manifest={ + "LocationPlaceholderFieldEnum", + }, ) class LocationPlaceholderFieldEnum(proto.Message): - r"""Values for Location placeholder fields. - """ + r"""Values for Location placeholder fields.""" class LocationPlaceholderField(proto.Enum): r"""Possible values for Location placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/location_source_type.py b/google/ads/googleads/v14/enums/types/location_source_type.py index 1fc19d918..1cafeb491 100644 --- a/google/ads/googleads/v14/enums/types/location_source_type.py +++ b/google/ads/googleads/v14/enums/types/location_source_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocationSourceTypeEnum",}, + manifest={ + "LocationSourceTypeEnum", + }, ) class LocationSourceTypeEnum(proto.Message): - r"""Used to distinguish the location source type. - """ + r"""Used to distinguish the location source type.""" class LocationSourceType(proto.Enum): r"""The possible types of a location source.""" diff --git a/google/ads/googleads/v14/enums/types/location_string_filter_type.py b/google/ads/googleads/v14/enums/types/location_string_filter_type.py index c4bcb4658..fdbc4141d 100644 --- a/google/ads/googleads/v14/enums/types/location_string_filter_type.py +++ b/google/ads/googleads/v14/enums/types/location_string_filter_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"LocationStringFilterTypeEnum",}, + manifest={ + "LocationStringFilterTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/manager_link_status.py b/google/ads/googleads/v14/enums/types/manager_link_status.py index 8aba50f94..ae08f98d9 100644 --- a/google/ads/googleads/v14/enums/types/manager_link_status.py +++ b/google/ads/googleads/v14/enums/types/manager_link_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ManagerLinkStatusEnum",}, + manifest={ + "ManagerLinkStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/matching_function_context_type.py b/google/ads/googleads/v14/enums/types/matching_function_context_type.py index c0496ecde..b9306d964 100644 --- a/google/ads/googleads/v14/enums/types/matching_function_context_type.py +++ b/google/ads/googleads/v14/enums/types/matching_function_context_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MatchingFunctionContextTypeEnum",}, + manifest={ + "MatchingFunctionContextTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/matching_function_operator.py b/google/ads/googleads/v14/enums/types/matching_function_operator.py index 817229032..ec0332572 100644 --- a/google/ads/googleads/v14/enums/types/matching_function_operator.py +++ b/google/ads/googleads/v14/enums/types/matching_function_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MatchingFunctionOperatorEnum",}, + manifest={ + "MatchingFunctionOperatorEnum", + }, ) class MatchingFunctionOperatorEnum(proto.Message): - r"""Container for enum describing matching function operator. - """ + r"""Container for enum describing matching function operator.""" class MatchingFunctionOperator(proto.Enum): r"""Possible operators in a matching function.""" diff --git a/google/ads/googleads/v14/enums/types/media_type.py b/google/ads/googleads/v14/enums/types/media_type.py index 461ec3fdc..97935eee2 100644 --- a/google/ads/googleads/v14/enums/types/media_type.py +++ b/google/ads/googleads/v14/enums/types/media_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MediaTypeEnum",}, + manifest={ + "MediaTypeEnum", + }, ) class MediaTypeEnum(proto.Message): - r"""Container for enum describing the types of media. - """ + r"""Container for enum describing the types of media.""" class MediaType(proto.Enum): r"""The type of media.""" diff --git a/google/ads/googleads/v14/enums/types/merchant_center_link_status.py b/google/ads/googleads/v14/enums/types/merchant_center_link_status.py index ae7e8c532..b2c3730a4 100644 --- a/google/ads/googleads/v14/enums/types/merchant_center_link_status.py +++ b/google/ads/googleads/v14/enums/types/merchant_center_link_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MerchantCenterLinkStatusEnum",}, + manifest={ + "MerchantCenterLinkStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/message_placeholder_field.py b/google/ads/googleads/v14/enums/types/message_placeholder_field.py index 6a1c1ff59..e0f2eeb6c 100644 --- a/google/ads/googleads/v14/enums/types/message_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/message_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MessagePlaceholderFieldEnum",}, + manifest={ + "MessagePlaceholderFieldEnum", + }, ) class MessagePlaceholderFieldEnum(proto.Message): - r"""Values for Message placeholder fields. - """ + r"""Values for Message placeholder fields.""" class MessagePlaceholderField(proto.Enum): r"""Possible values for Message placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/mime_type.py b/google/ads/googleads/v14/enums/types/mime_type.py index 872f87de2..c2a67f60c 100644 --- a/google/ads/googleads/v14/enums/types/mime_type.py +++ b/google/ads/googleads/v14/enums/types/mime_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MimeTypeEnum",}, + manifest={ + "MimeTypeEnum", + }, ) class MimeTypeEnum(proto.Message): - r"""Container for enum describing the mime types. - """ + r"""Container for enum describing the mime types.""" class MimeType(proto.Enum): r"""The mime type""" diff --git a/google/ads/googleads/v14/enums/types/minute_of_hour.py b/google/ads/googleads/v14/enums/types/minute_of_hour.py index 45b1d7adb..995820192 100644 --- a/google/ads/googleads/v14/enums/types/minute_of_hour.py +++ b/google/ads/googleads/v14/enums/types/minute_of_hour.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MinuteOfHourEnum",}, + manifest={ + "MinuteOfHourEnum", + }, ) class MinuteOfHourEnum(proto.Message): - r"""Container for enumeration of quarter-hours. - """ + r"""Container for enumeration of quarter-hours.""" class MinuteOfHour(proto.Enum): r"""Enumerates of quarter-hours. For example, "FIFTEEN".""" diff --git a/google/ads/googleads/v14/enums/types/mobile_app_vendor.py b/google/ads/googleads/v14/enums/types/mobile_app_vendor.py index 54142f0b9..4e16d3427 100644 --- a/google/ads/googleads/v14/enums/types/mobile_app_vendor.py +++ b/google/ads/googleads/v14/enums/types/mobile_app_vendor.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MobileAppVendorEnum",}, + manifest={ + "MobileAppVendorEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/mobile_device_type.py b/google/ads/googleads/v14/enums/types/mobile_device_type.py index 94eef0a33..e57d86f2b 100644 --- a/google/ads/googleads/v14/enums/types/mobile_device_type.py +++ b/google/ads/googleads/v14/enums/types/mobile_device_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MobileDeviceTypeEnum",}, + manifest={ + "MobileDeviceTypeEnum", + }, ) class MobileDeviceTypeEnum(proto.Message): - r"""Container for enum describing the types of mobile device. - """ + r"""Container for enum describing the types of mobile device.""" class MobileDeviceType(proto.Enum): r"""The type of mobile device.""" diff --git a/google/ads/googleads/v14/enums/types/month_of_year.py b/google/ads/googleads/v14/enums/types/month_of_year.py index 26b9dacc8..6163668e0 100644 --- a/google/ads/googleads/v14/enums/types/month_of_year.py +++ b/google/ads/googleads/v14/enums/types/month_of_year.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"MonthOfYearEnum",}, + manifest={ + "MonthOfYearEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/negative_geo_target_type.py b/google/ads/googleads/v14/enums/types/negative_geo_target_type.py index a2c9eeb0d..3167ad700 100644 --- a/google/ads/googleads/v14/enums/types/negative_geo_target_type.py +++ b/google/ads/googleads/v14/enums/types/negative_geo_target_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"NegativeGeoTargetTypeEnum",}, + manifest={ + "NegativeGeoTargetTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/offline_conversion_diagnostic_status_enum.py b/google/ads/googleads/v14/enums/types/offline_conversion_diagnostic_status_enum.py index f6f61b377..d331a1eca 100644 --- a/google/ads/googleads/v14/enums/types/offline_conversion_diagnostic_status_enum.py +++ b/google/ads/googleads/v14/enums/types/offline_conversion_diagnostic_status_enum.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ class OfflineConversionDiagnosticStatusEnum(proto.Message): r"""All possible statuses for oci diagnostics.""" class OfflineConversionDiagnosticStatus(proto.Enum): - r"""Next id: 8""" + r"""Possible statuses of the offline ingestion setup.""" UNSPECIFIED = 0 UNKNOWN = 1 EXCELLENT = 2 diff --git a/google/ads/googleads/v14/enums/types/offline_event_upload_client_enum.py b/google/ads/googleads/v14/enums/types/offline_event_upload_client_enum.py index 0b4e11d1c..c35549601 100644 --- a/google/ads/googleads/v14/enums/types/offline_event_upload_client_enum.py +++ b/google/ads/googleads/v14/enums/types/offline_event_upload_client_enum.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ class OfflineEventUploadClientEnum(proto.Message): r"""All possible clients for an offline upload event.""" class OfflineEventUploadClient(proto.Enum): - r"""Next id: 5""" + r"""Type of client.""" UNSPECIFIED = 0 UNKNOWN = 1 GOOGLE_ADS_API = 2 diff --git a/google/ads/googleads/v14/enums/types/offline_user_data_job_failure_reason.py b/google/ads/googleads/v14/enums/types/offline_user_data_job_failure_reason.py index 46be3cc54..05914f19b 100644 --- a/google/ads/googleads/v14/enums/types/offline_user_data_job_failure_reason.py +++ b/google/ads/googleads/v14/enums/types/offline_user_data_job_failure_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"OfflineUserDataJobFailureReasonEnum",}, + manifest={ + "OfflineUserDataJobFailureReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/offline_user_data_job_match_rate_range.py b/google/ads/googleads/v14/enums/types/offline_user_data_job_match_rate_range.py index 752afc856..55fc7ecbf 100644 --- a/google/ads/googleads/v14/enums/types/offline_user_data_job_match_rate_range.py +++ b/google/ads/googleads/v14/enums/types/offline_user_data_job_match_rate_range.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"OfflineUserDataJobMatchRateRangeEnum",}, + manifest={ + "OfflineUserDataJobMatchRateRangeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/offline_user_data_job_status.py b/google/ads/googleads/v14/enums/types/offline_user_data_job_status.py index 39d1cef9d..1f909d509 100644 --- a/google/ads/googleads/v14/enums/types/offline_user_data_job_status.py +++ b/google/ads/googleads/v14/enums/types/offline_user_data_job_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"OfflineUserDataJobStatusEnum",}, + manifest={ + "OfflineUserDataJobStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/offline_user_data_job_type.py b/google/ads/googleads/v14/enums/types/offline_user_data_job_type.py index d5d0cf3cf..f904ecc7c 100644 --- a/google/ads/googleads/v14/enums/types/offline_user_data_job_type.py +++ b/google/ads/googleads/v14/enums/types/offline_user_data_job_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"OfflineUserDataJobTypeEnum",}, + manifest={ + "OfflineUserDataJobTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/operating_system_version_operator_type.py b/google/ads/googleads/v14/enums/types/operating_system_version_operator_type.py index 5ffaed1dc..2c91c717b 100644 --- a/google/ads/googleads/v14/enums/types/operating_system_version_operator_type.py +++ b/google/ads/googleads/v14/enums/types/operating_system_version_operator_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"OperatingSystemVersionOperatorTypeEnum",}, + manifest={ + "OperatingSystemVersionOperatorTypeEnum", + }, ) class OperatingSystemVersionOperatorTypeEnum(proto.Message): - r"""Container for enum describing the type of OS operators. - """ + r"""Container for enum describing the type of OS operators.""" class OperatingSystemVersionOperatorType(proto.Enum): r"""The type of operating system version.""" diff --git a/google/ads/googleads/v14/enums/types/optimization_goal_type.py b/google/ads/googleads/v14/enums/types/optimization_goal_type.py index bc7f75122..cb43cdcc9 100644 --- a/google/ads/googleads/v14/enums/types/optimization_goal_type.py +++ b/google/ads/googleads/v14/enums/types/optimization_goal_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"OptimizationGoalTypeEnum",}, + manifest={ + "OptimizationGoalTypeEnum", + }, ) class OptimizationGoalTypeEnum(proto.Message): - r"""Container for enum describing the type of optimization goal. - """ + r"""Container for enum describing the type of optimization goal.""" class OptimizationGoalType(proto.Enum): r"""The type of optimization goal""" diff --git a/google/ads/googleads/v14/enums/types/parental_status_type.py b/google/ads/googleads/v14/enums/types/parental_status_type.py index 074a08aa7..bfe03e337 100644 --- a/google/ads/googleads/v14/enums/types/parental_status_type.py +++ b/google/ads/googleads/v14/enums/types/parental_status_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ParentalStatusTypeEnum",}, + manifest={ + "ParentalStatusTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/payment_mode.py b/google/ads/googleads/v14/enums/types/payment_mode.py index 2f05d388f..f2b5d2937 100644 --- a/google/ads/googleads/v14/enums/types/payment_mode.py +++ b/google/ads/googleads/v14/enums/types/payment_mode.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PaymentModeEnum",}, + manifest={ + "PaymentModeEnum", + }, ) class PaymentModeEnum(proto.Message): - r"""Container for enum describing possible payment modes. - """ + r"""Container for enum describing possible payment modes.""" class PaymentMode(proto.Enum): r"""Enum describing possible payment modes.""" diff --git a/google/ads/googleads/v14/enums/types/performance_max_upgrade_status.py b/google/ads/googleads/v14/enums/types/performance_max_upgrade_status.py index ae88684a8..c50d7cdb8 100644 --- a/google/ads/googleads/v14/enums/types/performance_max_upgrade_status.py +++ b/google/ads/googleads/v14/enums/types/performance_max_upgrade_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PerformanceMaxUpgradeStatusEnum",}, + manifest={ + "PerformanceMaxUpgradeStatusEnum", + }, ) class PerformanceMaxUpgradeStatusEnum(proto.Message): - r"""Performance Max Upgrade status for campaign. - """ + r"""Performance Max Upgrade status for campaign.""" class PerformanceMaxUpgradeStatus(proto.Enum): r"""Performance Max Upgrade status enum for campaign.""" diff --git a/google/ads/googleads/v14/enums/types/placeholder_type.py b/google/ads/googleads/v14/enums/types/placeholder_type.py index 3a24033cb..31108ab05 100644 --- a/google/ads/googleads/v14/enums/types/placeholder_type.py +++ b/google/ads/googleads/v14/enums/types/placeholder_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PlaceholderTypeEnum",}, + manifest={ + "PlaceholderTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/placement_type.py b/google/ads/googleads/v14/enums/types/placement_type.py index fe4320ddf..7575a740a 100644 --- a/google/ads/googleads/v14/enums/types/placement_type.py +++ b/google/ads/googleads/v14/enums/types/placement_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PlacementTypeEnum",}, + manifest={ + "PlacementTypeEnum", + }, ) class PlacementTypeEnum(proto.Message): - r"""Container for enum describing possible placement types. - """ + r"""Container for enum describing possible placement types.""" class PlacementType(proto.Enum): r"""Possible placement types for a feed mapping.""" diff --git a/google/ads/googleads/v14/enums/types/policy_approval_status.py b/google/ads/googleads/v14/enums/types/policy_approval_status.py index f89be9547..4da5a342e 100644 --- a/google/ads/googleads/v14/enums/types/policy_approval_status.py +++ b/google/ads/googleads/v14/enums/types/policy_approval_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PolicyApprovalStatusEnum",}, + manifest={ + "PolicyApprovalStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/policy_review_status.py b/google/ads/googleads/v14/enums/types/policy_review_status.py index d6f4f095d..ad6f8daf5 100644 --- a/google/ads/googleads/v14/enums/types/policy_review_status.py +++ b/google/ads/googleads/v14/enums/types/policy_review_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PolicyReviewStatusEnum",}, + manifest={ + "PolicyReviewStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/policy_topic_entry_type.py b/google/ads/googleads/v14/enums/types/policy_topic_entry_type.py index 046029949..0c7295582 100644 --- a/google/ads/googleads/v14/enums/types/policy_topic_entry_type.py +++ b/google/ads/googleads/v14/enums/types/policy_topic_entry_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PolicyTopicEntryTypeEnum",}, + manifest={ + "PolicyTopicEntryTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_mismatch_url_type.py b/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_mismatch_url_type.py index a1d599b71..abee61066 100644 --- a/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_mismatch_url_type.py +++ b/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_mismatch_url_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PolicyTopicEvidenceDestinationMismatchUrlTypeEnum",}, + manifest={ + "PolicyTopicEvidenceDestinationMismatchUrlTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_device.py b/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_device.py index b82e285b5..12f60991d 100644 --- a/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_device.py +++ b/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_device.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PolicyTopicEvidenceDestinationNotWorkingDeviceEnum",}, + manifest={ + "PolicyTopicEvidenceDestinationNotWorkingDeviceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_dns_error_type.py b/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_dns_error_type.py index 542ac7cd9..2e72af38f 100644 --- a/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_dns_error_type.py +++ b/google/ads/googleads/v14/enums/types/policy_topic_evidence_destination_not_working_dns_error_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum",}, + manifest={ + "PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/positive_geo_target_type.py b/google/ads/googleads/v14/enums/types/positive_geo_target_type.py index 7e1f799ae..07c5fdbbc 100644 --- a/google/ads/googleads/v14/enums/types/positive_geo_target_type.py +++ b/google/ads/googleads/v14/enums/types/positive_geo_target_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PositiveGeoTargetTypeEnum",}, + manifest={ + "PositiveGeoTargetTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/price_extension_price_qualifier.py b/google/ads/googleads/v14/enums/types/price_extension_price_qualifier.py index 40cd7ef95..0f7a32078 100644 --- a/google/ads/googleads/v14/enums/types/price_extension_price_qualifier.py +++ b/google/ads/googleads/v14/enums/types/price_extension_price_qualifier.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PriceExtensionPriceQualifierEnum",}, + manifest={ + "PriceExtensionPriceQualifierEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/price_extension_price_unit.py b/google/ads/googleads/v14/enums/types/price_extension_price_unit.py index c75a02fff..910da562b 100644 --- a/google/ads/googleads/v14/enums/types/price_extension_price_unit.py +++ b/google/ads/googleads/v14/enums/types/price_extension_price_unit.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PriceExtensionPriceUnitEnum",}, + manifest={ + "PriceExtensionPriceUnitEnum", + }, ) class PriceExtensionPriceUnitEnum(proto.Message): - r"""Container for enum describing price extension price unit. - """ + r"""Container for enum describing price extension price unit.""" class PriceExtensionPriceUnit(proto.Enum): r"""Price extension price unit.""" diff --git a/google/ads/googleads/v14/enums/types/price_extension_type.py b/google/ads/googleads/v14/enums/types/price_extension_type.py index 547eb6772..281effeb1 100644 --- a/google/ads/googleads/v14/enums/types/price_extension_type.py +++ b/google/ads/googleads/v14/enums/types/price_extension_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PriceExtensionTypeEnum",}, + manifest={ + "PriceExtensionTypeEnum", + }, ) class PriceExtensionTypeEnum(proto.Message): - r"""Container for enum describing types for a price extension. - """ + r"""Container for enum describing types for a price extension.""" class PriceExtensionType(proto.Enum): r"""Price extension type.""" diff --git a/google/ads/googleads/v14/enums/types/price_placeholder_field.py b/google/ads/googleads/v14/enums/types/price_placeholder_field.py index cdd763593..6367082c4 100644 --- a/google/ads/googleads/v14/enums/types/price_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/price_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PricePlaceholderFieldEnum",}, + manifest={ + "PricePlaceholderFieldEnum", + }, ) class PricePlaceholderFieldEnum(proto.Message): - r"""Values for Price placeholder fields. - """ + r"""Values for Price placeholder fields.""" class PricePlaceholderField(proto.Enum): r"""Possible values for Price placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/product_bidding_category_level.py b/google/ads/googleads/v14/enums/types/product_bidding_category_level.py index ab40dca59..968b8b9ef 100644 --- a/google/ads/googleads/v14/enums/types/product_bidding_category_level.py +++ b/google/ads/googleads/v14/enums/types/product_bidding_category_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductBiddingCategoryLevelEnum",}, + manifest={ + "ProductBiddingCategoryLevelEnum", + }, ) class ProductBiddingCategoryLevelEnum(proto.Message): - r"""Level of a product bidding category. - """ + r"""Level of a product bidding category.""" class ProductBiddingCategoryLevel(proto.Enum): r"""Enum describing the level of the product bidding category.""" diff --git a/google/ads/googleads/v14/enums/types/product_bidding_category_status.py b/google/ads/googleads/v14/enums/types/product_bidding_category_status.py index 88df55cc5..079d3a6d5 100644 --- a/google/ads/googleads/v14/enums/types/product_bidding_category_status.py +++ b/google/ads/googleads/v14/enums/types/product_bidding_category_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductBiddingCategoryStatusEnum",}, + manifest={ + "ProductBiddingCategoryStatusEnum", + }, ) class ProductBiddingCategoryStatusEnum(proto.Message): - r"""Status of the product bidding category. - """ + r"""Status of the product bidding category.""" class ProductBiddingCategoryStatus(proto.Enum): r"""Enum describing the status of the product bidding category.""" diff --git a/google/ads/googleads/v14/enums/types/product_channel.py b/google/ads/googleads/v14/enums/types/product_channel.py index a929f63f7..f6327ecd4 100644 --- a/google/ads/googleads/v14/enums/types/product_channel.py +++ b/google/ads/googleads/v14/enums/types/product_channel.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductChannelEnum",}, + manifest={ + "ProductChannelEnum", + }, ) class ProductChannelEnum(proto.Message): - r"""Locality of a product offer. - """ + r"""Locality of a product offer.""" class ProductChannel(proto.Enum): r"""Enum describing the locality of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/product_channel_exclusivity.py b/google/ads/googleads/v14/enums/types/product_channel_exclusivity.py index 5f3a4ce36..cdff28799 100644 --- a/google/ads/googleads/v14/enums/types/product_channel_exclusivity.py +++ b/google/ads/googleads/v14/enums/types/product_channel_exclusivity.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductChannelExclusivityEnum",}, + manifest={ + "ProductChannelExclusivityEnum", + }, ) class ProductChannelExclusivityEnum(proto.Message): - r"""Availability of a product offer. - """ + r"""Availability of a product offer.""" class ProductChannelExclusivity(proto.Enum): r"""Enum describing the availability of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/product_condition.py b/google/ads/googleads/v14/enums/types/product_condition.py index 0a6ec5173..180851a41 100644 --- a/google/ads/googleads/v14/enums/types/product_condition.py +++ b/google/ads/googleads/v14/enums/types/product_condition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductConditionEnum",}, + manifest={ + "ProductConditionEnum", + }, ) class ProductConditionEnum(proto.Message): - r"""Condition of a product offer. - """ + r"""Condition of a product offer.""" class ProductCondition(proto.Enum): r"""Enum describing the condition of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/product_custom_attribute_index.py b/google/ads/googleads/v14/enums/types/product_custom_attribute_index.py index 468eadc15..a4de353c5 100644 --- a/google/ads/googleads/v14/enums/types/product_custom_attribute_index.py +++ b/google/ads/googleads/v14/enums/types/product_custom_attribute_index.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductCustomAttributeIndexEnum",}, + manifest={ + "ProductCustomAttributeIndexEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/product_type_level.py b/google/ads/googleads/v14/enums/types/product_type_level.py index 52610a60e..a5de4a159 100644 --- a/google/ads/googleads/v14/enums/types/product_type_level.py +++ b/google/ads/googleads/v14/enums/types/product_type_level.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProductTypeLevelEnum",}, + manifest={ + "ProductTypeLevelEnum", + }, ) class ProductTypeLevelEnum(proto.Message): - r"""Level of the type of a product offer. - """ + r"""Level of the type of a product offer.""" class ProductTypeLevel(proto.Enum): r"""Enum describing the level of the type of a product offer.""" diff --git a/google/ads/googleads/v14/enums/types/promotion_extension_discount_modifier.py b/google/ads/googleads/v14/enums/types/promotion_extension_discount_modifier.py index 367d79a9f..cda2de2d3 100644 --- a/google/ads/googleads/v14/enums/types/promotion_extension_discount_modifier.py +++ b/google/ads/googleads/v14/enums/types/promotion_extension_discount_modifier.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PromotionExtensionDiscountModifierEnum",}, + manifest={ + "PromotionExtensionDiscountModifierEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/promotion_extension_occasion.py b/google/ads/googleads/v14/enums/types/promotion_extension_occasion.py index 3feaed9ab..4aed98901 100644 --- a/google/ads/googleads/v14/enums/types/promotion_extension_occasion.py +++ b/google/ads/googleads/v14/enums/types/promotion_extension_occasion.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,16 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PromotionExtensionOccasionEnum",}, + manifest={ + "PromotionExtensionOccasionEnum", + }, ) class PromotionExtensionOccasionEnum(proto.Message): r"""Container for enum describing a promotion extension occasion. For more information about the occasions check: + https://support.google.com/google-ads/answer/7367521 """ diff --git a/google/ads/googleads/v14/enums/types/promotion_placeholder_field.py b/google/ads/googleads/v14/enums/types/promotion_placeholder_field.py index b9e262949..6480db801 100644 --- a/google/ads/googleads/v14/enums/types/promotion_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/promotion_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"PromotionPlaceholderFieldEnum",}, + manifest={ + "PromotionPlaceholderFieldEnum", + }, ) class PromotionPlaceholderFieldEnum(proto.Message): - r"""Values for Promotion placeholder fields. - """ + r"""Values for Promotion placeholder fields.""" class PromotionPlaceholderField(proto.Enum): r"""Possible values for Promotion placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/proximity_radius_units.py b/google/ads/googleads/v14/enums/types/proximity_radius_units.py index 15105b836..963941bf4 100644 --- a/google/ads/googleads/v14/enums/types/proximity_radius_units.py +++ b/google/ads/googleads/v14/enums/types/proximity_radius_units.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ProximityRadiusUnitsEnum",}, + manifest={ + "ProximityRadiusUnitsEnum", + }, ) class ProximityRadiusUnitsEnum(proto.Message): - r"""Container for enum describing unit of radius in proximity. - """ + r"""Container for enum describing unit of radius in proximity.""" class ProximityRadiusUnits(proto.Enum): r"""The unit of radius distance in proximity (for example, MILES)""" diff --git a/google/ads/googleads/v14/enums/types/quality_score_bucket.py b/google/ads/googleads/v14/enums/types/quality_score_bucket.py index 75faab152..861927818 100644 --- a/google/ads/googleads/v14/enums/types/quality_score_bucket.py +++ b/google/ads/googleads/v14/enums/types/quality_score_bucket.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"QualityScoreBucketEnum",}, + manifest={ + "QualityScoreBucketEnum", + }, ) class QualityScoreBucketEnum(proto.Message): - r"""The relative performance compared to other advertisers. - """ + r"""The relative performance compared to other advertisers.""" class QualityScoreBucket(proto.Enum): r"""Enum listing the possible quality score buckets.""" diff --git a/google/ads/googleads/v14/enums/types/reach_plan_age_range.py b/google/ads/googleads/v14/enums/types/reach_plan_age_range.py index e238f2e23..6126897d4 100644 --- a/google/ads/googleads/v14/enums/types/reach_plan_age_range.py +++ b/google/ads/googleads/v14/enums/types/reach_plan_age_range.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ReachPlanAgeRangeEnum",}, + manifest={ + "ReachPlanAgeRangeEnum", + }, ) class ReachPlanAgeRangeEnum(proto.Message): - r"""Message describing plannable age ranges. - """ + r"""Message describing plannable age ranges.""" class ReachPlanAgeRange(proto.Enum): r"""Possible plannable age range values.""" diff --git a/google/ads/googleads/v14/enums/types/reach_plan_network.py b/google/ads/googleads/v14/enums/types/reach_plan_network.py index c784e255a..3413b9e16 100644 --- a/google/ads/googleads/v14/enums/types/reach_plan_network.py +++ b/google/ads/googleads/v14/enums/types/reach_plan_network.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ReachPlanNetworkEnum",}, + manifest={ + "ReachPlanNetworkEnum", + }, ) class ReachPlanNetworkEnum(proto.Message): - r"""Container for enum describing plannable networks. - """ + r"""Container for enum describing plannable networks.""" class ReachPlanNetwork(proto.Enum): r"""Possible plannable network values.""" diff --git a/google/ads/googleads/v14/enums/types/real_estate_placeholder_field.py b/google/ads/googleads/v14/enums/types/real_estate_placeholder_field.py index 2bf2264f6..5b7b6dd29 100644 --- a/google/ads/googleads/v14/enums/types/real_estate_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/real_estate_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"RealEstatePlaceholderFieldEnum",}, + manifest={ + "RealEstatePlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/recommendation_type.py b/google/ads/googleads/v14/enums/types/recommendation_type.py index ea41cb989..21ec6cae0 100644 --- a/google/ads/googleads/v14/enums/types/recommendation_type.py +++ b/google/ads/googleads/v14/enums/types/recommendation_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"RecommendationTypeEnum",}, + manifest={ + "RecommendationTypeEnum", + }, ) class RecommendationTypeEnum(proto.Message): - r"""Container for enum describing types of recommendations. - """ + r"""Container for enum describing types of recommendations.""" class RecommendationType(proto.Enum): r"""Types of recommendations.""" @@ -77,6 +78,9 @@ class RecommendationType(proto.Enum): DYNAMIC_IMAGE_EXTENSION_OPT_IN = 43 RAISE_TARGET_CPA = 44 LOWER_TARGET_ROAS = 45 + PERFORMANCE_MAX_OPT_IN = 46 + IMPROVE_PERFORMANCE_MAX_AD_STRENGTH = 47 + MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX = 48 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/enums/types/resource_change_operation.py b/google/ads/googleads/v14/enums/types/resource_change_operation.py index 532da3cc4..f481b2432 100644 --- a/google/ads/googleads/v14/enums/types/resource_change_operation.py +++ b/google/ads/googleads/v14/enums/types/resource_change_operation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ResourceChangeOperationEnum",}, + manifest={ + "ResourceChangeOperationEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/resource_limit_type.py b/google/ads/googleads/v14/enums/types/resource_limit_type.py index 78df9dee6..a57c018b2 100644 --- a/google/ads/googleads/v14/enums/types/resource_limit_type.py +++ b/google/ads/googleads/v14/enums/types/resource_limit_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ResourceLimitTypeEnum",}, + manifest={ + "ResourceLimitTypeEnum", + }, ) class ResourceLimitTypeEnum(proto.Message): - r"""Container for enum describing possible resource limit types. - """ + r"""Container for enum describing possible resource limit types.""" class ResourceLimitType(proto.Enum): r"""Resource limit type.""" diff --git a/google/ads/googleads/v14/enums/types/response_content_type.py b/google/ads/googleads/v14/enums/types/response_content_type.py index 994acaea4..735ef01fe 100644 --- a/google/ads/googleads/v14/enums/types/response_content_type.py +++ b/google/ads/googleads/v14/enums/types/response_content_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ResponseContentTypeEnum",}, + manifest={ + "ResponseContentTypeEnum", + }, ) class ResponseContentTypeEnum(proto.Message): - r"""Container for possible response content types. - """ + r"""Container for possible response content types.""" class ResponseContentType(proto.Enum): r"""Possible response content types.""" diff --git a/google/ads/googleads/v14/enums/types/search_engine_results_page_type.py b/google/ads/googleads/v14/enums/types/search_engine_results_page_type.py index c2945498b..8444deba7 100644 --- a/google/ads/googleads/v14/enums/types/search_engine_results_page_type.py +++ b/google/ads/googleads/v14/enums/types/search_engine_results_page_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SearchEngineResultsPageTypeEnum",}, + manifest={ + "SearchEngineResultsPageTypeEnum", + }, ) class SearchEngineResultsPageTypeEnum(proto.Message): - r"""The type of the search engine results page. - """ + r"""The type of the search engine results page.""" class SearchEngineResultsPageType(proto.Enum): r"""The type of the search engine results page.""" diff --git a/google/ads/googleads/v14/enums/types/search_term_match_type.py b/google/ads/googleads/v14/enums/types/search_term_match_type.py index 2e954d5f2..9408cc5c8 100644 --- a/google/ads/googleads/v14/enums/types/search_term_match_type.py +++ b/google/ads/googleads/v14/enums/types/search_term_match_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SearchTermMatchTypeEnum",}, + manifest={ + "SearchTermMatchTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/search_term_targeting_status.py b/google/ads/googleads/v14/enums/types/search_term_targeting_status.py index f2c448101..72fd5666b 100644 --- a/google/ads/googleads/v14/enums/types/search_term_targeting_status.py +++ b/google/ads/googleads/v14/enums/types/search_term_targeting_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SearchTermTargetingStatusEnum",}, + manifest={ + "SearchTermTargetingStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/seasonality_event_scope.py b/google/ads/googleads/v14/enums/types/seasonality_event_scope.py index 521fc2d7a..58dcd6122 100644 --- a/google/ads/googleads/v14/enums/types/seasonality_event_scope.py +++ b/google/ads/googleads/v14/enums/types/seasonality_event_scope.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SeasonalityEventScopeEnum",}, + manifest={ + "SeasonalityEventScopeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/seasonality_event_status.py b/google/ads/googleads/v14/enums/types/seasonality_event_status.py index 02617b798..e0779a057 100644 --- a/google/ads/googleads/v14/enums/types/seasonality_event_status.py +++ b/google/ads/googleads/v14/enums/types/seasonality_event_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SeasonalityEventStatusEnum",}, + manifest={ + "SeasonalityEventStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/served_asset_field_type.py b/google/ads/googleads/v14/enums/types/served_asset_field_type.py index 18e519bcb..724b23265 100644 --- a/google/ads/googleads/v14/enums/types/served_asset_field_type.py +++ b/google/ads/googleads/v14/enums/types/served_asset_field_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ServedAssetFieldTypeEnum",}, + manifest={ + "ServedAssetFieldTypeEnum", + }, ) class ServedAssetFieldTypeEnum(proto.Message): - r"""Container for enum describing possible asset field types. - """ + r"""Container for enum describing possible asset field types.""" class ServedAssetFieldType(proto.Enum): r"""The possible asset field types.""" diff --git a/google/ads/googleads/v14/enums/types/shared_set_status.py b/google/ads/googleads/v14/enums/types/shared_set_status.py index 098733798..99bd588aa 100644 --- a/google/ads/googleads/v14/enums/types/shared_set_status.py +++ b/google/ads/googleads/v14/enums/types/shared_set_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SharedSetStatusEnum",}, + manifest={ + "SharedSetStatusEnum", + }, ) class SharedSetStatusEnum(proto.Message): - r"""Container for enum describing types of shared set statuses. - """ + r"""Container for enum describing types of shared set statuses.""" class SharedSetStatus(proto.Enum): r"""Enum listing the possible shared set statuses.""" diff --git a/google/ads/googleads/v14/enums/types/shared_set_type.py b/google/ads/googleads/v14/enums/types/shared_set_type.py index 23c748349..9717bccd2 100644 --- a/google/ads/googleads/v14/enums/types/shared_set_type.py +++ b/google/ads/googleads/v14/enums/types/shared_set_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SharedSetTypeEnum",}, + manifest={ + "SharedSetTypeEnum", + }, ) class SharedSetTypeEnum(proto.Message): - r"""Container for enum describing types of shared sets. - """ + r"""Container for enum describing types of shared sets.""" class SharedSetType(proto.Enum): r"""Enum listing the possible shared set types.""" diff --git a/google/ads/googleads/v14/enums/types/shopping_add_products_to_campaign_recommendation_enum.py b/google/ads/googleads/v14/enums/types/shopping_add_products_to_campaign_recommendation_enum.py index b4d43613d..9d828eae1 100644 --- a/google/ads/googleads/v14/enums/types/shopping_add_products_to_campaign_recommendation_enum.py +++ b/google/ads/googleads/v14/enums/types/shopping_add_products_to_campaign_recommendation_enum.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,14 +22,15 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ShoppingAddProductsToCampaignRecommendationEnum",}, + manifest={ + "ShoppingAddProductsToCampaignRecommendationEnum", + }, ) class ShoppingAddProductsToCampaignRecommendationEnum(proto.Message): r"""Indicates the key issue that results in a shopping campaign targeting zero products. - Next Id: 5 """ diff --git a/google/ads/googleads/v14/enums/types/simulation_modification_method.py b/google/ads/googleads/v14/enums/types/simulation_modification_method.py index 824ba6ab6..47681875f 100644 --- a/google/ads/googleads/v14/enums/types/simulation_modification_method.py +++ b/google/ads/googleads/v14/enums/types/simulation_modification_method.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SimulationModificationMethodEnum",}, + manifest={ + "SimulationModificationMethodEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/simulation_type.py b/google/ads/googleads/v14/enums/types/simulation_type.py index 3a045d172..2fe3308d6 100644 --- a/google/ads/googleads/v14/enums/types/simulation_type.py +++ b/google/ads/googleads/v14/enums/types/simulation_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SimulationTypeEnum",}, + manifest={ + "SimulationTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/sitelink_placeholder_field.py b/google/ads/googleads/v14/enums/types/sitelink_placeholder_field.py index cb264c4c0..66c9cb835 100644 --- a/google/ads/googleads/v14/enums/types/sitelink_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/sitelink_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SitelinkPlaceholderFieldEnum",}, + manifest={ + "SitelinkPlaceholderFieldEnum", + }, ) class SitelinkPlaceholderFieldEnum(proto.Message): - r"""Values for Sitelink placeholder fields. - """ + r"""Values for Sitelink placeholder fields.""" class SitelinkPlaceholderField(proto.Enum): r"""Possible values for Sitelink placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/sk_ad_network_ad_event_type.py b/google/ads/googleads/v14/enums/types/sk_ad_network_ad_event_type.py index c9f642bfb..f4bac7111 100644 --- a/google/ads/googleads/v14/enums/types/sk_ad_network_ad_event_type.py +++ b/google/ads/googleads/v14/enums/types/sk_ad_network_ad_event_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SkAdNetworkAdEventTypeEnum",}, + manifest={ + "SkAdNetworkAdEventTypeEnum", + }, ) class SkAdNetworkAdEventTypeEnum(proto.Message): - r"""Container for enumeration of SkAdNetwork ad event types. - """ + r"""Container for enumeration of SkAdNetwork ad event types.""" class SkAdNetworkAdEventType(proto.Enum): r"""Enumerates SkAdNetwork ad event types""" diff --git a/google/ads/googleads/v14/enums/types/sk_ad_network_attribution_credit.py b/google/ads/googleads/v14/enums/types/sk_ad_network_attribution_credit.py index 6e7705113..0cb08efcc 100644 --- a/google/ads/googleads/v14/enums/types/sk_ad_network_attribution_credit.py +++ b/google/ads/googleads/v14/enums/types/sk_ad_network_attribution_credit.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SkAdNetworkAttributionCreditEnum",}, + manifest={ + "SkAdNetworkAttributionCreditEnum", + }, ) class SkAdNetworkAttributionCreditEnum(proto.Message): - r"""Container for enumeration of SkAdNetwork attribution credits. - """ + r"""Container for enumeration of SkAdNetwork attribution credits.""" class SkAdNetworkAttributionCredit(proto.Enum): r"""Enumerates SkAdNetwork attribution credits.""" diff --git a/google/ads/googleads/v14/enums/types/sk_ad_network_user_type.py b/google/ads/googleads/v14/enums/types/sk_ad_network_user_type.py index 2d0f6285b..a76e0f204 100644 --- a/google/ads/googleads/v14/enums/types/sk_ad_network_user_type.py +++ b/google/ads/googleads/v14/enums/types/sk_ad_network_user_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SkAdNetworkUserTypeEnum",}, + manifest={ + "SkAdNetworkUserTypeEnum", + }, ) class SkAdNetworkUserTypeEnum(proto.Message): - r"""Container for enumeration of SkAdNetwork user types. - """ + r"""Container for enumeration of SkAdNetwork user types.""" class SkAdNetworkUserType(proto.Enum): r"""Enumerates SkAdNetwork user types""" diff --git a/google/ads/googleads/v14/enums/types/slot.py b/google/ads/googleads/v14/enums/types/slot.py index 7297b1b35..65477b3dd 100644 --- a/google/ads/googleads/v14/enums/types/slot.py +++ b/google/ads/googleads/v14/enums/types/slot.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SlotEnum",}, + manifest={ + "SlotEnum", + }, ) class SlotEnum(proto.Message): - r"""Container for enumeration of possible positions of the Ad. - """ + r"""Container for enumeration of possible positions of the Ad.""" class Slot(proto.Enum): r"""Enumerates possible positions of the Ad.""" diff --git a/google/ads/googleads/v14/enums/types/smart_campaign_not_eligible_reason.py b/google/ads/googleads/v14/enums/types/smart_campaign_not_eligible_reason.py index af0a19326..2a1b4881a 100644 --- a/google/ads/googleads/v14/enums/types/smart_campaign_not_eligible_reason.py +++ b/google/ads/googleads/v14/enums/types/smart_campaign_not_eligible_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SmartCampaignNotEligibleReasonEnum",}, + manifest={ + "SmartCampaignNotEligibleReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/smart_campaign_status.py b/google/ads/googleads/v14/enums/types/smart_campaign_status.py index 83ff41c38..0a595fd91 100644 --- a/google/ads/googleads/v14/enums/types/smart_campaign_status.py +++ b/google/ads/googleads/v14/enums/types/smart_campaign_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SmartCampaignStatusEnum",}, + manifest={ + "SmartCampaignStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/spending_limit_type.py b/google/ads/googleads/v14/enums/types/spending_limit_type.py index 3887e4516..f61f9b24f 100644 --- a/google/ads/googleads/v14/enums/types/spending_limit_type.py +++ b/google/ads/googleads/v14/enums/types/spending_limit_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SpendingLimitTypeEnum",}, + manifest={ + "SpendingLimitTypeEnum", + }, ) class SpendingLimitTypeEnum(proto.Message): - r"""Message describing spending limit types. - """ + r"""Message describing spending limit types.""" class SpendingLimitType(proto.Enum): r"""The possible spending limit types used by certain resources diff --git a/google/ads/googleads/v14/enums/types/structured_snippet_placeholder_field.py b/google/ads/googleads/v14/enums/types/structured_snippet_placeholder_field.py index e4085d4f0..a5ccd8cd1 100644 --- a/google/ads/googleads/v14/enums/types/structured_snippet_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/structured_snippet_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"StructuredSnippetPlaceholderFieldEnum",}, + manifest={ + "StructuredSnippetPlaceholderFieldEnum", + }, ) class StructuredSnippetPlaceholderFieldEnum(proto.Message): - r"""Values for Structured Snippet placeholder fields. - """ + r"""Values for Structured Snippet placeholder fields.""" class StructuredSnippetPlaceholderField(proto.Enum): r"""Possible values for Structured Snippet placeholder fields.""" diff --git a/google/ads/googleads/v14/enums/types/summary_row_setting.py b/google/ads/googleads/v14/enums/types/summary_row_setting.py index a90f6cba6..1f29f0000 100644 --- a/google/ads/googleads/v14/enums/types/summary_row_setting.py +++ b/google/ads/googleads/v14/enums/types/summary_row_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SummaryRowSettingEnum",}, + manifest={ + "SummaryRowSettingEnum", + }, ) class SummaryRowSettingEnum(proto.Message): - r"""Indicates summary row setting in request parameter. - """ + r"""Indicates summary row setting in request parameter.""" class SummaryRowSetting(proto.Enum): r"""Enum describing return summary row settings.""" diff --git a/google/ads/googleads/v14/enums/types/system_managed_entity_source.py b/google/ads/googleads/v14/enums/types/system_managed_entity_source.py index 53baa1cd4..f4c0c8776 100644 --- a/google/ads/googleads/v14/enums/types/system_managed_entity_source.py +++ b/google/ads/googleads/v14/enums/types/system_managed_entity_source.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"SystemManagedResourceSourceEnum",}, + manifest={ + "SystemManagedResourceSourceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/target_cpa_opt_in_recommendation_goal.py b/google/ads/googleads/v14/enums/types/target_cpa_opt_in_recommendation_goal.py index d62304f87..178d9d33f 100644 --- a/google/ads/googleads/v14/enums/types/target_cpa_opt_in_recommendation_goal.py +++ b/google/ads/googleads/v14/enums/types/target_cpa_opt_in_recommendation_goal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TargetCpaOptInRecommendationGoalEnum",}, + manifest={ + "TargetCpaOptInRecommendationGoalEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/target_frequency_time_unit.py b/google/ads/googleads/v14/enums/types/target_frequency_time_unit.py index f74d014fe..f9761e97d 100644 --- a/google/ads/googleads/v14/enums/types/target_frequency_time_unit.py +++ b/google/ads/googleads/v14/enums/types/target_frequency_time_unit.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TargetFrequencyTimeUnitEnum",}, + manifest={ + "TargetFrequencyTimeUnitEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/target_impression_share_location.py b/google/ads/googleads/v14/enums/types/target_impression_share_location.py index a7a4d7c5b..e829c864e 100644 --- a/google/ads/googleads/v14/enums/types/target_impression_share_location.py +++ b/google/ads/googleads/v14/enums/types/target_impression_share_location.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TargetImpressionShareLocationEnum",}, + manifest={ + "TargetImpressionShareLocationEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/targeting_dimension.py b/google/ads/googleads/v14/enums/types/targeting_dimension.py index dddaad7e0..b1877c06a 100644 --- a/google/ads/googleads/v14/enums/types/targeting_dimension.py +++ b/google/ads/googleads/v14/enums/types/targeting_dimension.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TargetingDimensionEnum",}, + manifest={ + "TargetingDimensionEnum", + }, ) class TargetingDimensionEnum(proto.Message): - r"""The dimensions that can be targeted. - """ + r"""The dimensions that can be targeted.""" class TargetingDimension(proto.Enum): r"""Enum describing possible targeting dimensions.""" diff --git a/google/ads/googleads/v14/enums/types/time_type.py b/google/ads/googleads/v14/enums/types/time_type.py index e6901b42b..00f9ff8ae 100644 --- a/google/ads/googleads/v14/enums/types/time_type.py +++ b/google/ads/googleads/v14/enums/types/time_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TimeTypeEnum",}, + manifest={ + "TimeTypeEnum", + }, ) class TimeTypeEnum(proto.Message): - r"""Message describing time types. - """ + r"""Message describing time types.""" class TimeType(proto.Enum): r"""The possible time types used by certain resources as an diff --git a/google/ads/googleads/v14/enums/types/tracking_code_page_format.py b/google/ads/googleads/v14/enums/types/tracking_code_page_format.py index 9d3632053..14978dc13 100644 --- a/google/ads/googleads/v14/enums/types/tracking_code_page_format.py +++ b/google/ads/googleads/v14/enums/types/tracking_code_page_format.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TrackingCodePageFormatEnum",}, + manifest={ + "TrackingCodePageFormatEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/tracking_code_type.py b/google/ads/googleads/v14/enums/types/tracking_code_type.py index d250b2297..48cd84d6f 100644 --- a/google/ads/googleads/v14/enums/types/tracking_code_type.py +++ b/google/ads/googleads/v14/enums/types/tracking_code_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TrackingCodeTypeEnum",}, + manifest={ + "TrackingCodeTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/travel_placeholder_field.py b/google/ads/googleads/v14/enums/types/travel_placeholder_field.py index da78e55fb..7abf70dcf 100644 --- a/google/ads/googleads/v14/enums/types/travel_placeholder_field.py +++ b/google/ads/googleads/v14/enums/types/travel_placeholder_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"TravelPlaceholderFieldEnum",}, + manifest={ + "TravelPlaceholderFieldEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/user_identifier_source.py b/google/ads/googleads/v14/enums/types/user_identifier_source.py index 25dabca00..14f1e2ec4 100644 --- a/google/ads/googleads/v14/enums/types/user_identifier_source.py +++ b/google/ads/googleads/v14/enums/types/user_identifier_source.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserIdentifierSourceEnum",}, + manifest={ + "UserIdentifierSourceEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/user_interest_taxonomy_type.py b/google/ads/googleads/v14/enums/types/user_interest_taxonomy_type.py index 958fdeaed..15ccbed29 100644 --- a/google/ads/googleads/v14/enums/types/user_interest_taxonomy_type.py +++ b/google/ads/googleads/v14/enums/types/user_interest_taxonomy_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserInterestTaxonomyTypeEnum",}, + manifest={ + "UserInterestTaxonomyTypeEnum", + }, ) class UserInterestTaxonomyTypeEnum(proto.Message): - r"""Message describing a UserInterestTaxonomyType. - """ + r"""Message describing a UserInterestTaxonomyType.""" class UserInterestTaxonomyType(proto.Enum): r"""Enum containing the possible UserInterestTaxonomyTypes.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_access_status.py b/google/ads/googleads/v14/enums/types/user_list_access_status.py index e0c0d2c0a..f92d74314 100644 --- a/google/ads/googleads/v14/enums/types/user_list_access_status.py +++ b/google/ads/googleads/v14/enums/types/user_list_access_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListAccessStatusEnum",}, + manifest={ + "UserListAccessStatusEnum", + }, ) class UserListAccessStatusEnum(proto.Message): - r"""Indicates if this client still has access to the list. - """ + r"""Indicates if this client still has access to the list.""" class UserListAccessStatus(proto.Enum): r"""Enum containing possible user list access statuses.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_closing_reason.py b/google/ads/googleads/v14/enums/types/user_list_closing_reason.py index 94504aac2..93eb8f84d 100644 --- a/google/ads/googleads/v14/enums/types/user_list_closing_reason.py +++ b/google/ads/googleads/v14/enums/types/user_list_closing_reason.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListClosingReasonEnum",}, + manifest={ + "UserListClosingReasonEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/user_list_crm_data_source_type.py b/google/ads/googleads/v14/enums/types/user_list_crm_data_source_type.py index 342c86346..f28859435 100644 --- a/google/ads/googleads/v14/enums/types/user_list_crm_data_source_type.py +++ b/google/ads/googleads/v14/enums/types/user_list_crm_data_source_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListCrmDataSourceTypeEnum",}, + manifest={ + "UserListCrmDataSourceTypeEnum", + }, ) class UserListCrmDataSourceTypeEnum(proto.Message): - r"""Indicates source of Crm upload data. - """ + r"""Indicates source of Crm upload data.""" class UserListCrmDataSourceType(proto.Enum): r"""Enum describing possible user list crm data source type.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_date_rule_item_operator.py b/google/ads/googleads/v14/enums/types/user_list_date_rule_item_operator.py index 1eca38386..52a2537b0 100644 --- a/google/ads/googleads/v14/enums/types/user_list_date_rule_item_operator.py +++ b/google/ads/googleads/v14/enums/types/user_list_date_rule_item_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListDateRuleItemOperatorEnum",}, + manifest={ + "UserListDateRuleItemOperatorEnum", + }, ) class UserListDateRuleItemOperatorEnum(proto.Message): - r"""Supported rule operator for date type. - """ + r"""Supported rule operator for date type.""" class UserListDateRuleItemOperator(proto.Enum): r"""Enum describing possible user list date rule item operators.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_flexible_rule_operator.py b/google/ads/googleads/v14/enums/types/user_list_flexible_rule_operator.py index 193ffc5a0..95bc99a2e 100644 --- a/google/ads/googleads/v14/enums/types/user_list_flexible_rule_operator.py +++ b/google/ads/googleads/v14/enums/types/user_list_flexible_rule_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListFlexibleRuleOperatorEnum",}, + manifest={ + "UserListFlexibleRuleOperatorEnum", + }, ) class UserListFlexibleRuleOperatorEnum(proto.Message): - r"""Logical operator connecting two rules. - """ + r"""Logical operator connecting two rules.""" class UserListFlexibleRuleOperator(proto.Enum): r"""Enum describing possible user list combined rule operators.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_logical_rule_operator.py b/google/ads/googleads/v14/enums/types/user_list_logical_rule_operator.py index ff1add002..c277b72dd 100644 --- a/google/ads/googleads/v14/enums/types/user_list_logical_rule_operator.py +++ b/google/ads/googleads/v14/enums/types/user_list_logical_rule_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListLogicalRuleOperatorEnum",}, + manifest={ + "UserListLogicalRuleOperatorEnum", + }, ) class UserListLogicalRuleOperatorEnum(proto.Message): - r"""The logical operator of the rule. - """ + r"""The logical operator of the rule.""" class UserListLogicalRuleOperator(proto.Enum): r"""Enum describing possible user list logical rule operators.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_membership_status.py b/google/ads/googleads/v14/enums/types/user_list_membership_status.py index c5711b462..853a5861c 100644 --- a/google/ads/googleads/v14/enums/types/user_list_membership_status.py +++ b/google/ads/googleads/v14/enums/types/user_list_membership_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListMembershipStatusEnum",}, + manifest={ + "UserListMembershipStatusEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/user_list_number_rule_item_operator.py b/google/ads/googleads/v14/enums/types/user_list_number_rule_item_operator.py index 48196fcb8..74947d038 100644 --- a/google/ads/googleads/v14/enums/types/user_list_number_rule_item_operator.py +++ b/google/ads/googleads/v14/enums/types/user_list_number_rule_item_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListNumberRuleItemOperatorEnum",}, + manifest={ + "UserListNumberRuleItemOperatorEnum", + }, ) class UserListNumberRuleItemOperatorEnum(proto.Message): - r"""Supported rule operator for number type. - """ + r"""Supported rule operator for number type.""" class UserListNumberRuleItemOperator(proto.Enum): r"""Enum describing possible user list number rule item diff --git a/google/ads/googleads/v14/enums/types/user_list_prepopulation_status.py b/google/ads/googleads/v14/enums/types/user_list_prepopulation_status.py index bf6a05641..638ed694d 100644 --- a/google/ads/googleads/v14/enums/types/user_list_prepopulation_status.py +++ b/google/ads/googleads/v14/enums/types/user_list_prepopulation_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListPrepopulationStatusEnum",}, + manifest={ + "UserListPrepopulationStatusEnum", + }, ) class UserListPrepopulationStatusEnum(proto.Message): - r"""Indicates status of prepopulation based on the rule. - """ + r"""Indicates status of prepopulation based on the rule.""" class UserListPrepopulationStatus(proto.Enum): r"""Enum describing possible user list prepopulation status.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_rule_type.py b/google/ads/googleads/v14/enums/types/user_list_rule_type.py index 704b9fc36..6422ca0b2 100644 --- a/google/ads/googleads/v14/enums/types/user_list_rule_type.py +++ b/google/ads/googleads/v14/enums/types/user_list_rule_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListRuleTypeEnum",}, + manifest={ + "UserListRuleTypeEnum", + }, ) class UserListRuleTypeEnum(proto.Message): - r"""Rule based user list rule type. - """ + r"""Rule based user list rule type.""" class UserListRuleType(proto.Enum): r"""Enum describing possible user list rule types.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_size_range.py b/google/ads/googleads/v14/enums/types/user_list_size_range.py index 4ebfff5e1..d233e93d1 100644 --- a/google/ads/googleads/v14/enums/types/user_list_size_range.py +++ b/google/ads/googleads/v14/enums/types/user_list_size_range.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListSizeRangeEnum",}, + manifest={ + "UserListSizeRangeEnum", + }, ) class UserListSizeRangeEnum(proto.Message): - r"""Size range in terms of number of users of a UserList. - """ + r"""Size range in terms of number of users of a UserList.""" class UserListSizeRange(proto.Enum): r"""Enum containing possible user list size ranges.""" diff --git a/google/ads/googleads/v14/enums/types/user_list_string_rule_item_operator.py b/google/ads/googleads/v14/enums/types/user_list_string_rule_item_operator.py index 919a08fa6..08534d116 100644 --- a/google/ads/googleads/v14/enums/types/user_list_string_rule_item_operator.py +++ b/google/ads/googleads/v14/enums/types/user_list_string_rule_item_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListStringRuleItemOperatorEnum",}, + manifest={ + "UserListStringRuleItemOperatorEnum", + }, ) class UserListStringRuleItemOperatorEnum(proto.Message): - r"""Supported rule operator for string type. - """ + r"""Supported rule operator for string type.""" class UserListStringRuleItemOperator(proto.Enum): r"""Enum describing possible user list string rule item diff --git a/google/ads/googleads/v14/enums/types/user_list_type.py b/google/ads/googleads/v14/enums/types/user_list_type.py index be311bfb8..3b72abf1e 100644 --- a/google/ads/googleads/v14/enums/types/user_list_type.py +++ b/google/ads/googleads/v14/enums/types/user_list_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"UserListTypeEnum",}, + manifest={ + "UserListTypeEnum", + }, ) class UserListTypeEnum(proto.Message): - r"""The user list types. - """ + r"""The user list types.""" class UserListType(proto.Enum): r"""Enum containing possible user list types.""" diff --git a/google/ads/googleads/v14/enums/types/value_rule_device_type.py b/google/ads/googleads/v14/enums/types/value_rule_device_type.py index 8c4bc10c7..25787c732 100644 --- a/google/ads/googleads/v14/enums/types/value_rule_device_type.py +++ b/google/ads/googleads/v14/enums/types/value_rule_device_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ValueRuleDeviceTypeEnum",}, + manifest={ + "ValueRuleDeviceTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/value_rule_geo_location_match_type.py b/google/ads/googleads/v14/enums/types/value_rule_geo_location_match_type.py index 8256748da..8f193e28c 100644 --- a/google/ads/googleads/v14/enums/types/value_rule_geo_location_match_type.py +++ b/google/ads/googleads/v14/enums/types/value_rule_geo_location_match_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ValueRuleGeoLocationMatchTypeEnum",}, + manifest={ + "ValueRuleGeoLocationMatchTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/value_rule_operation.py b/google/ads/googleads/v14/enums/types/value_rule_operation.py index cef71aeb8..4b570031c 100644 --- a/google/ads/googleads/v14/enums/types/value_rule_operation.py +++ b/google/ads/googleads/v14/enums/types/value_rule_operation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ValueRuleOperationEnum",}, + manifest={ + "ValueRuleOperationEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/value_rule_set_attachment_type.py b/google/ads/googleads/v14/enums/types/value_rule_set_attachment_type.py index 078191e64..c987ba3ca 100644 --- a/google/ads/googleads/v14/enums/types/value_rule_set_attachment_type.py +++ b/google/ads/googleads/v14/enums/types/value_rule_set_attachment_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ValueRuleSetAttachmentTypeEnum",}, + manifest={ + "ValueRuleSetAttachmentTypeEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/value_rule_set_dimension.py b/google/ads/googleads/v14/enums/types/value_rule_set_dimension.py index 9937ce0d2..8772bd36c 100644 --- a/google/ads/googleads/v14/enums/types/value_rule_set_dimension.py +++ b/google/ads/googleads/v14/enums/types/value_rule_set_dimension.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"ValueRuleSetDimensionEnum",}, + manifest={ + "ValueRuleSetDimensionEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/vanity_pharma_display_url_mode.py b/google/ads/googleads/v14/enums/types/vanity_pharma_display_url_mode.py index 08484ce79..73e262ef7 100644 --- a/google/ads/googleads/v14/enums/types/vanity_pharma_display_url_mode.py +++ b/google/ads/googleads/v14/enums/types/vanity_pharma_display_url_mode.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"VanityPharmaDisplayUrlModeEnum",}, + manifest={ + "VanityPharmaDisplayUrlModeEnum", + }, ) class VanityPharmaDisplayUrlModeEnum(proto.Message): - r"""The display mode for vanity pharma URLs. - """ + r"""The display mode for vanity pharma URLs.""" class VanityPharmaDisplayUrlMode(proto.Enum): r"""Enum describing possible display modes for vanity pharma diff --git a/google/ads/googleads/v14/enums/types/vanity_pharma_text.py b/google/ads/googleads/v14/enums/types/vanity_pharma_text.py index e45c27b7b..62d972df5 100644 --- a/google/ads/googleads/v14/enums/types/vanity_pharma_text.py +++ b/google/ads/googleads/v14/enums/types/vanity_pharma_text.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"VanityPharmaTextEnum",}, + manifest={ + "VanityPharmaTextEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/video_thumbnail.py b/google/ads/googleads/v14/enums/types/video_thumbnail.py index 5087205b9..7a988ae56 100644 --- a/google/ads/googleads/v14/enums/types/video_thumbnail.py +++ b/google/ads/googleads/v14/enums/types/video_thumbnail.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"VideoThumbnailEnum",}, + manifest={ + "VideoThumbnailEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/webpage_condition_operand.py b/google/ads/googleads/v14/enums/types/webpage_condition_operand.py index 7315ffdc5..74a671a59 100644 --- a/google/ads/googleads/v14/enums/types/webpage_condition_operand.py +++ b/google/ads/googleads/v14/enums/types/webpage_condition_operand.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"WebpageConditionOperandEnum",}, + manifest={ + "WebpageConditionOperandEnum", + }, ) diff --git a/google/ads/googleads/v14/enums/types/webpage_condition_operator.py b/google/ads/googleads/v14/enums/types/webpage_condition_operator.py index 1e73d5157..8043b0cf3 100644 --- a/google/ads/googleads/v14/enums/types/webpage_condition_operator.py +++ b/google/ads/googleads/v14/enums/types/webpage_condition_operator.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.enums", marshal="google.ads.googleads.v14", - manifest={"WebpageConditionOperatorEnum",}, + manifest={ + "WebpageConditionOperatorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/__init__.py b/google/ads/googleads/v14/errors/__init__.py index 3e242d02e..39590ea50 100644 --- a/google/ads/googleads/v14/errors/__init__.py +++ b/google/ads/googleads/v14/errors/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -154,6 +154,7 @@ "ResourceAccessDeniedErrorEnum", "ResourceCountDetails", "ResourceCountLimitExceededErrorEnum", + "SearchTermInsightErrorEnum", "SettingErrorEnum", "SharedCriterionErrorEnum", "SharedSetErrorEnum", diff --git a/google/ads/googleads/v14/errors/services/__init__.py b/google/ads/googleads/v14/errors/services/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/errors/services/__init__.py +++ b/google/ads/googleads/v14/errors/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/errors/types/__init__.py b/google/ads/googleads/v14/errors/types/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/errors/types/__init__.py +++ b/google/ads/googleads/v14/errors/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/errors/types/access_invitation_error.py b/google/ads/googleads/v14/errors/types/access_invitation_error.py index f030f3c73..176632a2a 100644 --- a/google/ads/googleads/v14/errors/types/access_invitation_error.py +++ b/google/ads/googleads/v14/errors/types/access_invitation_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AccessInvitationErrorEnum",}, + manifest={ + "AccessInvitationErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/account_budget_proposal_error.py b/google/ads/googleads/v14/errors/types/account_budget_proposal_error.py index 51d412862..6956aeb44 100644 --- a/google/ads/googleads/v14/errors/types/account_budget_proposal_error.py +++ b/google/ads/googleads/v14/errors/types/account_budget_proposal_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AccountBudgetProposalErrorEnum",}, + manifest={ + "AccountBudgetProposalErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/account_link_error.py b/google/ads/googleads/v14/errors/types/account_link_error.py index eef84362c..3c7d5cedc 100644 --- a/google/ads/googleads/v14/errors/types/account_link_error.py +++ b/google/ads/googleads/v14/errors/types/account_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AccountLinkErrorEnum",}, + manifest={ + "AccountLinkErrorEnum", + }, ) class AccountLinkErrorEnum(proto.Message): - r"""Container for enum describing possible account link errors. - """ + r"""Container for enum describing possible account link errors.""" class AccountLinkError(proto.Enum): r"""Enum describing possible account link errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_customizer_error.py b/google/ads/googleads/v14/errors/types/ad_customizer_error.py index 4d193bf1a..0d0cd1576 100644 --- a/google/ads/googleads/v14/errors/types/ad_customizer_error.py +++ b/google/ads/googleads/v14/errors/types/ad_customizer_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdCustomizerErrorEnum",}, + manifest={ + "AdCustomizerErrorEnum", + }, ) class AdCustomizerErrorEnum(proto.Message): - r"""Container for enum describing possible ad customizer errors. - """ + r"""Container for enum describing possible ad customizer errors.""" class AdCustomizerError(proto.Enum): r"""Enum describing possible ad customizer errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_error.py b/google/ads/googleads/v14/errors/types/ad_error.py index 42a6ed349..72112c9a3 100644 --- a/google/ads/googleads/v14/errors/types/ad_error.py +++ b/google/ads/googleads/v14/errors/types/ad_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdErrorEnum",}, + manifest={ + "AdErrorEnum", + }, ) class AdErrorEnum(proto.Message): - r"""Container for enum describing possible ad errors. - """ + r"""Container for enum describing possible ad errors.""" class AdError(proto.Enum): r"""Enum describing possible ad errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_group_ad_error.py b/google/ads/googleads/v14/errors/types/ad_group_ad_error.py index 7d1cf062f..4c2658d13 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_ad_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_ad_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupAdErrorEnum",}, + manifest={ + "AdGroupAdErrorEnum", + }, ) class AdGroupAdErrorEnum(proto.Message): - r"""Container for enum describing possible ad group ad errors. - """ + r"""Container for enum describing possible ad group ad errors.""" class AdGroupAdError(proto.Enum): r"""Enum describing possible ad group ad errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_group_bid_modifier_error.py b/google/ads/googleads/v14/errors/types/ad_group_bid_modifier_error.py index 0fdbcdcef..1564ebe9f 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_bid_modifier_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_bid_modifier_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupBidModifierErrorEnum",}, + manifest={ + "AdGroupBidModifierErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/ad_group_criterion_customizer_error.py b/google/ads/googleads/v14/errors/types/ad_group_criterion_customizer_error.py index fd2621281..196a07d95 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_criterion_customizer_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_criterion_customizer_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionCustomizerErrorEnum",}, + manifest={ + "AdGroupCriterionCustomizerErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/ad_group_criterion_error.py b/google/ads/googleads/v14/errors/types/ad_group_criterion_error.py index f1c1f0e80..06062defd 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_criterion_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_criterion_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionErrorEnum",}, + manifest={ + "AdGroupCriterionErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/ad_group_customizer_error.py b/google/ads/googleads/v14/errors/types/ad_group_customizer_error.py index dc6c11445..f99f87343 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_customizer_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_customizer_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupCustomizerErrorEnum",}, + manifest={ + "AdGroupCustomizerErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/ad_group_error.py b/google/ads/googleads/v14/errors/types/ad_group_error.py index d1b79b3ed..58703704d 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupErrorEnum",}, + manifest={ + "AdGroupErrorEnum", + }, ) class AdGroupErrorEnum(proto.Message): - r"""Container for enum describing possible ad group errors. - """ + r"""Container for enum describing possible ad group errors.""" class AdGroupError(proto.Enum): r"""Enum describing possible ad group errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_group_feed_error.py b/google/ads/googleads/v14/errors/types/ad_group_feed_error.py index c4f16b386..c9e1f8204 100644 --- a/google/ads/googleads/v14/errors/types/ad_group_feed_error.py +++ b/google/ads/googleads/v14/errors/types/ad_group_feed_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdGroupFeedErrorEnum",}, + manifest={ + "AdGroupFeedErrorEnum", + }, ) class AdGroupFeedErrorEnum(proto.Message): - r"""Container for enum describing possible ad group feed errors. - """ + r"""Container for enum describing possible ad group feed errors.""" class AdGroupFeedError(proto.Enum): r"""Enum describing possible ad group feed errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_parameter_error.py b/google/ads/googleads/v14/errors/types/ad_parameter_error.py index bda075828..9add49ec4 100644 --- a/google/ads/googleads/v14/errors/types/ad_parameter_error.py +++ b/google/ads/googleads/v14/errors/types/ad_parameter_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdParameterErrorEnum",}, + manifest={ + "AdParameterErrorEnum", + }, ) class AdParameterErrorEnum(proto.Message): - r"""Container for enum describing possible ad parameter errors. - """ + r"""Container for enum describing possible ad parameter errors.""" class AdParameterError(proto.Enum): r"""Enum describing possible ad parameter errors.""" diff --git a/google/ads/googleads/v14/errors/types/ad_sharing_error.py b/google/ads/googleads/v14/errors/types/ad_sharing_error.py index d5380fd1a..ec643f601 100644 --- a/google/ads/googleads/v14/errors/types/ad_sharing_error.py +++ b/google/ads/googleads/v14/errors/types/ad_sharing_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdSharingErrorEnum",}, + manifest={ + "AdSharingErrorEnum", + }, ) class AdSharingErrorEnum(proto.Message): - r"""Container for enum describing possible ad sharing errors. - """ + r"""Container for enum describing possible ad sharing errors.""" class AdSharingError(proto.Enum): r"""Enum describing possible ad sharing errors.""" diff --git a/google/ads/googleads/v14/errors/types/adx_error.py b/google/ads/googleads/v14/errors/types/adx_error.py index d64fc6630..7703bd109 100644 --- a/google/ads/googleads/v14/errors/types/adx_error.py +++ b/google/ads/googleads/v14/errors/types/adx_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AdxErrorEnum",}, + manifest={ + "AdxErrorEnum", + }, ) class AdxErrorEnum(proto.Message): - r"""Container for enum describing possible adx errors. - """ + r"""Container for enum describing possible adx errors.""" class AdxError(proto.Enum): r"""Enum describing possible adx errors.""" diff --git a/google/ads/googleads/v14/errors/types/asset_error.py b/google/ads/googleads/v14/errors/types/asset_error.py index 49cd5f743..f4c81275c 100644 --- a/google/ads/googleads/v14/errors/types/asset_error.py +++ b/google/ads/googleads/v14/errors/types/asset_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetErrorEnum",}, + manifest={ + "AssetErrorEnum", + }, ) class AssetErrorEnum(proto.Message): - r"""Container for enum describing possible asset errors. - """ + r"""Container for enum describing possible asset errors.""" class AssetError(proto.Enum): r"""Enum describing possible asset errors.""" @@ -69,6 +70,7 @@ class AssetError(proto.Enum): CANNOT_MODIFY_ASSET_SOURCE = 35 CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET = 36 LEAD_FORM_LOCATION_ANSWER_TYPE_DISALLOWED = 37 + PAGE_FEED_INVALID_LABEL_TEXT = 38 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/asset_group_asset_error.py b/google/ads/googleads/v14/errors/types/asset_group_asset_error.py index 3fe9bed61..6987958e8 100644 --- a/google/ads/googleads/v14/errors/types/asset_group_asset_error.py +++ b/google/ads/googleads/v14/errors/types/asset_group_asset_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetGroupAssetErrorEnum",}, + manifest={ + "AssetGroupAssetErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/asset_group_error.py b/google/ads/googleads/v14/errors/types/asset_group_error.py index 5f8e95529..68937de3a 100644 --- a/google/ads/googleads/v14/errors/types/asset_group_error.py +++ b/google/ads/googleads/v14/errors/types/asset_group_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetGroupErrorEnum",}, + manifest={ + "AssetGroupErrorEnum", + }, ) class AssetGroupErrorEnum(proto.Message): - r"""Container for enum describing possible asset group errors. - """ + r"""Container for enum describing possible asset group errors.""" class AssetGroupError(proto.Enum): r"""Enum describing possible asset group errors.""" diff --git a/google/ads/googleads/v14/errors/types/asset_group_listing_group_filter_error.py b/google/ads/googleads/v14/errors/types/asset_group_listing_group_filter_error.py index f2fd6f105..18396336c 100644 --- a/google/ads/googleads/v14/errors/types/asset_group_listing_group_filter_error.py +++ b/google/ads/googleads/v14/errors/types/asset_group_listing_group_filter_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetGroupListingGroupFilterErrorEnum",}, + manifest={ + "AssetGroupListingGroupFilterErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/asset_link_error.py b/google/ads/googleads/v14/errors/types/asset_link_error.py index 6966fcf0a..7e62074ed 100644 --- a/google/ads/googleads/v14/errors/types/asset_link_error.py +++ b/google/ads/googleads/v14/errors/types/asset_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetLinkErrorEnum",}, + manifest={ + "AssetLinkErrorEnum", + }, ) class AssetLinkErrorEnum(proto.Message): - r"""Container for enum describing possible asset link errors. - """ + r"""Container for enum describing possible asset link errors.""" class AssetLinkError(proto.Enum): r"""Enum describing possible asset link errors.""" @@ -57,6 +58,8 @@ class AssetLinkError(proto.Enum): CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET = 20 CANNOT_MODIFY_ASSET_LINK_SOURCE = 21 CANNOT_LINK_LOCATION_LEAD_FORM_WITHOUT_LOCATION_ASSET = 22 + CUSTOMER_NOT_VERIFIED = 23 + UNSUPPORTED_CALL_TO_ACTION = 24 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/asset_set_asset_error.py b/google/ads/googleads/v14/errors/types/asset_set_asset_error.py index 3242de8c4..a4546169e 100644 --- a/google/ads/googleads/v14/errors/types/asset_set_asset_error.py +++ b/google/ads/googleads/v14/errors/types/asset_set_asset_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetSetAssetErrorEnum",}, + manifest={ + "AssetSetAssetErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/asset_set_error.py b/google/ads/googleads/v14/errors/types/asset_set_error.py index 69e9ae212..cfdbbf0cc 100644 --- a/google/ads/googleads/v14/errors/types/asset_set_error.py +++ b/google/ads/googleads/v14/errors/types/asset_set_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetSetErrorEnum",}, + manifest={ + "AssetSetErrorEnum", + }, ) class AssetSetErrorEnum(proto.Message): - r"""Container for enum describing possible asset set errors. - """ + r"""Container for enum describing possible asset set errors.""" class AssetSetError(proto.Enum): r"""Enum describing possible asset set errors.""" diff --git a/google/ads/googleads/v14/errors/types/asset_set_link_error.py b/google/ads/googleads/v14/errors/types/asset_set_link_error.py index b77b57054..3f5150cf0 100644 --- a/google/ads/googleads/v14/errors/types/asset_set_link_error.py +++ b/google/ads/googleads/v14/errors/types/asset_set_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AssetSetLinkErrorEnum",}, + manifest={ + "AssetSetLinkErrorEnum", + }, ) class AssetSetLinkErrorEnum(proto.Message): - r"""Container for enum describing possible asset set link errors. - """ + r"""Container for enum describing possible asset set link errors.""" class AssetSetLinkError(proto.Enum): r"""Enum describing possible asset set link errors.""" diff --git a/google/ads/googleads/v14/errors/types/audience_error.py b/google/ads/googleads/v14/errors/types/audience_error.py index 5aa6453ab..322209f78 100644 --- a/google/ads/googleads/v14/errors/types/audience_error.py +++ b/google/ads/googleads/v14/errors/types/audience_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AudienceErrorEnum",}, + manifest={ + "AudienceErrorEnum", + }, ) class AudienceErrorEnum(proto.Message): - r"""Container for enum describing possible audience errors. - """ + r"""Container for enum describing possible audience errors.""" class AudienceError(proto.Enum): r"""Enum describing possible audience errors.""" diff --git a/google/ads/googleads/v14/errors/types/audience_insights_error.py b/google/ads/googleads/v14/errors/types/audience_insights_error.py index bf6811d5b..381102937 100644 --- a/google/ads/googleads/v14/errors/types/audience_insights_error.py +++ b/google/ads/googleads/v14/errors/types/audience_insights_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AudienceInsightsErrorEnum",}, + manifest={ + "AudienceInsightsErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/authentication_error.py b/google/ads/googleads/v14/errors/types/authentication_error.py index 7bceed0eb..aa91d3293 100644 --- a/google/ads/googleads/v14/errors/types/authentication_error.py +++ b/google/ads/googleads/v14/errors/types/authentication_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AuthenticationErrorEnum",}, + manifest={ + "AuthenticationErrorEnum", + }, ) class AuthenticationErrorEnum(proto.Message): - r"""Container for enum describing possible authentication errors. - """ + r"""Container for enum describing possible authentication errors.""" class AuthenticationError(proto.Enum): r"""Enum describing possible authentication errors.""" @@ -52,6 +53,9 @@ class AuthenticationError(proto.Enum): USER_ID_INVALID = 22 TWO_STEP_VERIFICATION_NOT_ENROLLED = 23 ADVANCED_PROTECTION_NOT_ENROLLED = 24 + ORGANIZATION_NOT_RECOGNIZED = 26 + ORGANIZATION_NOT_APPROVED = 27 + ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN = 28 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/authorization_error.py b/google/ads/googleads/v14/errors/types/authorization_error.py index f808c2570..fc8e4374a 100644 --- a/google/ads/googleads/v14/errors/types/authorization_error.py +++ b/google/ads/googleads/v14/errors/types/authorization_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"AuthorizationErrorEnum",}, + manifest={ + "AuthorizationErrorEnum", + }, ) class AuthorizationErrorEnum(proto.Message): - r"""Container for enum describing possible authorization errors. - """ + r"""Container for enum describing possible authorization errors.""" class AuthorizationError(proto.Enum): r"""Enum describing possible authorization errors.""" @@ -48,6 +49,7 @@ class AuthorizationError(proto.Enum): SERVICE_ACCESS_DENIED = 12 ACCESS_DENIED_FOR_ACCOUNT_TYPE = 25 METRIC_ACCESS_DENIED = 26 + CLOUD_PROJECT_NOT_UNDER_ORGANIZATION = 27 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/batch_job_error.py b/google/ads/googleads/v14/errors/types/batch_job_error.py index 894c3c475..70ece660f 100644 --- a/google/ads/googleads/v14/errors/types/batch_job_error.py +++ b/google/ads/googleads/v14/errors/types/batch_job_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"BatchJobErrorEnum",}, + manifest={ + "BatchJobErrorEnum", + }, ) class BatchJobErrorEnum(proto.Message): - r"""Container for enum describing possible batch job errors. - """ + r"""Container for enum describing possible batch job errors.""" class BatchJobError(proto.Enum): r"""Enum describing possible request errors.""" diff --git a/google/ads/googleads/v14/errors/types/bidding_error.py b/google/ads/googleads/v14/errors/types/bidding_error.py index cd71e3cee..d4677cdb9 100644 --- a/google/ads/googleads/v14/errors/types/bidding_error.py +++ b/google/ads/googleads/v14/errors/types/bidding_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"BiddingErrorEnum",}, + manifest={ + "BiddingErrorEnum", + }, ) class BiddingErrorEnum(proto.Message): - r"""Container for enum describing possible bidding errors. - """ + r"""Container for enum describing possible bidding errors.""" class BiddingError(proto.Enum): r"""Enum describing possible bidding errors.""" diff --git a/google/ads/googleads/v14/errors/types/bidding_strategy_error.py b/google/ads/googleads/v14/errors/types/bidding_strategy_error.py index a27d85871..02263f223 100644 --- a/google/ads/googleads/v14/errors/types/bidding_strategy_error.py +++ b/google/ads/googleads/v14/errors/types/bidding_strategy_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"BiddingStrategyErrorEnum",}, + manifest={ + "BiddingStrategyErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/billing_setup_error.py b/google/ads/googleads/v14/errors/types/billing_setup_error.py index 1d0f62fd0..632389361 100644 --- a/google/ads/googleads/v14/errors/types/billing_setup_error.py +++ b/google/ads/googleads/v14/errors/types/billing_setup_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"BillingSetupErrorEnum",}, + manifest={ + "BillingSetupErrorEnum", + }, ) class BillingSetupErrorEnum(proto.Message): - r"""Container for enum describing possible billing setup errors. - """ + r"""Container for enum describing possible billing setup errors.""" class BillingSetupError(proto.Enum): r"""Enum describing possible billing setup errors.""" diff --git a/google/ads/googleads/v14/errors/types/campaign_budget_error.py b/google/ads/googleads/v14/errors/types/campaign_budget_error.py index ba338d86d..a612c6591 100644 --- a/google/ads/googleads/v14/errors/types/campaign_budget_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_budget_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignBudgetErrorEnum",}, + manifest={ + "CampaignBudgetErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/campaign_conversion_goal_error.py b/google/ads/googleads/v14/errors/types/campaign_conversion_goal_error.py index ff16c8544..aa6df8a19 100644 --- a/google/ads/googleads/v14/errors/types/campaign_conversion_goal_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_conversion_goal_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignConversionGoalErrorEnum",}, + manifest={ + "CampaignConversionGoalErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/campaign_criterion_error.py b/google/ads/googleads/v14/errors/types/campaign_criterion_error.py index ec73284cb..a9236ccf1 100644 --- a/google/ads/googleads/v14/errors/types/campaign_criterion_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_criterion_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignCriterionErrorEnum",}, + manifest={ + "CampaignCriterionErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/campaign_customizer_error.py b/google/ads/googleads/v14/errors/types/campaign_customizer_error.py index ea5779002..ed592cb47 100644 --- a/google/ads/googleads/v14/errors/types/campaign_customizer_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_customizer_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignCustomizerErrorEnum",}, + manifest={ + "CampaignCustomizerErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/campaign_draft_error.py b/google/ads/googleads/v14/errors/types/campaign_draft_error.py index 62b384e80..4021d7d8f 100644 --- a/google/ads/googleads/v14/errors/types/campaign_draft_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_draft_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignDraftErrorEnum",}, + manifest={ + "CampaignDraftErrorEnum", + }, ) class CampaignDraftErrorEnum(proto.Message): - r"""Container for enum describing possible campaign draft errors. - """ + r"""Container for enum describing possible campaign draft errors.""" class CampaignDraftError(proto.Enum): r"""Enum describing possible campaign draft errors.""" diff --git a/google/ads/googleads/v14/errors/types/campaign_error.py b/google/ads/googleads/v14/errors/types/campaign_error.py index 2e4a6add6..1f1ffe574 100644 --- a/google/ads/googleads/v14/errors/types/campaign_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignErrorEnum",}, + manifest={ + "CampaignErrorEnum", + }, ) class CampaignErrorEnum(proto.Message): - r"""Container for enum describing possible campaign errors. - """ + r"""Container for enum describing possible campaign errors.""" class CampaignError(proto.Enum): r"""Enum describing possible campaign errors.""" @@ -106,6 +107,8 @@ class CampaignError(proto.Enum): NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 80 NOT_COMPATIBLE_WITH_GOOGLE_ATTRIBUTION_CONVERSIONS = 81 CONVERSION_LAG_TOO_HIGH = 82 + NOT_LINKED_ADVERTISING_PARTNER = 83 + INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS = 84 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/campaign_experiment_error.py b/google/ads/googleads/v14/errors/types/campaign_experiment_error.py index 498d48d65..2d1809b19 100644 --- a/google/ads/googleads/v14/errors/types/campaign_experiment_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_experiment_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignExperimentErrorEnum",}, + manifest={ + "CampaignExperimentErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/campaign_feed_error.py b/google/ads/googleads/v14/errors/types/campaign_feed_error.py index 755fce38d..43b16d77e 100644 --- a/google/ads/googleads/v14/errors/types/campaign_feed_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_feed_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignFeedErrorEnum",}, + manifest={ + "CampaignFeedErrorEnum", + }, ) class CampaignFeedErrorEnum(proto.Message): - r"""Container for enum describing possible campaign feed errors. - """ + r"""Container for enum describing possible campaign feed errors.""" class CampaignFeedError(proto.Enum): r"""Enum describing possible campaign feed errors.""" diff --git a/google/ads/googleads/v14/errors/types/campaign_shared_set_error.py b/google/ads/googleads/v14/errors/types/campaign_shared_set_error.py index 2f7ecc76b..e52299f31 100644 --- a/google/ads/googleads/v14/errors/types/campaign_shared_set_error.py +++ b/google/ads/googleads/v14/errors/types/campaign_shared_set_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CampaignSharedSetErrorEnum",}, + manifest={ + "CampaignSharedSetErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/change_event_error.py b/google/ads/googleads/v14/errors/types/change_event_error.py index 3ab513009..f0f9673c6 100644 --- a/google/ads/googleads/v14/errors/types/change_event_error.py +++ b/google/ads/googleads/v14/errors/types/change_event_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ChangeEventErrorEnum",}, + manifest={ + "ChangeEventErrorEnum", + }, ) class ChangeEventErrorEnum(proto.Message): - r"""Container for enum describing possible change event errors. - """ + r"""Container for enum describing possible change event errors.""" class ChangeEventError(proto.Enum): r"""Enum describing possible change event errors.""" diff --git a/google/ads/googleads/v14/errors/types/change_status_error.py b/google/ads/googleads/v14/errors/types/change_status_error.py index 7cc112206..9afd45b43 100644 --- a/google/ads/googleads/v14/errors/types/change_status_error.py +++ b/google/ads/googleads/v14/errors/types/change_status_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ChangeStatusErrorEnum",}, + manifest={ + "ChangeStatusErrorEnum", + }, ) class ChangeStatusErrorEnum(proto.Message): - r"""Container for enum describing possible change status errors. - """ + r"""Container for enum describing possible change status errors.""" class ChangeStatusError(proto.Enum): r"""Enum describing possible change status errors.""" diff --git a/google/ads/googleads/v14/errors/types/collection_size_error.py b/google/ads/googleads/v14/errors/types/collection_size_error.py index c188b0d47..ba805a68e 100644 --- a/google/ads/googleads/v14/errors/types/collection_size_error.py +++ b/google/ads/googleads/v14/errors/types/collection_size_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CollectionSizeErrorEnum",}, + manifest={ + "CollectionSizeErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/context_error.py b/google/ads/googleads/v14/errors/types/context_error.py index fea23f55e..e74c73a30 100644 --- a/google/ads/googleads/v14/errors/types/context_error.py +++ b/google/ads/googleads/v14/errors/types/context_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ContextErrorEnum",}, + manifest={ + "ContextErrorEnum", + }, ) class ContextErrorEnum(proto.Message): - r"""Container for enum describing possible context errors. - """ + r"""Container for enum describing possible context errors.""" class ContextError(proto.Enum): r"""Enum describing possible context errors.""" diff --git a/google/ads/googleads/v14/errors/types/conversion_action_error.py b/google/ads/googleads/v14/errors/types/conversion_action_error.py index b82a1d767..d8938fecb 100644 --- a/google/ads/googleads/v14/errors/types/conversion_action_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_action_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionActionErrorEnum",}, + manifest={ + "ConversionActionErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/conversion_adjustment_upload_error.py b/google/ads/googleads/v14/errors/types/conversion_adjustment_upload_error.py index d7810f904..cb3ab685c 100644 --- a/google/ads/googleads/v14/errors/types/conversion_adjustment_upload_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_adjustment_upload_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionAdjustmentUploadErrorEnum",}, + manifest={ + "ConversionAdjustmentUploadErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/conversion_custom_variable_error.py b/google/ads/googleads/v14/errors/types/conversion_custom_variable_error.py index efd0dced4..f7fde4e53 100644 --- a/google/ads/googleads/v14/errors/types/conversion_custom_variable_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_custom_variable_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionCustomVariableErrorEnum",}, + manifest={ + "ConversionCustomVariableErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/conversion_goal_campaign_config_error.py b/google/ads/googleads/v14/errors/types/conversion_goal_campaign_config_error.py index 6979bf0bf..c2aeabfd6 100644 --- a/google/ads/googleads/v14/errors/types/conversion_goal_campaign_config_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_goal_campaign_config_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionGoalCampaignConfigErrorEnum",}, + manifest={ + "ConversionGoalCampaignConfigErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/conversion_upload_error.py b/google/ads/googleads/v14/errors/types/conversion_upload_error.py index 2dfd6de06..0482b7e67 100644 --- a/google/ads/googleads/v14/errors/types/conversion_upload_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_upload_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionUploadErrorEnum",}, + manifest={ + "ConversionUploadErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/conversion_value_rule_error.py b/google/ads/googleads/v14/errors/types/conversion_value_rule_error.py index 90aae2896..f09993a71 100644 --- a/google/ads/googleads/v14/errors/types/conversion_value_rule_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_value_rule_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRuleErrorEnum",}, + manifest={ + "ConversionValueRuleErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/conversion_value_rule_set_error.py b/google/ads/googleads/v14/errors/types/conversion_value_rule_set_error.py index 154e56b2b..cd8fc8eb3 100644 --- a/google/ads/googleads/v14/errors/types/conversion_value_rule_set_error.py +++ b/google/ads/googleads/v14/errors/types/conversion_value_rule_set_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRuleSetErrorEnum",}, + manifest={ + "ConversionValueRuleSetErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/country_code_error.py b/google/ads/googleads/v14/errors/types/country_code_error.py index 768a0eea2..1e7773730 100644 --- a/google/ads/googleads/v14/errors/types/country_code_error.py +++ b/google/ads/googleads/v14/errors/types/country_code_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CountryCodeErrorEnum",}, + manifest={ + "CountryCodeErrorEnum", + }, ) class CountryCodeErrorEnum(proto.Message): - r"""Container for enum describing country code errors. - """ + r"""Container for enum describing country code errors.""" class CountryCodeError(proto.Enum): r"""Enum describing country code errors.""" diff --git a/google/ads/googleads/v14/errors/types/criterion_error.py b/google/ads/googleads/v14/errors/types/criterion_error.py index 3bef5f67e..d1a5093fb 100644 --- a/google/ads/googleads/v14/errors/types/criterion_error.py +++ b/google/ads/googleads/v14/errors/types/criterion_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CriterionErrorEnum",}, + manifest={ + "CriterionErrorEnum", + }, ) class CriterionErrorEnum(proto.Message): - r"""Container for enum describing possible criterion errors. - """ + r"""Container for enum describing possible criterion errors.""" class CriterionError(proto.Enum): r"""Enum describing possible criterion errors.""" @@ -175,6 +176,9 @@ class CriterionError(proto.Enum): CANNOT_HAVE_MULTIPLE_NEGATIVE_KEYWORD_LIST_PER_ACCOUNT = 147 CUSTOMER_CANNOT_ADD_CRITERION_OF_THIS_TYPE = 149 CANNOT_TARGET_SIMILAR_USER_LIST = 151 + CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET = 152 + ONE_AUDIENCE_ALLOWED_PER_AD_GROUP = 153 + INVALID_DETAILED_DEMOGRAPHIC = 154 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/currency_code_error.py b/google/ads/googleads/v14/errors/types/currency_code_error.py index ea12aab44..76ca68cfe 100644 --- a/google/ads/googleads/v14/errors/types/currency_code_error.py +++ b/google/ads/googleads/v14/errors/types/currency_code_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CurrencyCodeErrorEnum",}, + manifest={ + "CurrencyCodeErrorEnum", + }, ) class CurrencyCodeErrorEnum(proto.Message): - r"""Container for enum describing possible currency code errors. - """ + r"""Container for enum describing possible currency code errors.""" class CurrencyCodeError(proto.Enum): r"""Enum describing possible currency code errors.""" diff --git a/google/ads/googleads/v14/errors/types/currency_error.py b/google/ads/googleads/v14/errors/types/currency_error.py index 88ee26567..6d9076259 100644 --- a/google/ads/googleads/v14/errors/types/currency_error.py +++ b/google/ads/googleads/v14/errors/types/currency_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CurrencyErrorEnum",}, + manifest={ + "CurrencyErrorEnum", + }, ) class CurrencyErrorEnum(proto.Message): - r"""Container for enum describing possible currency errors. - """ + r"""Container for enum describing possible currency errors.""" class CurrencyError(proto.Enum): r"""Enum describing possible currency errors.""" diff --git a/google/ads/googleads/v14/errors/types/custom_audience_error.py b/google/ads/googleads/v14/errors/types/custom_audience_error.py index a832fc957..37acd72d2 100644 --- a/google/ads/googleads/v14/errors/types/custom_audience_error.py +++ b/google/ads/googleads/v14/errors/types/custom_audience_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomAudienceErrorEnum",}, + manifest={ + "CustomAudienceErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/custom_conversion_goal_error.py b/google/ads/googleads/v14/errors/types/custom_conversion_goal_error.py index efd4e111d..ee75620d8 100644 --- a/google/ads/googleads/v14/errors/types/custom_conversion_goal_error.py +++ b/google/ads/googleads/v14/errors/types/custom_conversion_goal_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomConversionGoalErrorEnum",}, + manifest={ + "CustomConversionGoalErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/custom_interest_error.py b/google/ads/googleads/v14/errors/types/custom_interest_error.py index f007de12d..2c0695a6d 100644 --- a/google/ads/googleads/v14/errors/types/custom_interest_error.py +++ b/google/ads/googleads/v14/errors/types/custom_interest_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomInterestErrorEnum",}, + manifest={ + "CustomInterestErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/customer_client_link_error.py b/google/ads/googleads/v14/errors/types/customer_client_link_error.py index 4ac7fc12a..266239a17 100644 --- a/google/ads/googleads/v14/errors/types/customer_client_link_error.py +++ b/google/ads/googleads/v14/errors/types/customer_client_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerClientLinkErrorEnum",}, + manifest={ + "CustomerClientLinkErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/customer_customizer_error.py b/google/ads/googleads/v14/errors/types/customer_customizer_error.py index dda4efbbf..91f98f67b 100644 --- a/google/ads/googleads/v14/errors/types/customer_customizer_error.py +++ b/google/ads/googleads/v14/errors/types/customer_customizer_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerCustomizerErrorEnum",}, + manifest={ + "CustomerCustomizerErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/customer_error.py b/google/ads/googleads/v14/errors/types/customer_error.py index 26a37b8ac..92a90d5cd 100644 --- a/google/ads/googleads/v14/errors/types/customer_error.py +++ b/google/ads/googleads/v14/errors/types/customer_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerErrorEnum",}, + manifest={ + "CustomerErrorEnum", + }, ) class CustomerErrorEnum(proto.Message): - r"""Container for enum describing possible customer errors. - """ + r"""Container for enum describing possible customer errors.""" class CustomerError(proto.Enum): r"""Set of errors that are related to requests dealing with diff --git a/google/ads/googleads/v14/errors/types/customer_feed_error.py b/google/ads/googleads/v14/errors/types/customer_feed_error.py index ca1d646d9..bb7143b5d 100644 --- a/google/ads/googleads/v14/errors/types/customer_feed_error.py +++ b/google/ads/googleads/v14/errors/types/customer_feed_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerFeedErrorEnum",}, + manifest={ + "CustomerFeedErrorEnum", + }, ) class CustomerFeedErrorEnum(proto.Message): - r"""Container for enum describing possible customer feed errors. - """ + r"""Container for enum describing possible customer feed errors.""" class CustomerFeedError(proto.Enum): r"""Enum describing possible customer feed errors.""" diff --git a/google/ads/googleads/v14/errors/types/customer_manager_link_error.py b/google/ads/googleads/v14/errors/types/customer_manager_link_error.py index 80ad246f4..0a44c7b74 100644 --- a/google/ads/googleads/v14/errors/types/customer_manager_link_error.py +++ b/google/ads/googleads/v14/errors/types/customer_manager_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerManagerLinkErrorEnum",}, + manifest={ + "CustomerManagerLinkErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/customer_sk_ad_network_conversion_value_schema_error.py b/google/ads/googleads/v14/errors/types/customer_sk_ad_network_conversion_value_schema_error.py index c2b844a94..c2e4f65c2 100644 --- a/google/ads/googleads/v14/errors/types/customer_sk_ad_network_conversion_value_schema_error.py +++ b/google/ads/googleads/v14/errors/types/customer_sk_ad_network_conversion_value_schema_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerSkAdNetworkConversionValueSchemaErrorEnum",}, + manifest={ + "CustomerSkAdNetworkConversionValueSchemaErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/customer_user_access_error.py b/google/ads/googleads/v14/errors/types/customer_user_access_error.py index eedb83693..8273f4d48 100644 --- a/google/ads/googleads/v14/errors/types/customer_user_access_error.py +++ b/google/ads/googleads/v14/errors/types/customer_user_access_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomerUserAccessErrorEnum",}, + manifest={ + "CustomerUserAccessErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/customizer_attribute_error.py b/google/ads/googleads/v14/errors/types/customizer_attribute_error.py index 70739a9c0..0974818ad 100644 --- a/google/ads/googleads/v14/errors/types/customizer_attribute_error.py +++ b/google/ads/googleads/v14/errors/types/customizer_attribute_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"CustomizerAttributeErrorEnum",}, + manifest={ + "CustomizerAttributeErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/database_error.py b/google/ads/googleads/v14/errors/types/database_error.py index 349e41fe2..60f41c36b 100644 --- a/google/ads/googleads/v14/errors/types/database_error.py +++ b/google/ads/googleads/v14/errors/types/database_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"DatabaseErrorEnum",}, + manifest={ + "DatabaseErrorEnum", + }, ) class DatabaseErrorEnum(proto.Message): - r"""Container for enum describing possible database errors. - """ + r"""Container for enum describing possible database errors.""" class DatabaseError(proto.Enum): r"""Enum describing possible database errors.""" diff --git a/google/ads/googleads/v14/errors/types/date_error.py b/google/ads/googleads/v14/errors/types/date_error.py index 9a9eb287b..74a7e07b0 100644 --- a/google/ads/googleads/v14/errors/types/date_error.py +++ b/google/ads/googleads/v14/errors/types/date_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"DateErrorEnum",}, + manifest={ + "DateErrorEnum", + }, ) class DateErrorEnum(proto.Message): - r"""Container for enum describing possible date errors. - """ + r"""Container for enum describing possible date errors.""" class DateError(proto.Enum): r"""Enum describing possible date errors.""" diff --git a/google/ads/googleads/v14/errors/types/date_range_error.py b/google/ads/googleads/v14/errors/types/date_range_error.py index 96fe57361..4b70a481a 100644 --- a/google/ads/googleads/v14/errors/types/date_range_error.py +++ b/google/ads/googleads/v14/errors/types/date_range_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"DateRangeErrorEnum",}, + manifest={ + "DateRangeErrorEnum", + }, ) class DateRangeErrorEnum(proto.Message): - r"""Container for enum describing possible date range errors. - """ + r"""Container for enum describing possible date range errors.""" class DateRangeError(proto.Enum): r"""Enum describing possible date range errors.""" diff --git a/google/ads/googleads/v14/errors/types/distinct_error.py b/google/ads/googleads/v14/errors/types/distinct_error.py index 3f78e22ec..76d8ff7c3 100644 --- a/google/ads/googleads/v14/errors/types/distinct_error.py +++ b/google/ads/googleads/v14/errors/types/distinct_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"DistinctErrorEnum",}, + manifest={ + "DistinctErrorEnum", + }, ) class DistinctErrorEnum(proto.Message): - r"""Container for enum describing possible distinct errors. - """ + r"""Container for enum describing possible distinct errors.""" class DistinctError(proto.Enum): r"""Enum describing possible distinct errors.""" diff --git a/google/ads/googleads/v14/errors/types/enum_error.py b/google/ads/googleads/v14/errors/types/enum_error.py index 7d5a84839..218aa7538 100644 --- a/google/ads/googleads/v14/errors/types/enum_error.py +++ b/google/ads/googleads/v14/errors/types/enum_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"EnumErrorEnum",}, + manifest={ + "EnumErrorEnum", + }, ) class EnumErrorEnum(proto.Message): - r"""Container for enum describing possible enum errors. - """ + r"""Container for enum describing possible enum errors.""" class EnumError(proto.Enum): r"""Enum describing possible enum errors.""" diff --git a/google/ads/googleads/v14/errors/types/errors.py b/google/ads/googleads/v14/errors/types/errors.py index cc65b5e32..e9278580a 100644 --- a/google/ads/googleads/v14/errors/types/errors.py +++ b/google/ads/googleads/v14/errors/types/errors.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -398,6 +398,9 @@ from google.ads.googleads.v14.errors.types import ( resource_count_limit_exceeded_error as gage_resource_count_limit_exceeded_error, ) +from google.ads.googleads.v14.errors.types import ( + search_term_insight_error as gage_search_term_insight_error, +) from google.ads.googleads.v14.errors.types import ( setting_error as gage_setting_error, ) @@ -470,10 +473,13 @@ class GoogleAdsFailure(proto.Message): """ errors: MutableSequence["GoogleAdsError"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="GoogleAdsError", + proto.MESSAGE, + number=1, + message="GoogleAdsError", ) request_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -497,19 +503,28 @@ class GoogleAdsError(proto.Message): """ error_code: "ErrorCode" = proto.Field( - proto.MESSAGE, number=1, message="ErrorCode", + proto.MESSAGE, + number=1, + message="ErrorCode", ) message: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) trigger: value.Value = proto.Field( - proto.MESSAGE, number=3, message=value.Value, + proto.MESSAGE, + number=3, + message=value.Value, ) location: "ErrorLocation" = proto.Field( - proto.MESSAGE, number=4, message="ErrorLocation", + proto.MESSAGE, + number=4, + message="ErrorLocation", ) details: "ErrorDetails" = proto.Field( - proto.MESSAGE, number=5, message="ErrorDetails", + proto.MESSAGE, + number=5, + message="ErrorDetails", ) @@ -1112,6 +1127,10 @@ class ErrorCode(proto.Message): audience_error (google.ads.googleads.v14.errors.types.AudienceErrorEnum.AudienceError): The reasons for the audience error + This field is a member of `oneof`_ ``error_code``. + search_term_insight_error (google.ads.googleads.v14.errors.types.SearchTermInsightErrorEnum.SearchTermInsightError): + The reasons for the Search term insight error + This field is a member of `oneof`_ ``error_code``. smart_campaign_error (google.ads.googleads.v14.errors.types.SmartCampaignErrorEnum.SmartCampaignError): The reasons for the Smart campaign error @@ -1136,11 +1155,13 @@ class ErrorCode(proto.Message): This field is a member of `oneof`_ ``error_code``. """ - request_error: gage_request_error.RequestErrorEnum.RequestError = proto.Field( - proto.ENUM, - number=1, - oneof="error_code", - enum=gage_request_error.RequestErrorEnum.RequestError, + request_error: gage_request_error.RequestErrorEnum.RequestError = ( + proto.Field( + proto.ENUM, + number=1, + oneof="error_code", + enum=gage_request_error.RequestErrorEnum.RequestError, + ) ) bidding_strategy_error: gage_bidding_strategy_error.BiddingStrategyErrorEnum.BiddingStrategyError = proto.Field( proto.ENUM, @@ -1148,11 +1169,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_bidding_strategy_error.BiddingStrategyErrorEnum.BiddingStrategyError, ) - url_field_error: gage_url_field_error.UrlFieldErrorEnum.UrlFieldError = proto.Field( - proto.ENUM, - number=3, - oneof="error_code", - enum=gage_url_field_error.UrlFieldErrorEnum.UrlFieldError, + url_field_error: gage_url_field_error.UrlFieldErrorEnum.UrlFieldError = ( + proto.Field( + proto.ENUM, + number=3, + oneof="error_code", + enum=gage_url_field_error.UrlFieldErrorEnum.UrlFieldError, + ) ) list_operation_error: gage_list_operation_error.ListOperationErrorEnum.ListOperationError = proto.Field( proto.ENUM, @@ -1184,11 +1207,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_authorization_error.AuthorizationErrorEnum.AuthorizationError, ) - internal_error: gage_internal_error.InternalErrorEnum.InternalError = proto.Field( - proto.ENUM, - number=10, - oneof="error_code", - enum=gage_internal_error.InternalErrorEnum.InternalError, + internal_error: gage_internal_error.InternalErrorEnum.InternalError = ( + proto.Field( + proto.ENUM, + number=10, + oneof="error_code", + enum=gage_internal_error.InternalErrorEnum.InternalError, + ) ) quota_error: gage_quota_error.QuotaErrorEnum.QuotaError = proto.Field( proto.ENUM, @@ -1202,11 +1227,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_ad_error.AdErrorEnum.AdError, ) - ad_group_error: gage_ad_group_error.AdGroupErrorEnum.AdGroupError = proto.Field( - proto.ENUM, - number=13, - oneof="error_code", - enum=gage_ad_group_error.AdGroupErrorEnum.AdGroupError, + ad_group_error: gage_ad_group_error.AdGroupErrorEnum.AdGroupError = ( + proto.Field( + proto.ENUM, + number=13, + oneof="error_code", + enum=gage_ad_group_error.AdGroupErrorEnum.AdGroupError, + ) ) campaign_budget_error: gage_campaign_budget_error.CampaignBudgetErrorEnum.CampaignBudgetError = proto.Field( proto.ENUM, @@ -1214,11 +1241,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_campaign_budget_error.CampaignBudgetErrorEnum.CampaignBudgetError, ) - campaign_error: gage_campaign_error.CampaignErrorEnum.CampaignError = proto.Field( - proto.ENUM, - number=15, - oneof="error_code", - enum=gage_campaign_error.CampaignErrorEnum.CampaignError, + campaign_error: gage_campaign_error.CampaignErrorEnum.CampaignError = ( + proto.Field( + proto.ENUM, + number=15, + oneof="error_code", + enum=gage_campaign_error.CampaignErrorEnum.CampaignError, + ) ) authentication_error: gage_authentication_error.AuthenticationErrorEnum.AuthenticationError = proto.Field( proto.ENUM, @@ -1304,17 +1333,21 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_asset_set_link_error.AssetSetLinkErrorEnum.AssetSetLinkError, ) - asset_set_error: gage_asset_set_error.AssetSetErrorEnum.AssetSetError = proto.Field( - proto.ENUM, - number=152, - oneof="error_code", - enum=gage_asset_set_error.AssetSetErrorEnum.AssetSetError, + asset_set_error: gage_asset_set_error.AssetSetErrorEnum.AssetSetError = ( + proto.Field( + proto.ENUM, + number=152, + oneof="error_code", + enum=gage_asset_set_error.AssetSetErrorEnum.AssetSetError, + ) ) - bidding_error: gage_bidding_error.BiddingErrorEnum.BiddingError = proto.Field( - proto.ENUM, - number=26, - oneof="error_code", - enum=gage_bidding_error.BiddingErrorEnum.BiddingError, + bidding_error: gage_bidding_error.BiddingErrorEnum.BiddingError = ( + proto.Field( + proto.ENUM, + number=26, + oneof="error_code", + enum=gage_bidding_error.BiddingErrorEnum.BiddingError, + ) ) campaign_criterion_error: gage_campaign_criterion_error.CampaignCriterionErrorEnum.CampaignCriterionError = proto.Field( proto.ENUM, @@ -1352,11 +1385,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_country_code_error.CountryCodeErrorEnum.CountryCodeError, ) - criterion_error: gage_criterion_error.CriterionErrorEnum.CriterionError = proto.Field( - proto.ENUM, - number=32, - oneof="error_code", - enum=gage_criterion_error.CriterionErrorEnum.CriterionError, + criterion_error: gage_criterion_error.CriterionErrorEnum.CriterionError = ( + proto.Field( + proto.ENUM, + number=32, + oneof="error_code", + enum=gage_criterion_error.CriterionErrorEnum.CriterionError, + ) ) custom_conversion_goal_error: gage_custom_conversion_goal_error.CustomConversionGoalErrorEnum.CustomConversionGoalError = proto.Field( proto.ENUM, @@ -1370,11 +1405,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_customer_customizer_error.CustomerCustomizerErrorEnum.CustomerCustomizerError, ) - customer_error: gage_customer_error.CustomerErrorEnum.CustomerError = proto.Field( - proto.ENUM, - number=90, - oneof="error_code", - enum=gage_customer_error.CustomerErrorEnum.CustomerError, + customer_error: gage_customer_error.CustomerErrorEnum.CustomerError = ( + proto.Field( + proto.ENUM, + number=90, + oneof="error_code", + enum=gage_customer_error.CustomerErrorEnum.CustomerError, + ) ) customizer_attribute_error: gage_customizer_attribute_error.CustomizerAttributeErrorEnum.CustomizerAttributeError = proto.Field( proto.ENUM, @@ -1394,11 +1431,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_date_range_error.DateRangeErrorEnum.DateRangeError, ) - distinct_error: gage_distinct_error.DistinctErrorEnum.DistinctError = proto.Field( - proto.ENUM, - number=35, - oneof="error_code", - enum=gage_distinct_error.DistinctErrorEnum.DistinctError, + distinct_error: gage_distinct_error.DistinctErrorEnum.DistinctError = ( + proto.Field( + proto.ENUM, + number=35, + oneof="error_code", + enum=gage_distinct_error.DistinctErrorEnum.DistinctError, + ) ) feed_attribute_reference_error: gage_feed_attribute_reference_error.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError = proto.Field( proto.ENUM, @@ -1406,11 +1445,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_feed_attribute_reference_error.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError, ) - function_error: gage_function_error.FunctionErrorEnum.FunctionError = proto.Field( - proto.ENUM, - number=37, - oneof="error_code", - enum=gage_function_error.FunctionErrorEnum.FunctionError, + function_error: gage_function_error.FunctionErrorEnum.FunctionError = ( + proto.Field( + proto.ENUM, + number=37, + oneof="error_code", + enum=gage_function_error.FunctionErrorEnum.FunctionError, + ) ) function_parsing_error: gage_function_parsing_error.FunctionParsingErrorEnum.FunctionParsingError = proto.Field( proto.ENUM, @@ -1472,11 +1513,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_new_resource_creation_error.NewResourceCreationErrorEnum.NewResourceCreationError, ) - not_empty_error: gage_not_empty_error.NotEmptyErrorEnum.NotEmptyError = proto.Field( - proto.ENUM, - number=46, - oneof="error_code", - enum=gage_not_empty_error.NotEmptyErrorEnum.NotEmptyError, + not_empty_error: gage_not_empty_error.NotEmptyErrorEnum.NotEmptyError = ( + proto.Field( + proto.ENUM, + number=46, + oneof="error_code", + enum=gage_not_empty_error.NotEmptyErrorEnum.NotEmptyError, + ) ) null_error: gage_null_error.NullErrorEnum.NullError = proto.Field( proto.ENUM, @@ -1484,11 +1527,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_null_error.NullErrorEnum.NullError, ) - operator_error: gage_operator_error.OperatorErrorEnum.OperatorError = proto.Field( - proto.ENUM, - number=48, - oneof="error_code", - enum=gage_operator_error.OperatorErrorEnum.OperatorError, + operator_error: gage_operator_error.OperatorErrorEnum.OperatorError = ( + proto.Field( + proto.ENUM, + number=48, + oneof="error_code", + enum=gage_operator_error.OperatorErrorEnum.OperatorError, + ) ) range_error: gage_range_error.RangeErrorEnum.RangeError = proto.Field( proto.ENUM, @@ -1508,11 +1553,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_region_code_error.RegionCodeErrorEnum.RegionCodeError, ) - setting_error: gage_setting_error.SettingErrorEnum.SettingError = proto.Field( - proto.ENUM, - number=52, - oneof="error_code", - enum=gage_setting_error.SettingErrorEnum.SettingError, + setting_error: gage_setting_error.SettingErrorEnum.SettingError = ( + proto.Field( + proto.ENUM, + number=52, + oneof="error_code", + enum=gage_setting_error.SettingErrorEnum.SettingError, + ) ) string_format_error: gage_string_format_error.StringFormatErrorEnum.StringFormatError = proto.Field( proto.ENUM, @@ -1556,11 +1603,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_ad_group_bid_modifier_error.AdGroupBidModifierErrorEnum.AdGroupBidModifierError, ) - context_error: gage_context_error.ContextErrorEnum.ContextError = proto.Field( - proto.ENUM, - number=60, - oneof="error_code", - enum=gage_context_error.ContextErrorEnum.ContextError, + context_error: gage_context_error.ContextErrorEnum.ContextError = ( + proto.Field( + proto.ENUM, + number=60, + oneof="error_code", + enum=gage_context_error.ContextErrorEnum.ContextError, + ) ) field_error: gage_field_error.FieldErrorEnum.FieldError = proto.Field( proto.ENUM, @@ -1628,11 +1677,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_header_error.HeaderErrorEnum.HeaderError, ) - database_error: gage_database_error.DatabaseErrorEnum.DatabaseError = proto.Field( - proto.ENUM, - number=67, - oneof="error_code", - enum=gage_database_error.DatabaseErrorEnum.DatabaseError, + database_error: gage_database_error.DatabaseErrorEnum.DatabaseError = ( + proto.Field( + proto.ENUM, + number=67, + oneof="error_code", + enum=gage_database_error.DatabaseErrorEnum.DatabaseError, + ) ) policy_finding_error: gage_policy_finding_error.PolicyFindingErrorEnum.PolicyFindingError = proto.Field( proto.ENUM, @@ -1688,11 +1739,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_account_budget_proposal_error.AccountBudgetProposalErrorEnum.AccountBudgetProposalError, ) - user_list_error: gage_user_list_error.UserListErrorEnum.UserListError = proto.Field( - proto.ENUM, - number=78, - oneof="error_code", - enum=gage_user_list_error.UserListErrorEnum.UserListError, + user_list_error: gage_user_list_error.UserListErrorEnum.UserListError = ( + proto.Field( + proto.ENUM, + number=78, + oneof="error_code", + enum=gage_user_list_error.UserListErrorEnum.UserListError, + ) ) change_event_error: gage_change_event_error.ChangeEventErrorEnum.ChangeEventError = proto.Field( proto.ENUM, @@ -1724,11 +1777,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_campaign_draft_error.CampaignDraftErrorEnum.CampaignDraftError, ) - feed_item_error: gage_feed_item_error.FeedItemErrorEnum.FeedItemError = proto.Field( - proto.ENUM, - number=83, - oneof="error_code", - enum=gage_feed_item_error.FeedItemErrorEnum.FeedItemError, + feed_item_error: gage_feed_item_error.FeedItemErrorEnum.FeedItemError = ( + proto.Field( + proto.ENUM, + number=83, + oneof="error_code", + enum=gage_feed_item_error.FeedItemErrorEnum.FeedItemError, + ) ) label_error: gage_label_error.LabelErrorEnum.LabelError = proto.Field( proto.ENUM, @@ -1898,11 +1953,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_reach_plan_error.ReachPlanErrorEnum.ReachPlanError, ) - invoice_error: gage_invoice_error.InvoiceErrorEnum.InvoiceError = proto.Field( - proto.ENUM, - number=126, - oneof="error_code", - enum=gage_invoice_error.InvoiceErrorEnum.InvoiceError, + invoice_error: gage_invoice_error.InvoiceErrorEnum.InvoiceError = ( + proto.Field( + proto.ENUM, + number=126, + oneof="error_code", + enum=gage_invoice_error.InvoiceErrorEnum.InvoiceError, + ) ) payments_account_error: gage_payments_account_error.PaymentsAccountErrorEnum.PaymentsAccountError = proto.Field( proto.ENUM, @@ -1910,11 +1967,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_payments_account_error.PaymentsAccountErrorEnum.PaymentsAccountError, ) - time_zone_error: gage_time_zone_error.TimeZoneErrorEnum.TimeZoneError = proto.Field( - proto.ENUM, - number=128, - oneof="error_code", - enum=gage_time_zone_error.TimeZoneErrorEnum.TimeZoneError, + time_zone_error: gage_time_zone_error.TimeZoneErrorEnum.TimeZoneError = ( + proto.Field( + proto.ENUM, + number=128, + oneof="error_code", + enum=gage_time_zone_error.TimeZoneErrorEnum.TimeZoneError, + ) ) asset_link_error: gage_asset_link_error.AssetLinkErrorEnum.AssetLinkError = proto.Field( proto.ENUM, @@ -1922,17 +1981,21 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_asset_link_error.AssetLinkErrorEnum.AssetLinkError, ) - user_data_error: gage_user_data_error.UserDataErrorEnum.UserDataError = proto.Field( - proto.ENUM, - number=130, - oneof="error_code", - enum=gage_user_data_error.UserDataErrorEnum.UserDataError, + user_data_error: gage_user_data_error.UserDataErrorEnum.UserDataError = ( + proto.Field( + proto.ENUM, + number=130, + oneof="error_code", + enum=gage_user_data_error.UserDataErrorEnum.UserDataError, + ) ) - batch_job_error: gage_batch_job_error.BatchJobErrorEnum.BatchJobError = proto.Field( - proto.ENUM, - number=131, - oneof="error_code", - enum=gage_batch_job_error.BatchJobErrorEnum.BatchJobError, + batch_job_error: gage_batch_job_error.BatchJobErrorEnum.BatchJobError = ( + proto.Field( + proto.ENUM, + number=131, + oneof="error_code", + enum=gage_batch_job_error.BatchJobErrorEnum.BatchJobError, + ) ) account_link_error: gage_account_link_error.AccountLinkErrorEnum.AccountLinkError = proto.Field( proto.ENUM, @@ -1958,11 +2021,19 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_custom_audience_error.CustomAudienceErrorEnum.CustomAudienceError, ) - audience_error: gage_audience_error.AudienceErrorEnum.AudienceError = proto.Field( + audience_error: gage_audience_error.AudienceErrorEnum.AudienceError = ( + proto.Field( + proto.ENUM, + number=164, + oneof="error_code", + enum=gage_audience_error.AudienceErrorEnum.AudienceError, + ) + ) + search_term_insight_error: gage_search_term_insight_error.SearchTermInsightErrorEnum.SearchTermInsightError = proto.Field( proto.ENUM, - number=164, + number=174, oneof="error_code", - enum=gage_audience_error.AudienceErrorEnum.AudienceError, + enum=gage_search_term_insight_error.SearchTermInsightErrorEnum.SearchTermInsightError, ) smart_campaign_error: gage_smart_campaign_error.SmartCampaignErrorEnum.SmartCampaignError = proto.Field( proto.ENUM, @@ -1988,11 +2059,13 @@ class ErrorCode(proto.Message): oneof="error_code", enum=gage_customer_sk_ad_network_conversion_value_schema_error.CustomerSkAdNetworkConversionValueSchemaErrorEnum.CustomerSkAdNetworkConversionValueSchemaError, ) - currency_error: gage_currency_error.CurrencyErrorEnum.CurrencyError = proto.Field( - proto.ENUM, - number=171, - oneof="error_code", - enum=gage_currency_error.CurrencyErrorEnum.CurrencyError, + currency_error: gage_currency_error.CurrencyErrorEnum.CurrencyError = ( + proto.Field( + proto.ENUM, + number=171, + oneof="error_code", + enum=gage_currency_error.CurrencyErrorEnum.CurrencyError, + ) ) @@ -2021,16 +2094,21 @@ class FieldPathElement(proto.Message): """ field_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) index: int = proto.Field( - proto.INT32, number=3, optional=True, + proto.INT32, + number=3, + optional=True, ) field_path_elements: MutableSequence[ FieldPathElement ] = proto.RepeatedField( - proto.MESSAGE, number=2, message=FieldPathElement, + proto.MESSAGE, + number=2, + message=FieldPathElement, ) @@ -2056,19 +2134,28 @@ class ErrorDetails(proto.Message): """ unpublished_error_code: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) policy_violation_details: "PolicyViolationDetails" = proto.Field( - proto.MESSAGE, number=2, message="PolicyViolationDetails", + proto.MESSAGE, + number=2, + message="PolicyViolationDetails", ) policy_finding_details: "PolicyFindingDetails" = proto.Field( - proto.MESSAGE, number=3, message="PolicyFindingDetails", + proto.MESSAGE, + number=3, + message="PolicyFindingDetails", ) quota_error_details: "QuotaErrorDetails" = proto.Field( - proto.MESSAGE, number=4, message="QuotaErrorDetails", + proto.MESSAGE, + number=4, + message="QuotaErrorDetails", ) resource_count_details: "ResourceCountDetails" = proto.Field( - proto.MESSAGE, number=5, message="ResourceCountDetails", + proto.MESSAGE, + number=5, + message="ResourceCountDetails", ) @@ -2093,16 +2180,21 @@ class PolicyViolationDetails(proto.Message): """ external_policy_description: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) key: policy.PolicyViolationKey = proto.Field( - proto.MESSAGE, number=4, message=policy.PolicyViolationKey, + proto.MESSAGE, + number=4, + message=policy.PolicyViolationKey, ) external_policy_name: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) is_exemptible: bool = proto.Field( - proto.BOOL, number=6, + proto.BOOL, + number=6, ) @@ -2122,7 +2214,9 @@ class PolicyFindingDetails(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=1, + message=policy.PolicyTopicEntry, ) @@ -2148,13 +2242,18 @@ class QuotaRateScope(proto.Enum): DEVELOPER = 3 rate_scope: QuotaRateScope = proto.Field( - proto.ENUM, number=1, enum=QuotaRateScope, + proto.ENUM, + number=1, + enum=QuotaRateScope, ) rate_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) retry_delay: duration_pb2.Duration = proto.Field( - proto.MESSAGE, number=3, message=duration_pb2.Duration, + proto.MESSAGE, + number=3, + message=duration_pb2.Duration, ) @@ -2179,21 +2278,27 @@ class ResourceCountDetails(proto.Message): """ enclosing_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) enclosing_resource: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) limit: int = proto.Field( - proto.INT32, number=2, + proto.INT32, + number=2, ) - limit_type: resource_limit_type.ResourceLimitTypeEnum.ResourceLimitType = proto.Field( - proto.ENUM, - number=3, - enum=resource_limit_type.ResourceLimitTypeEnum.ResourceLimitType, + limit_type: resource_limit_type.ResourceLimitTypeEnum.ResourceLimitType = ( + proto.Field( + proto.ENUM, + number=3, + enum=resource_limit_type.ResourceLimitTypeEnum.ResourceLimitType, + ) ) existing_count: int = proto.Field( - proto.INT32, number=4, + proto.INT32, + number=4, ) diff --git a/google/ads/googleads/v14/errors/types/experiment_arm_error.py b/google/ads/googleads/v14/errors/types/experiment_arm_error.py index e238a841d..d70ca8d81 100644 --- a/google/ads/googleads/v14/errors/types/experiment_arm_error.py +++ b/google/ads/googleads/v14/errors/types/experiment_arm_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ExperimentArmErrorEnum",}, + manifest={ + "ExperimentArmErrorEnum", + }, ) class ExperimentArmErrorEnum(proto.Message): - r"""Container for enum describing possible experiment arm error. - """ + r"""Container for enum describing possible experiment arm error.""" class ExperimentArmError(proto.Enum): r"""Enum describing possible experiment arm errors.""" diff --git a/google/ads/googleads/v14/errors/types/experiment_error.py b/google/ads/googleads/v14/errors/types/experiment_error.py index e431a5234..33d9022c3 100644 --- a/google/ads/googleads/v14/errors/types/experiment_error.py +++ b/google/ads/googleads/v14/errors/types/experiment_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ExperimentErrorEnum",}, + manifest={ + "ExperimentErrorEnum", + }, ) class ExperimentErrorEnum(proto.Message): - r"""Container for enum describing possible experiment error. - """ + r"""Container for enum describing possible experiment error.""" class ExperimentError(proto.Enum): r"""Enum describing possible experiment errors.""" @@ -58,6 +59,9 @@ class ExperimentError(proto.Enum): CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET = 23 CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET = 24 STATUS_TRANSITION_INVALID = 25 + DUPLICATE_EXPERIMENT_CAMPAIGN_NAME = 26 + CANNOT_REMOVE_IN_CREATION_EXPERIMENT = 27 + CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES = 28 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/extension_feed_item_error.py b/google/ads/googleads/v14/errors/types/extension_feed_item_error.py index 95988174d..821302705 100644 --- a/google/ads/googleads/v14/errors/types/extension_feed_item_error.py +++ b/google/ads/googleads/v14/errors/types/extension_feed_item_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ExtensionFeedItemErrorEnum",}, + manifest={ + "ExtensionFeedItemErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/extension_setting_error.py b/google/ads/googleads/v14/errors/types/extension_setting_error.py index 471013d39..23e41dc2f 100644 --- a/google/ads/googleads/v14/errors/types/extension_setting_error.py +++ b/google/ads/googleads/v14/errors/types/extension_setting_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ExtensionSettingErrorEnum",}, + manifest={ + "ExtensionSettingErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/feed_attribute_reference_error.py b/google/ads/googleads/v14/errors/types/feed_attribute_reference_error.py index 35070f745..e65077653 100644 --- a/google/ads/googleads/v14/errors/types/feed_attribute_reference_error.py +++ b/google/ads/googleads/v14/errors/types/feed_attribute_reference_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedAttributeReferenceErrorEnum",}, + manifest={ + "FeedAttributeReferenceErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/feed_error.py b/google/ads/googleads/v14/errors/types/feed_error.py index 1ffa890fa..fb8c50eba 100644 --- a/google/ads/googleads/v14/errors/types/feed_error.py +++ b/google/ads/googleads/v14/errors/types/feed_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedErrorEnum",}, + manifest={ + "FeedErrorEnum", + }, ) class FeedErrorEnum(proto.Message): - r"""Container for enum describing possible feed errors. - """ + r"""Container for enum describing possible feed errors.""" class FeedError(proto.Enum): r"""Enum describing possible feed errors.""" diff --git a/google/ads/googleads/v14/errors/types/feed_item_error.py b/google/ads/googleads/v14/errors/types/feed_item_error.py index 88086d9ac..4aa950a9f 100644 --- a/google/ads/googleads/v14/errors/types/feed_item_error.py +++ b/google/ads/googleads/v14/errors/types/feed_item_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedItemErrorEnum",}, + manifest={ + "FeedItemErrorEnum", + }, ) class FeedItemErrorEnum(proto.Message): - r"""Container for enum describing possible feed item errors. - """ + r"""Container for enum describing possible feed item errors.""" class FeedItemError(proto.Enum): r"""Enum describing possible feed item errors.""" diff --git a/google/ads/googleads/v14/errors/types/feed_item_set_error.py b/google/ads/googleads/v14/errors/types/feed_item_set_error.py index 243ceb1de..cfc313174 100644 --- a/google/ads/googleads/v14/errors/types/feed_item_set_error.py +++ b/google/ads/googleads/v14/errors/types/feed_item_set_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedItemSetErrorEnum",}, + manifest={ + "FeedItemSetErrorEnum", + }, ) class FeedItemSetErrorEnum(proto.Message): - r"""Container for enum describing possible feed item set errors. - """ + r"""Container for enum describing possible feed item set errors.""" class FeedItemSetError(proto.Enum): r"""Enum describing possible feed item set errors.""" diff --git a/google/ads/googleads/v14/errors/types/feed_item_set_link_error.py b/google/ads/googleads/v14/errors/types/feed_item_set_link_error.py index 91f64338e..ab728422b 100644 --- a/google/ads/googleads/v14/errors/types/feed_item_set_link_error.py +++ b/google/ads/googleads/v14/errors/types/feed_item_set_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedItemSetLinkErrorEnum",}, + manifest={ + "FeedItemSetLinkErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/feed_item_target_error.py b/google/ads/googleads/v14/errors/types/feed_item_target_error.py index 848137f4b..3248f2ea8 100644 --- a/google/ads/googleads/v14/errors/types/feed_item_target_error.py +++ b/google/ads/googleads/v14/errors/types/feed_item_target_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedItemTargetErrorEnum",}, + manifest={ + "FeedItemTargetErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/feed_item_validation_error.py b/google/ads/googleads/v14/errors/types/feed_item_validation_error.py index c335a8d0d..405be4e49 100644 --- a/google/ads/googleads/v14/errors/types/feed_item_validation_error.py +++ b/google/ads/googleads/v14/errors/types/feed_item_validation_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedItemValidationErrorEnum",}, + manifest={ + "FeedItemValidationErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/feed_mapping_error.py b/google/ads/googleads/v14/errors/types/feed_mapping_error.py index cc69ef29c..d3e637729 100644 --- a/google/ads/googleads/v14/errors/types/feed_mapping_error.py +++ b/google/ads/googleads/v14/errors/types/feed_mapping_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FeedMappingErrorEnum",}, + manifest={ + "FeedMappingErrorEnum", + }, ) class FeedMappingErrorEnum(proto.Message): - r"""Container for enum describing possible feed item errors. - """ + r"""Container for enum describing possible feed item errors.""" class FeedMappingError(proto.Enum): r"""Enum describing possible feed item errors.""" diff --git a/google/ads/googleads/v14/errors/types/field_error.py b/google/ads/googleads/v14/errors/types/field_error.py index 5163a6d6a..7f39fe109 100644 --- a/google/ads/googleads/v14/errors/types/field_error.py +++ b/google/ads/googleads/v14/errors/types/field_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FieldErrorEnum",}, + manifest={ + "FieldErrorEnum", + }, ) class FieldErrorEnum(proto.Message): - r"""Container for enum describing possible field errors. - """ + r"""Container for enum describing possible field errors.""" class FieldError(proto.Enum): r"""Enum describing possible field errors.""" diff --git a/google/ads/googleads/v14/errors/types/field_mask_error.py b/google/ads/googleads/v14/errors/types/field_mask_error.py index a8eea6d08..e28294f91 100644 --- a/google/ads/googleads/v14/errors/types/field_mask_error.py +++ b/google/ads/googleads/v14/errors/types/field_mask_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FieldMaskErrorEnum",}, + manifest={ + "FieldMaskErrorEnum", + }, ) class FieldMaskErrorEnum(proto.Message): - r"""Container for enum describing possible field mask errors. - """ + r"""Container for enum describing possible field mask errors.""" class FieldMaskError(proto.Enum): r"""Enum describing possible field mask errors.""" diff --git a/google/ads/googleads/v14/errors/types/function_error.py b/google/ads/googleads/v14/errors/types/function_error.py index dacfd0915..44c48b71e 100644 --- a/google/ads/googleads/v14/errors/types/function_error.py +++ b/google/ads/googleads/v14/errors/types/function_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FunctionErrorEnum",}, + manifest={ + "FunctionErrorEnum", + }, ) class FunctionErrorEnum(proto.Message): - r"""Container for enum describing possible function errors. - """ + r"""Container for enum describing possible function errors.""" class FunctionError(proto.Enum): r"""Enum describing possible function errors.""" diff --git a/google/ads/googleads/v14/errors/types/function_parsing_error.py b/google/ads/googleads/v14/errors/types/function_parsing_error.py index ccae937c2..3834405c0 100644 --- a/google/ads/googleads/v14/errors/types/function_parsing_error.py +++ b/google/ads/googleads/v14/errors/types/function_parsing_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"FunctionParsingErrorEnum",}, + manifest={ + "FunctionParsingErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/geo_target_constant_suggestion_error.py b/google/ads/googleads/v14/errors/types/geo_target_constant_suggestion_error.py index cf6e8a6bf..8ba55e587 100644 --- a/google/ads/googleads/v14/errors/types/geo_target_constant_suggestion_error.py +++ b/google/ads/googleads/v14/errors/types/geo_target_constant_suggestion_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"GeoTargetConstantSuggestionErrorEnum",}, + manifest={ + "GeoTargetConstantSuggestionErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/header_error.py b/google/ads/googleads/v14/errors/types/header_error.py index 6637f5020..f8da8c37f 100644 --- a/google/ads/googleads/v14/errors/types/header_error.py +++ b/google/ads/googleads/v14/errors/types/header_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"HeaderErrorEnum",}, + manifest={ + "HeaderErrorEnum", + }, ) class HeaderErrorEnum(proto.Message): - r"""Container for enum describing possible header errors. - """ + r"""Container for enum describing possible header errors.""" class HeaderError(proto.Enum): r"""Enum describing possible header errors.""" diff --git a/google/ads/googleads/v14/errors/types/id_error.py b/google/ads/googleads/v14/errors/types/id_error.py index 67639cef0..5c1c975b9 100644 --- a/google/ads/googleads/v14/errors/types/id_error.py +++ b/google/ads/googleads/v14/errors/types/id_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"IdErrorEnum",}, + manifest={ + "IdErrorEnum", + }, ) class IdErrorEnum(proto.Message): - r"""Container for enum describing possible ID errors. - """ + r"""Container for enum describing possible ID errors.""" class IdError(proto.Enum): r"""Enum describing possible ID errors.""" diff --git a/google/ads/googleads/v14/errors/types/image_error.py b/google/ads/googleads/v14/errors/types/image_error.py index 90e34324c..b1190bb3d 100644 --- a/google/ads/googleads/v14/errors/types/image_error.py +++ b/google/ads/googleads/v14/errors/types/image_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ImageErrorEnum",}, + manifest={ + "ImageErrorEnum", + }, ) class ImageErrorEnum(proto.Message): - r"""Container for enum describing possible image errors. - """ + r"""Container for enum describing possible image errors.""" class ImageError(proto.Enum): r"""Enum describing possible image errors.""" diff --git a/google/ads/googleads/v14/errors/types/internal_error.py b/google/ads/googleads/v14/errors/types/internal_error.py index 0ba405057..fe7f1765b 100644 --- a/google/ads/googleads/v14/errors/types/internal_error.py +++ b/google/ads/googleads/v14/errors/types/internal_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"InternalErrorEnum",}, + manifest={ + "InternalErrorEnum", + }, ) class InternalErrorEnum(proto.Message): - r"""Container for enum describing possible internal errors. - """ + r"""Container for enum describing possible internal errors.""" class InternalError(proto.Enum): r"""Enum describing possible internal errors.""" diff --git a/google/ads/googleads/v14/errors/types/invoice_error.py b/google/ads/googleads/v14/errors/types/invoice_error.py index e8ae1cb83..8d47538ba 100644 --- a/google/ads/googleads/v14/errors/types/invoice_error.py +++ b/google/ads/googleads/v14/errors/types/invoice_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"InvoiceErrorEnum",}, + manifest={ + "InvoiceErrorEnum", + }, ) class InvoiceErrorEnum(proto.Message): - r"""Container for enum describing possible invoice errors. - """ + r"""Container for enum describing possible invoice errors.""" class InvoiceError(proto.Enum): r"""Enum describing possible invoice errors.""" diff --git a/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_error.py b/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_error.py index a5753fe3a..0185914b9 100644 --- a/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_error.py +++ b/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanAdGroupErrorEnum",}, + manifest={ + "KeywordPlanAdGroupErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_keyword_error.py b/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_keyword_error.py index 26032e59d..da2f0c305 100644 --- a/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_keyword_error.py +++ b/google/ads/googleads/v14/errors/types/keyword_plan_ad_group_keyword_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanAdGroupKeywordErrorEnum",}, + manifest={ + "KeywordPlanAdGroupKeywordErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/keyword_plan_campaign_error.py b/google/ads/googleads/v14/errors/types/keyword_plan_campaign_error.py index ec87939fa..a6c189104 100644 --- a/google/ads/googleads/v14/errors/types/keyword_plan_campaign_error.py +++ b/google/ads/googleads/v14/errors/types/keyword_plan_campaign_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanCampaignErrorEnum",}, + manifest={ + "KeywordPlanCampaignErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/keyword_plan_campaign_keyword_error.py b/google/ads/googleads/v14/errors/types/keyword_plan_campaign_keyword_error.py index abe8d1d02..05a7b8fea 100644 --- a/google/ads/googleads/v14/errors/types/keyword_plan_campaign_keyword_error.py +++ b/google/ads/googleads/v14/errors/types/keyword_plan_campaign_keyword_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanCampaignKeywordErrorEnum",}, + manifest={ + "KeywordPlanCampaignKeywordErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/keyword_plan_error.py b/google/ads/googleads/v14/errors/types/keyword_plan_error.py index b02a892a4..c6fa297ef 100644 --- a/google/ads/googleads/v14/errors/types/keyword_plan_error.py +++ b/google/ads/googleads/v14/errors/types/keyword_plan_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanErrorEnum",}, + manifest={ + "KeywordPlanErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/keyword_plan_idea_error.py b/google/ads/googleads/v14/errors/types/keyword_plan_idea_error.py index 4b83be041..b99972556 100644 --- a/google/ads/googleads/v14/errors/types/keyword_plan_idea_error.py +++ b/google/ads/googleads/v14/errors/types/keyword_plan_idea_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanIdeaErrorEnum",}, + manifest={ + "KeywordPlanIdeaErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/label_error.py b/google/ads/googleads/v14/errors/types/label_error.py index ccaf608e8..c1cd288ba 100644 --- a/google/ads/googleads/v14/errors/types/label_error.py +++ b/google/ads/googleads/v14/errors/types/label_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"LabelErrorEnum",}, + manifest={ + "LabelErrorEnum", + }, ) class LabelErrorEnum(proto.Message): - r"""Container for enum describing possible label errors. - """ + r"""Container for enum describing possible label errors.""" class LabelError(proto.Enum): r"""Enum describing possible label errors.""" diff --git a/google/ads/googleads/v14/errors/types/language_code_error.py b/google/ads/googleads/v14/errors/types/language_code_error.py index acd5b4c7c..755767f25 100644 --- a/google/ads/googleads/v14/errors/types/language_code_error.py +++ b/google/ads/googleads/v14/errors/types/language_code_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"LanguageCodeErrorEnum",}, + manifest={ + "LanguageCodeErrorEnum", + }, ) class LanguageCodeErrorEnum(proto.Message): - r"""Container for enum describing language code errors. - """ + r"""Container for enum describing language code errors.""" class LanguageCodeError(proto.Enum): r"""Enum describing language code errors.""" diff --git a/google/ads/googleads/v14/errors/types/list_operation_error.py b/google/ads/googleads/v14/errors/types/list_operation_error.py index 79847c9a2..ff5643461 100644 --- a/google/ads/googleads/v14/errors/types/list_operation_error.py +++ b/google/ads/googleads/v14/errors/types/list_operation_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ListOperationErrorEnum",}, + manifest={ + "ListOperationErrorEnum", + }, ) class ListOperationErrorEnum(proto.Message): - r"""Container for enum describing possible list operation errors. - """ + r"""Container for enum describing possible list operation errors.""" class ListOperationError(proto.Enum): r"""Enum describing possible list operation errors.""" diff --git a/google/ads/googleads/v14/errors/types/manager_link_error.py b/google/ads/googleads/v14/errors/types/manager_link_error.py index 789a495b0..778535958 100644 --- a/google/ads/googleads/v14/errors/types/manager_link_error.py +++ b/google/ads/googleads/v14/errors/types/manager_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ManagerLinkErrorEnum",}, + manifest={ + "ManagerLinkErrorEnum", + }, ) class ManagerLinkErrorEnum(proto.Message): - r"""Container for enum describing possible ManagerLink errors. - """ + r"""Container for enum describing possible ManagerLink errors.""" class ManagerLinkError(proto.Enum): r"""Enum describing possible ManagerLink errors.""" diff --git a/google/ads/googleads/v14/errors/types/media_bundle_error.py b/google/ads/googleads/v14/errors/types/media_bundle_error.py index dadbb9380..b520b60a5 100644 --- a/google/ads/googleads/v14/errors/types/media_bundle_error.py +++ b/google/ads/googleads/v14/errors/types/media_bundle_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"MediaBundleErrorEnum",}, + manifest={ + "MediaBundleErrorEnum", + }, ) class MediaBundleErrorEnum(proto.Message): - r"""Container for enum describing possible media bundle errors. - """ + r"""Container for enum describing possible media bundle errors.""" class MediaBundleError(proto.Enum): r"""Enum describing possible media bundle errors.""" diff --git a/google/ads/googleads/v14/errors/types/media_file_error.py b/google/ads/googleads/v14/errors/types/media_file_error.py index 99383f3ce..f5cf09865 100644 --- a/google/ads/googleads/v14/errors/types/media_file_error.py +++ b/google/ads/googleads/v14/errors/types/media_file_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"MediaFileErrorEnum",}, + manifest={ + "MediaFileErrorEnum", + }, ) class MediaFileErrorEnum(proto.Message): - r"""Container for enum describing possible media file errors. - """ + r"""Container for enum describing possible media file errors.""" class MediaFileError(proto.Enum): r"""Enum describing possible media file errors.""" diff --git a/google/ads/googleads/v14/errors/types/media_upload_error.py b/google/ads/googleads/v14/errors/types/media_upload_error.py index ba2c4c11e..f19a5a98d 100644 --- a/google/ads/googleads/v14/errors/types/media_upload_error.py +++ b/google/ads/googleads/v14/errors/types/media_upload_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"MediaUploadErrorEnum",}, + manifest={ + "MediaUploadErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/merchant_center_error.py b/google/ads/googleads/v14/errors/types/merchant_center_error.py index f635b7905..85bea6858 100644 --- a/google/ads/googleads/v14/errors/types/merchant_center_error.py +++ b/google/ads/googleads/v14/errors/types/merchant_center_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"MerchantCenterErrorEnum",}, + manifest={ + "MerchantCenterErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/multiplier_error.py b/google/ads/googleads/v14/errors/types/multiplier_error.py index 67a7d12fa..337d41fb0 100644 --- a/google/ads/googleads/v14/errors/types/multiplier_error.py +++ b/google/ads/googleads/v14/errors/types/multiplier_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"MultiplierErrorEnum",}, + manifest={ + "MultiplierErrorEnum", + }, ) class MultiplierErrorEnum(proto.Message): - r"""Container for enum describing possible multiplier errors. - """ + r"""Container for enum describing possible multiplier errors.""" class MultiplierError(proto.Enum): r"""Enum describing possible multiplier errors.""" diff --git a/google/ads/googleads/v14/errors/types/mutate_error.py b/google/ads/googleads/v14/errors/types/mutate_error.py index b403b4fd2..dd9a3d505 100644 --- a/google/ads/googleads/v14/errors/types/mutate_error.py +++ b/google/ads/googleads/v14/errors/types/mutate_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"MutateErrorEnum",}, + manifest={ + "MutateErrorEnum", + }, ) class MutateErrorEnum(proto.Message): - r"""Container for enum describing possible mutate errors. - """ + r"""Container for enum describing possible mutate errors.""" class MutateError(proto.Enum): r"""Enum describing possible mutate errors.""" diff --git a/google/ads/googleads/v14/errors/types/new_resource_creation_error.py b/google/ads/googleads/v14/errors/types/new_resource_creation_error.py index c7940a7a3..09576b85a 100644 --- a/google/ads/googleads/v14/errors/types/new_resource_creation_error.py +++ b/google/ads/googleads/v14/errors/types/new_resource_creation_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"NewResourceCreationErrorEnum",}, + manifest={ + "NewResourceCreationErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/not_allowlisted_error.py b/google/ads/googleads/v14/errors/types/not_allowlisted_error.py index d7327ba5d..1c8e5b0ec 100644 --- a/google/ads/googleads/v14/errors/types/not_allowlisted_error.py +++ b/google/ads/googleads/v14/errors/types/not_allowlisted_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"NotAllowlistedErrorEnum",}, + manifest={ + "NotAllowlistedErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/not_empty_error.py b/google/ads/googleads/v14/errors/types/not_empty_error.py index a316e2e20..fbfd884f4 100644 --- a/google/ads/googleads/v14/errors/types/not_empty_error.py +++ b/google/ads/googleads/v14/errors/types/not_empty_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"NotEmptyErrorEnum",}, + manifest={ + "NotEmptyErrorEnum", + }, ) class NotEmptyErrorEnum(proto.Message): - r"""Container for enum describing possible not empty errors. - """ + r"""Container for enum describing possible not empty errors.""" class NotEmptyError(proto.Enum): r"""Enum describing possible not empty errors.""" diff --git a/google/ads/googleads/v14/errors/types/null_error.py b/google/ads/googleads/v14/errors/types/null_error.py index 73deba84c..c0043122b 100644 --- a/google/ads/googleads/v14/errors/types/null_error.py +++ b/google/ads/googleads/v14/errors/types/null_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"NullErrorEnum",}, + manifest={ + "NullErrorEnum", + }, ) class NullErrorEnum(proto.Message): - r"""Container for enum describing possible null errors. - """ + r"""Container for enum describing possible null errors.""" class NullError(proto.Enum): r"""Enum describing possible null errors.""" diff --git a/google/ads/googleads/v14/errors/types/offline_user_data_job_error.py b/google/ads/googleads/v14/errors/types/offline_user_data_job_error.py index 825aecad7..05557b79d 100644 --- a/google/ads/googleads/v14/errors/types/offline_user_data_job_error.py +++ b/google/ads/googleads/v14/errors/types/offline_user_data_job_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"OfflineUserDataJobErrorEnum",}, + manifest={ + "OfflineUserDataJobErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/operation_access_denied_error.py b/google/ads/googleads/v14/errors/types/operation_access_denied_error.py index 94c369a87..c2724c0b0 100644 --- a/google/ads/googleads/v14/errors/types/operation_access_denied_error.py +++ b/google/ads/googleads/v14/errors/types/operation_access_denied_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"OperationAccessDeniedErrorEnum",}, + manifest={ + "OperationAccessDeniedErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/operator_error.py b/google/ads/googleads/v14/errors/types/operator_error.py index ed04fb6b6..a123f65e7 100644 --- a/google/ads/googleads/v14/errors/types/operator_error.py +++ b/google/ads/googleads/v14/errors/types/operator_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"OperatorErrorEnum",}, + manifest={ + "OperatorErrorEnum", + }, ) class OperatorErrorEnum(proto.Message): - r"""Container for enum describing possible operator errors. - """ + r"""Container for enum describing possible operator errors.""" class OperatorError(proto.Enum): r"""Enum describing possible operator errors.""" diff --git a/google/ads/googleads/v14/errors/types/partial_failure_error.py b/google/ads/googleads/v14/errors/types/partial_failure_error.py index 99fcfe2eb..87e12877a 100644 --- a/google/ads/googleads/v14/errors/types/partial_failure_error.py +++ b/google/ads/googleads/v14/errors/types/partial_failure_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"PartialFailureErrorEnum",}, + manifest={ + "PartialFailureErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/payments_account_error.py b/google/ads/googleads/v14/errors/types/payments_account_error.py index 495b69ed0..6251149e5 100644 --- a/google/ads/googleads/v14/errors/types/payments_account_error.py +++ b/google/ads/googleads/v14/errors/types/payments_account_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"PaymentsAccountErrorEnum",}, + manifest={ + "PaymentsAccountErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/policy_finding_error.py b/google/ads/googleads/v14/errors/types/policy_finding_error.py index 86a9edfb7..35de1fc93 100644 --- a/google/ads/googleads/v14/errors/types/policy_finding_error.py +++ b/google/ads/googleads/v14/errors/types/policy_finding_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"PolicyFindingErrorEnum",}, + manifest={ + "PolicyFindingErrorEnum", + }, ) class PolicyFindingErrorEnum(proto.Message): - r"""Container for enum describing possible policy finding errors. - """ + r"""Container for enum describing possible policy finding errors.""" class PolicyFindingError(proto.Enum): r"""Enum describing possible policy finding errors.""" diff --git a/google/ads/googleads/v14/errors/types/policy_validation_parameter_error.py b/google/ads/googleads/v14/errors/types/policy_validation_parameter_error.py index c18cd4d42..944241c7b 100644 --- a/google/ads/googleads/v14/errors/types/policy_validation_parameter_error.py +++ b/google/ads/googleads/v14/errors/types/policy_validation_parameter_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"PolicyValidationParameterErrorEnum",}, + manifest={ + "PolicyValidationParameterErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/policy_violation_error.py b/google/ads/googleads/v14/errors/types/policy_violation_error.py index 993f410f0..85f2d3803 100644 --- a/google/ads/googleads/v14/errors/types/policy_violation_error.py +++ b/google/ads/googleads/v14/errors/types/policy_violation_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"PolicyViolationErrorEnum",}, + manifest={ + "PolicyViolationErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/query_error.py b/google/ads/googleads/v14/errors/types/query_error.py index 70fbdf3b1..d72459fda 100644 --- a/google/ads/googleads/v14/errors/types/query_error.py +++ b/google/ads/googleads/v14/errors/types/query_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"QueryErrorEnum",}, + manifest={ + "QueryErrorEnum", + }, ) class QueryErrorEnum(proto.Message): - r"""Container for enum describing possible query errors. - """ + r"""Container for enum describing possible query errors.""" class QueryError(proto.Enum): r"""Enum describing possible query errors.""" diff --git a/google/ads/googleads/v14/errors/types/quota_error.py b/google/ads/googleads/v14/errors/types/quota_error.py index 0c9e8ad4e..e3bd7f142 100644 --- a/google/ads/googleads/v14/errors/types/quota_error.py +++ b/google/ads/googleads/v14/errors/types/quota_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"QuotaErrorEnum",}, + manifest={ + "QuotaErrorEnum", + }, ) class QuotaErrorEnum(proto.Message): - r"""Container for enum describing possible quota errors. - """ + r"""Container for enum describing possible quota errors.""" class QuotaError(proto.Enum): r"""Enum describing possible quota errors.""" diff --git a/google/ads/googleads/v14/errors/types/range_error.py b/google/ads/googleads/v14/errors/types/range_error.py index b381d1479..2f601b2a7 100644 --- a/google/ads/googleads/v14/errors/types/range_error.py +++ b/google/ads/googleads/v14/errors/types/range_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"RangeErrorEnum",}, + manifest={ + "RangeErrorEnum", + }, ) class RangeErrorEnum(proto.Message): - r"""Container for enum describing possible range errors. - """ + r"""Container for enum describing possible range errors.""" class RangeError(proto.Enum): r"""Enum describing possible range errors.""" diff --git a/google/ads/googleads/v14/errors/types/reach_plan_error.py b/google/ads/googleads/v14/errors/types/reach_plan_error.py index 70355310f..fcecbdea8 100644 --- a/google/ads/googleads/v14/errors/types/reach_plan_error.py +++ b/google/ads/googleads/v14/errors/types/reach_plan_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ReachPlanErrorEnum",}, + manifest={ + "ReachPlanErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/recommendation_error.py b/google/ads/googleads/v14/errors/types/recommendation_error.py index 23f96e59b..19b5f07ce 100644 --- a/google/ads/googleads/v14/errors/types/recommendation_error.py +++ b/google/ads/googleads/v14/errors/types/recommendation_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"RecommendationErrorEnum",}, + manifest={ + "RecommendationErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/region_code_error.py b/google/ads/googleads/v14/errors/types/region_code_error.py index 347dcf7a7..1adfe550b 100644 --- a/google/ads/googleads/v14/errors/types/region_code_error.py +++ b/google/ads/googleads/v14/errors/types/region_code_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"RegionCodeErrorEnum",}, + manifest={ + "RegionCodeErrorEnum", + }, ) class RegionCodeErrorEnum(proto.Message): - r"""Container for enum describing possible region code errors. - """ + r"""Container for enum describing possible region code errors.""" class RegionCodeError(proto.Enum): r"""Enum describing possible region code errors.""" diff --git a/google/ads/googleads/v14/errors/types/request_error.py b/google/ads/googleads/v14/errors/types/request_error.py index 6dc07b3dd..8a0ab3075 100644 --- a/google/ads/googleads/v14/errors/types/request_error.py +++ b/google/ads/googleads/v14/errors/types/request_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"RequestErrorEnum",}, + manifest={ + "RequestErrorEnum", + }, ) class RequestErrorEnum(proto.Message): - r"""Container for enum describing possible request errors. - """ + r"""Container for enum describing possible request errors.""" class RequestError(proto.Enum): r"""Enum describing possible request errors.""" @@ -58,6 +59,7 @@ class RequestError(proto.Enum): TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32 RPC_DEADLINE_TOO_SHORT = 33 UNSUPPORTED_VERSION = 38 + CLOUD_PROJECT_NOT_FOUND = 39 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/resource_access_denied_error.py b/google/ads/googleads/v14/errors/types/resource_access_denied_error.py index 2925e4166..a05dcf120 100644 --- a/google/ads/googleads/v14/errors/types/resource_access_denied_error.py +++ b/google/ads/googleads/v14/errors/types/resource_access_denied_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ResourceAccessDeniedErrorEnum",}, + manifest={ + "ResourceAccessDeniedErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/resource_count_limit_exceeded_error.py b/google/ads/googleads/v14/errors/types/resource_count_limit_exceeded_error.py index b10d956a2..921c46eea 100644 --- a/google/ads/googleads/v14/errors/types/resource_count_limit_exceeded_error.py +++ b/google/ads/googleads/v14/errors/types/resource_count_limit_exceeded_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ResourceCountLimitExceededErrorEnum",}, + manifest={ + "ResourceCountLimitExceededErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/search_term_insight_error.py b/google/ads/googleads/v14/errors/types/search_term_insight_error.py new file mode 100644 index 000000000..1630a0b5e --- /dev/null +++ b/google/ads/googleads/v14/errors/types/search_term_insight_error.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 +# +# http://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. +# +from __future__ import annotations + + +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.ads.googleads.v14.errors", + marshal="google.ads.googleads.v14", + manifest={ + "SearchTermInsightErrorEnum", + }, +) + + +class SearchTermInsightErrorEnum(proto.Message): + r"""Container for enum describing possible search term insight + errors. + + """ + + class SearchTermInsightError(proto.Enum): + r"""Enum describing possible search term insight errors.""" + UNSPECIFIED = 0 + UNKNOWN = 1 + FILTERING_NOT_ALLOWED_WITH_SEGMENTS = 2 + LIMIT_NOT_ALLOWED_WITH_SEGMENTS = 3 + MISSING_FIELD_IN_SELECT_CLAUSE = 4 + REQUIRES_FILTER_BY_SINGLE_RESOURCE = 5 + SORTING_NOT_ALLOWED_WITH_SEGMENTS = 6 + SUMMARY_ROW_NOT_ALLOWED_WITH_SEGMENTS = 7 + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/errors/types/setting_error.py b/google/ads/googleads/v14/errors/types/setting_error.py index 2e780b242..e452c169f 100644 --- a/google/ads/googleads/v14/errors/types/setting_error.py +++ b/google/ads/googleads/v14/errors/types/setting_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"SettingErrorEnum",}, + manifest={ + "SettingErrorEnum", + }, ) class SettingErrorEnum(proto.Message): - r"""Container for enum describing possible setting errors. - """ + r"""Container for enum describing possible setting errors.""" class SettingError(proto.Enum): r"""Enum describing possible setting errors.""" diff --git a/google/ads/googleads/v14/errors/types/shared_criterion_error.py b/google/ads/googleads/v14/errors/types/shared_criterion_error.py index 14d5c64c3..36fa27ffe 100644 --- a/google/ads/googleads/v14/errors/types/shared_criterion_error.py +++ b/google/ads/googleads/v14/errors/types/shared_criterion_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"SharedCriterionErrorEnum",}, + manifest={ + "SharedCriterionErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/shared_set_error.py b/google/ads/googleads/v14/errors/types/shared_set_error.py index afd23145f..1242ddaae 100644 --- a/google/ads/googleads/v14/errors/types/shared_set_error.py +++ b/google/ads/googleads/v14/errors/types/shared_set_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"SharedSetErrorEnum",}, + manifest={ + "SharedSetErrorEnum", + }, ) class SharedSetErrorEnum(proto.Message): - r"""Container for enum describing possible shared set errors. - """ + r"""Container for enum describing possible shared set errors.""" class SharedSetError(proto.Enum): r"""Enum describing possible shared set errors.""" diff --git a/google/ads/googleads/v14/errors/types/size_limit_error.py b/google/ads/googleads/v14/errors/types/size_limit_error.py index c23a717a0..55fb22e4f 100644 --- a/google/ads/googleads/v14/errors/types/size_limit_error.py +++ b/google/ads/googleads/v14/errors/types/size_limit_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"SizeLimitErrorEnum",}, + manifest={ + "SizeLimitErrorEnum", + }, ) class SizeLimitErrorEnum(proto.Message): - r"""Container for enum describing possible size limit errors. - """ + r"""Container for enum describing possible size limit errors.""" class SizeLimitError(proto.Enum): r"""Enum describing possible size limit errors.""" diff --git a/google/ads/googleads/v14/errors/types/smart_campaign_error.py b/google/ads/googleads/v14/errors/types/smart_campaign_error.py index 8f192f15f..56857bb4e 100644 --- a/google/ads/googleads/v14/errors/types/smart_campaign_error.py +++ b/google/ads/googleads/v14/errors/types/smart_campaign_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"SmartCampaignErrorEnum",}, + manifest={ + "SmartCampaignErrorEnum", + }, ) class SmartCampaignErrorEnum(proto.Message): - r"""Container for enum describing possible Smart campaign errors. - """ + r"""Container for enum describing possible Smart campaign errors.""" class SmartCampaignError(proto.Enum): r"""Enum describing possible Smart campaign errors.""" diff --git a/google/ads/googleads/v14/errors/types/string_format_error.py b/google/ads/googleads/v14/errors/types/string_format_error.py index 31c8cca28..5321f1da8 100644 --- a/google/ads/googleads/v14/errors/types/string_format_error.py +++ b/google/ads/googleads/v14/errors/types/string_format_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"StringFormatErrorEnum",}, + manifest={ + "StringFormatErrorEnum", + }, ) class StringFormatErrorEnum(proto.Message): - r"""Container for enum describing possible string format errors. - """ + r"""Container for enum describing possible string format errors.""" class StringFormatError(proto.Enum): r"""Enum describing possible string format errors.""" diff --git a/google/ads/googleads/v14/errors/types/string_length_error.py b/google/ads/googleads/v14/errors/types/string_length_error.py index ee24adf0d..3e22a8b07 100644 --- a/google/ads/googleads/v14/errors/types/string_length_error.py +++ b/google/ads/googleads/v14/errors/types/string_length_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"StringLengthErrorEnum",}, + manifest={ + "StringLengthErrorEnum", + }, ) class StringLengthErrorEnum(proto.Message): - r"""Container for enum describing possible string length errors. - """ + r"""Container for enum describing possible string length errors.""" class StringLengthError(proto.Enum): r"""Enum describing possible string length errors.""" diff --git a/google/ads/googleads/v14/errors/types/third_party_app_analytics_link_error.py b/google/ads/googleads/v14/errors/types/third_party_app_analytics_link_error.py index ff6a90a05..64a777099 100644 --- a/google/ads/googleads/v14/errors/types/third_party_app_analytics_link_error.py +++ b/google/ads/googleads/v14/errors/types/third_party_app_analytics_link_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"ThirdPartyAppAnalyticsLinkErrorEnum",}, + manifest={ + "ThirdPartyAppAnalyticsLinkErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/errors/types/time_zone_error.py b/google/ads/googleads/v14/errors/types/time_zone_error.py index fe60deb18..8aaff3ab3 100644 --- a/google/ads/googleads/v14/errors/types/time_zone_error.py +++ b/google/ads/googleads/v14/errors/types/time_zone_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"TimeZoneErrorEnum",}, + manifest={ + "TimeZoneErrorEnum", + }, ) class TimeZoneErrorEnum(proto.Message): - r"""Container for enum describing possible time zone errors. - """ + r"""Container for enum describing possible time zone errors.""" class TimeZoneError(proto.Enum): r"""Enum describing possible currency code errors.""" diff --git a/google/ads/googleads/v14/errors/types/url_field_error.py b/google/ads/googleads/v14/errors/types/url_field_error.py index 5e72f8a70..fb1d53927 100644 --- a/google/ads/googleads/v14/errors/types/url_field_error.py +++ b/google/ads/googleads/v14/errors/types/url_field_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"UrlFieldErrorEnum",}, + manifest={ + "UrlFieldErrorEnum", + }, ) class UrlFieldErrorEnum(proto.Message): - r"""Container for enum describing possible url field errors. - """ + r"""Container for enum describing possible url field errors.""" class UrlFieldError(proto.Enum): r"""Enum describing possible url field errors.""" diff --git a/google/ads/googleads/v14/errors/types/user_data_error.py b/google/ads/googleads/v14/errors/types/user_data_error.py index 157d472a7..e03a8c988 100644 --- a/google/ads/googleads/v14/errors/types/user_data_error.py +++ b/google/ads/googleads/v14/errors/types/user_data_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"UserDataErrorEnum",}, + manifest={ + "UserDataErrorEnum", + }, ) class UserDataErrorEnum(proto.Message): - r"""Container for enum describing possible user data errors. - """ + r"""Container for enum describing possible user data errors.""" class UserDataError(proto.Enum): r"""Enum describing possible request errors.""" diff --git a/google/ads/googleads/v14/errors/types/user_list_error.py b/google/ads/googleads/v14/errors/types/user_list_error.py index 7dded2870..6fa53f192 100644 --- a/google/ads/googleads/v14/errors/types/user_list_error.py +++ b/google/ads/googleads/v14/errors/types/user_list_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,13 +22,14 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"UserListErrorEnum",}, + manifest={ + "UserListErrorEnum", + }, ) class UserListErrorEnum(proto.Message): - r"""Container for enum describing possible user list errors. - """ + r"""Container for enum describing possible user list errors.""" class UserListError(proto.Enum): r"""Enum describing possible user list errors.""" diff --git a/google/ads/googleads/v14/errors/types/youtube_video_registration_error.py b/google/ads/googleads/v14/errors/types/youtube_video_registration_error.py index 3e1f8cc4b..90e3ceed6 100644 --- a/google/ads/googleads/v14/errors/types/youtube_video_registration_error.py +++ b/google/ads/googleads/v14/errors/types/youtube_video_registration_error.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", - manifest={"YoutubeVideoRegistrationErrorEnum",}, + manifest={ + "YoutubeVideoRegistrationErrorEnum", + }, ) diff --git a/google/ads/googleads/v14/resources/__init__.py b/google/ads/googleads/v14/resources/__init__.py index b11f238d1..1b2c7230d 100644 --- a/google/ads/googleads/v14/resources/__init__.py +++ b/google/ads/googleads/v14/resources/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -80,6 +80,7 @@ "CampaignFeed", "CampaignGroup", "CampaignLabel", + "CampaignSearchTermInsight", "CampaignSharedSet", "CampaignSimulation", "CarrierConstant", @@ -101,6 +102,7 @@ "CustomInterestMember", "CustomLeadFormSubmissionField", "Customer", + "CustomerAgreementSetting", "CustomerAsset", "CustomerAssetSet", "CustomerClient", @@ -112,6 +114,7 @@ "CustomerLabel", "CustomerManagerLink", "CustomerNegativeCriterion", + "CustomerSearchTermInsight", "CustomerSkAdNetworkConversionValueSchema", "CustomerUserAccess", "CustomerUserAccessInvitation", @@ -169,6 +172,7 @@ "LeadFormSubmissionField", "LifeEvent", "ListingGroupFilterDimension", + "ListingGroupFilterDimensionPath", "LocationView", "ManagedPlacementView", "MediaAudio", diff --git a/google/ads/googleads/v14/resources/services/__init__.py b/google/ads/googleads/v14/resources/services/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/resources/services/__init__.py +++ b/google/ads/googleads/v14/resources/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/resources/types/__init__.py b/google/ads/googleads/v14/resources/types/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/resources/types/__init__.py +++ b/google/ads/googleads/v14/resources/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/resources/types/accessible_bidding_strategy.py b/google/ads/googleads/v14/resources/types/accessible_bidding_strategy.py index cd43ad44d..e9349b45e 100644 --- a/google/ads/googleads/v14/resources/types/accessible_bidding_strategy.py +++ b/google/ads/googleads/v14/resources/types/accessible_bidding_strategy.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AccessibleBiddingStrategy",}, + manifest={ + "AccessibleBiddingStrategy", + }, ) @@ -124,7 +126,8 @@ class MaximizeConversionValue(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=1, + proto.DOUBLE, + number=1, ) class MaximizeConversions(proto.Message): @@ -139,7 +142,8 @@ class MaximizeConversions(proto.Message): """ target_cpa_micros: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) class TargetCpa(proto.Message): @@ -160,7 +164,9 @@ class TargetCpa(proto.Message): """ target_cpa_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) class TargetImpressionShare(proto.Message): @@ -196,10 +202,14 @@ class TargetImpressionShare(proto.Message): enum=target_impression_share_location.TargetImpressionShareLocationEnum.TargetImpressionShareLocation, ) location_fraction_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) class TargetRoas(proto.Message): @@ -217,7 +227,9 @@ class TargetRoas(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=1, optional=True, + proto.DOUBLE, + number=1, + optional=True, ) class TargetSpend(proto.Message): @@ -248,20 +260,27 @@ class TargetSpend(proto.Message): """ target_spend_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) type_: bidding_strategy_type.BiddingStrategyTypeEnum.BiddingStrategyType = proto.Field( proto.ENUM, @@ -269,10 +288,12 @@ class TargetSpend(proto.Message): enum=bidding_strategy_type.BiddingStrategyTypeEnum.BiddingStrategyType, ) owner_customer_id: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) owner_descriptive_name: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) maximize_conversion_value: MaximizeConversionValue = proto.Field( proto.MESSAGE, @@ -281,19 +302,34 @@ class TargetSpend(proto.Message): message=MaximizeConversionValue, ) maximize_conversions: MaximizeConversions = proto.Field( - proto.MESSAGE, number=8, oneof="scheme", message=MaximizeConversions, + proto.MESSAGE, + number=8, + oneof="scheme", + message=MaximizeConversions, ) target_cpa: TargetCpa = proto.Field( - proto.MESSAGE, number=9, oneof="scheme", message=TargetCpa, + proto.MESSAGE, + number=9, + oneof="scheme", + message=TargetCpa, ) target_impression_share: TargetImpressionShare = proto.Field( - proto.MESSAGE, number=10, oneof="scheme", message=TargetImpressionShare, + proto.MESSAGE, + number=10, + oneof="scheme", + message=TargetImpressionShare, ) target_roas: TargetRoas = proto.Field( - proto.MESSAGE, number=11, oneof="scheme", message=TargetRoas, + proto.MESSAGE, + number=11, + oneof="scheme", + message=TargetRoas, ) target_spend: TargetSpend = proto.Field( - proto.MESSAGE, number=12, oneof="scheme", message=TargetSpend, + proto.MESSAGE, + number=12, + oneof="scheme", + message=TargetSpend, ) diff --git a/google/ads/googleads/v14/resources/types/account_budget.py b/google/ads/googleads/v14/resources/types/account_budget.py index 6f8ce74dc..516cb7ccc 100644 --- a/google/ads/googleads/v14/resources/types/account_budget.py +++ b/google/ads/googleads/v14/resources/types/account_budget.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AccountBudget",}, + manifest={ + "AccountBudget", + }, ) @@ -184,6 +186,7 @@ class AccountBudget(proto.Message): The different kinds of adjustments are described here: + https://support.google.com/google-ads/answer/1704323 For example, a debit adjustment reduces how much the account is allowed to spend. @@ -272,7 +275,9 @@ class PendingAccountBudgetProposal(proto.Message): """ account_budget_proposal: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) proposal_type: account_budget_proposal_type.AccountBudgetProposalTypeEnum.AccountBudgetProposalType = proto.Field( proto.ENUM, @@ -280,22 +285,34 @@ class PendingAccountBudgetProposal(proto.Message): enum=account_budget_proposal_type.AccountBudgetProposalTypeEnum.AccountBudgetProposalType, ) name: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) start_date_time: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) purchase_order_number: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) notes: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) creation_date_time: str = proto.Field( - proto.STRING, number=19, optional=True, + proto.STRING, + number=19, + optional=True, ) end_date_time: str = proto.Field( - proto.STRING, number=15, oneof="end_time", + proto.STRING, + number=15, + oneof="end_time", ) end_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -304,7 +321,9 @@ class PendingAccountBudgetProposal(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) spending_limit_micros: int = proto.Field( - proto.INT64, number=16, oneof="spending_limit", + proto.INT64, + number=16, + oneof="spending_limit", ) spending_limit_type: gage_spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType = proto.Field( proto.ENUM, @@ -314,13 +333,18 @@ class PendingAccountBudgetProposal(proto.Message): ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=23, optional=True, + proto.INT64, + number=23, + optional=True, ) billing_setup: str = proto.Field( - proto.STRING, number=24, optional=True, + proto.STRING, + number=24, + optional=True, ) status: account_budget_status.AccountBudgetStatusEnum.AccountBudgetStatus = proto.Field( proto.ENUM, @@ -328,31 +352,47 @@ class PendingAccountBudgetProposal(proto.Message): enum=account_budget_status.AccountBudgetStatusEnum.AccountBudgetStatus, ) name: str = proto.Field( - proto.STRING, number=25, optional=True, + proto.STRING, + number=25, + optional=True, ) proposed_start_date_time: str = proto.Field( - proto.STRING, number=26, optional=True, + proto.STRING, + number=26, + optional=True, ) approved_start_date_time: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) total_adjustments_micros: int = proto.Field( - proto.INT64, number=33, + proto.INT64, + number=33, ) amount_served_micros: int = proto.Field( - proto.INT64, number=34, + proto.INT64, + number=34, ) purchase_order_number: str = proto.Field( - proto.STRING, number=35, optional=True, + proto.STRING, + number=35, + optional=True, ) notes: str = proto.Field( - proto.STRING, number=36, optional=True, + proto.STRING, + number=36, + optional=True, ) pending_proposal: PendingAccountBudgetProposal = proto.Field( - proto.MESSAGE, number=22, message=PendingAccountBudgetProposal, + proto.MESSAGE, + number=22, + message=PendingAccountBudgetProposal, ) proposed_end_date_time: str = proto.Field( - proto.STRING, number=28, oneof="proposed_end_time", + proto.STRING, + number=28, + oneof="proposed_end_time", ) proposed_end_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -361,7 +401,9 @@ class PendingAccountBudgetProposal(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) approved_end_date_time: str = proto.Field( - proto.STRING, number=29, oneof="approved_end_time", + proto.STRING, + number=29, + oneof="approved_end_time", ) approved_end_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -370,7 +412,9 @@ class PendingAccountBudgetProposal(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) proposed_spending_limit_micros: int = proto.Field( - proto.INT64, number=30, oneof="proposed_spending_limit", + proto.INT64, + number=30, + oneof="proposed_spending_limit", ) proposed_spending_limit_type: gage_spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType = proto.Field( proto.ENUM, @@ -379,7 +423,9 @@ class PendingAccountBudgetProposal(proto.Message): enum=gage_spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType, ) approved_spending_limit_micros: int = proto.Field( - proto.INT64, number=31, oneof="approved_spending_limit", + proto.INT64, + number=31, + oneof="approved_spending_limit", ) approved_spending_limit_type: gage_spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType = proto.Field( proto.ENUM, @@ -388,7 +434,9 @@ class PendingAccountBudgetProposal(proto.Message): enum=gage_spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType, ) adjusted_spending_limit_micros: int = proto.Field( - proto.INT64, number=32, oneof="adjusted_spending_limit", + proto.INT64, + number=32, + oneof="adjusted_spending_limit", ) adjusted_spending_limit_type: gage_spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/account_budget_proposal.py b/google/ads/googleads/v14/resources/types/account_budget_proposal.py index 191a64853..3aab50687 100644 --- a/google/ads/googleads/v14/resources/types/account_budget_proposal.py +++ b/google/ads/googleads/v14/resources/types/account_budget_proposal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AccountBudgetProposal",}, + manifest={ + "AccountBudgetProposal", + }, ) @@ -164,16 +166,23 @@ class AccountBudgetProposal(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=25, optional=True, + proto.INT64, + number=25, + optional=True, ) billing_setup: str = proto.Field( - proto.STRING, number=26, optional=True, + proto.STRING, + number=26, + optional=True, ) account_budget: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) proposal_type: account_budget_proposal_type.AccountBudgetProposalTypeEnum.AccountBudgetProposalType = proto.Field( proto.ENUM, @@ -186,25 +195,39 @@ class AccountBudgetProposal(proto.Message): enum=account_budget_proposal_status.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus, ) proposed_name: str = proto.Field( - proto.STRING, number=28, optional=True, + proto.STRING, + number=28, + optional=True, ) approved_start_date_time: str = proto.Field( - proto.STRING, number=30, optional=True, + proto.STRING, + number=30, + optional=True, ) proposed_purchase_order_number: str = proto.Field( - proto.STRING, number=35, optional=True, + proto.STRING, + number=35, + optional=True, ) proposed_notes: str = proto.Field( - proto.STRING, number=36, optional=True, + proto.STRING, + number=36, + optional=True, ) creation_date_time: str = proto.Field( - proto.STRING, number=37, optional=True, + proto.STRING, + number=37, + optional=True, ) approval_date_time: str = proto.Field( - proto.STRING, number=38, optional=True, + proto.STRING, + number=38, + optional=True, ) proposed_start_date_time: str = proto.Field( - proto.STRING, number=29, oneof="proposed_start_time", + proto.STRING, + number=29, + oneof="proposed_start_time", ) proposed_start_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -213,7 +236,9 @@ class AccountBudgetProposal(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) proposed_end_date_time: str = proto.Field( - proto.STRING, number=31, oneof="proposed_end_time", + proto.STRING, + number=31, + oneof="proposed_end_time", ) proposed_end_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -222,7 +247,9 @@ class AccountBudgetProposal(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) approved_end_date_time: str = proto.Field( - proto.STRING, number=32, oneof="approved_end_time", + proto.STRING, + number=32, + oneof="approved_end_time", ) approved_end_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -231,7 +258,9 @@ class AccountBudgetProposal(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) proposed_spending_limit_micros: int = proto.Field( - proto.INT64, number=33, oneof="proposed_spending_limit", + proto.INT64, + number=33, + oneof="proposed_spending_limit", ) proposed_spending_limit_type: spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType = proto.Field( proto.ENUM, @@ -240,7 +269,9 @@ class AccountBudgetProposal(proto.Message): enum=spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType, ) approved_spending_limit_micros: int = proto.Field( - proto.INT64, number=34, oneof="approved_spending_limit", + proto.INT64, + number=34, + oneof="approved_spending_limit", ) approved_spending_limit_type: spending_limit_type.SpendingLimitTypeEnum.SpendingLimitType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/account_link.py b/google/ads/googleads/v14/resources/types/account_link.py index e5cc56500..10b3aa6db 100644 --- a/google/ads/googleads/v14/resources/types/account_link.py +++ b/google/ads/googleads/v14/resources/types/account_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -85,26 +85,35 @@ class AccountLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) account_link_id: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) - status: account_link_status.AccountLinkStatusEnum.AccountLinkStatus = proto.Field( - proto.ENUM, - number=3, - enum=account_link_status.AccountLinkStatusEnum.AccountLinkStatus, + status: account_link_status.AccountLinkStatusEnum.AccountLinkStatus = ( + proto.Field( + proto.ENUM, + number=3, + enum=account_link_status.AccountLinkStatusEnum.AccountLinkStatus, + ) ) - type_: linked_account_type.LinkedAccountTypeEnum.LinkedAccountType = proto.Field( - proto.ENUM, - number=4, - enum=linked_account_type.LinkedAccountTypeEnum.LinkedAccountType, + type_: linked_account_type.LinkedAccountTypeEnum.LinkedAccountType = ( + proto.Field( + proto.ENUM, + number=4, + enum=linked_account_type.LinkedAccountTypeEnum.LinkedAccountType, + ) ) - third_party_app_analytics: "ThirdPartyAppAnalyticsLinkIdentifier" = proto.Field( - proto.MESSAGE, - number=5, - oneof="linked_account", - message="ThirdPartyAppAnalyticsLinkIdentifier", + third_party_app_analytics: "ThirdPartyAppAnalyticsLinkIdentifier" = ( + proto.Field( + proto.MESSAGE, + number=5, + oneof="linked_account", + message="ThirdPartyAppAnalyticsLinkIdentifier", + ) ) data_partner: "DataPartnerLinkIdentifier" = proto.Field( proto.MESSAGE, @@ -171,15 +180,21 @@ class ThirdPartyAppAnalyticsLinkIdentifier(proto.Message): """ app_analytics_provider_id: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) app_id: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) - app_vendor: mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor = proto.Field( - proto.ENUM, - number=3, - enum=mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor, + app_vendor: mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor = ( + proto.Field( + proto.ENUM, + number=3, + enum=mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor, + ) ) @@ -199,7 +214,9 @@ class DataPartnerLinkIdentifier(proto.Message): """ data_partner_id: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) @@ -212,7 +229,8 @@ class HotelCenterLinkIdentifier(proto.Message): """ hotel_center_id: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) @@ -232,7 +250,9 @@ class GoogleAdsLinkIdentifier(proto.Message): """ customer: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) @@ -255,7 +275,9 @@ class AdvertisingPartnerLinkIdentifier(proto.Message): """ customer: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/ad.py b/google/ads/googleads/v14/resources/types/ad.py index 4b8870310..a73e5a320 100644 --- a/google/ads/googleads/v14/resources/types/ad.py +++ b/google/ads/googleads/v14/resources/types/ad.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Ad",}, + manifest={ + "Ad", + }, ) @@ -224,6 +226,11 @@ class Ad(proto.Message): Details pertaining to a discovery carousel ad. + This field is a member of `oneof`_ ``ad_data``. + discovery_video_responsive_ad (google.ads.googleads.v14.common.types.DiscoveryVideoResponsiveAdInfo): + Details pertaining to a discovery video + responsive ad. + This field is a member of `oneof`_ ``ad_data``. travel_ad (google.ads.googleads.v14.common.types.TravelAdInfo): Details pertaining to a travel ad. @@ -232,52 +239,77 @@ class Ad(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=37, + proto.STRING, + number=37, ) id: int = proto.Field( - proto.INT64, number=40, optional=True, + proto.INT64, + number=40, + optional=True, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=41, + proto.STRING, + number=41, ) final_app_urls: MutableSequence[ final_app_url.FinalAppUrl ] = proto.RepeatedField( - proto.MESSAGE, number=35, message=final_app_url.FinalAppUrl, + proto.MESSAGE, + number=35, + message=final_app_url.FinalAppUrl, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=42, + proto.STRING, + number=42, ) tracking_url_template: str = proto.Field( - proto.STRING, number=43, optional=True, + proto.STRING, + number=43, + optional=True, ) final_url_suffix: str = proto.Field( - proto.STRING, number=44, optional=True, + proto.STRING, + number=44, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=10, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=10, + message=custom_parameter.CustomParameter, ) display_url: str = proto.Field( - proto.STRING, number=45, optional=True, + proto.STRING, + number=45, + optional=True, ) type_: ad_type.AdTypeEnum.AdType = proto.Field( - proto.ENUM, number=5, enum=ad_type.AdTypeEnum.AdType, + proto.ENUM, + number=5, + enum=ad_type.AdTypeEnum.AdType, ) added_by_google_ads: bool = proto.Field( - proto.BOOL, number=46, optional=True, + proto.BOOL, + number=46, + optional=True, ) device_preference: device.DeviceEnum.Device = proto.Field( - proto.ENUM, number=20, enum=device.DeviceEnum.Device, + proto.ENUM, + number=20, + enum=device.DeviceEnum.Device, ) url_collections: MutableSequence[ url_collection.UrlCollection ] = proto.RepeatedField( - proto.MESSAGE, number=26, message=url_collection.UrlCollection, + proto.MESSAGE, + number=26, + message=url_collection.UrlCollection, ) name: str = proto.Field( - proto.STRING, number=47, optional=True, + proto.STRING, + number=47, + optional=True, ) system_managed_resource_source: system_managed_entity_source.SystemManagedResourceSourceEnum.SystemManagedResourceSource = proto.Field( proto.ENUM, @@ -302,11 +334,13 @@ class Ad(proto.Message): oneof="ad_data", message=ad_type_infos.CallAdInfo, ) - expanded_dynamic_search_ad: ad_type_infos.ExpandedDynamicSearchAdInfo = proto.Field( - proto.MESSAGE, - number=14, - oneof="ad_data", - message=ad_type_infos.ExpandedDynamicSearchAdInfo, + expanded_dynamic_search_ad: ad_type_infos.ExpandedDynamicSearchAdInfo = ( + proto.Field( + proto.MESSAGE, + number=14, + oneof="ad_data", + message=ad_type_infos.ExpandedDynamicSearchAdInfo, + ) ) hotel_ad: ad_type_infos.HotelAdInfo = proto.Field( proto.MESSAGE, @@ -404,17 +438,21 @@ class Ad(proto.Message): oneof="ad_data", message=ad_type_infos.SmartCampaignAdInfo, ) - app_pre_registration_ad: ad_type_infos.AppPreRegistrationAdInfo = proto.Field( - proto.MESSAGE, - number=50, - oneof="ad_data", - message=ad_type_infos.AppPreRegistrationAdInfo, - ) - discovery_multi_asset_ad: ad_type_infos.DiscoveryMultiAssetAdInfo = proto.Field( - proto.MESSAGE, - number=51, - oneof="ad_data", - message=ad_type_infos.DiscoveryMultiAssetAdInfo, + app_pre_registration_ad: ad_type_infos.AppPreRegistrationAdInfo = ( + proto.Field( + proto.MESSAGE, + number=50, + oneof="ad_data", + message=ad_type_infos.AppPreRegistrationAdInfo, + ) + ) + discovery_multi_asset_ad: ad_type_infos.DiscoveryMultiAssetAdInfo = ( + proto.Field( + proto.MESSAGE, + number=51, + oneof="ad_data", + message=ad_type_infos.DiscoveryMultiAssetAdInfo, + ) ) discovery_carousel_ad: ad_type_infos.DiscoveryCarouselAdInfo = proto.Field( proto.MESSAGE, @@ -422,6 +460,12 @@ class Ad(proto.Message): oneof="ad_data", message=ad_type_infos.DiscoveryCarouselAdInfo, ) + discovery_video_responsive_ad: ad_type_infos.DiscoveryVideoResponsiveAdInfo = proto.Field( + proto.MESSAGE, + number=60, + oneof="ad_data", + message=ad_type_infos.DiscoveryVideoResponsiveAdInfo, + ) travel_ad: ad_type_infos.TravelAdInfo = proto.Field( proto.MESSAGE, number=54, diff --git a/google/ads/googleads/v14/resources/types/ad_group.py b/google/ads/googleads/v14/resources/types/ad_group.py index f9a0b4a15..75f6f5c8e 100644 --- a/google/ads/googleads/v14/resources/types/ad_group.py +++ b/google/ads/googleads/v14/resources/types/ad_group.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -35,7 +35,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroup",}, + manifest={ + "AdGroup", + }, ) @@ -218,17 +220,23 @@ class AudienceSetting(proto.Message): """ use_audience_grouped: bool = proto.Field( - proto.BOOL, number=1, + proto.BOOL, + number=1, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=34, optional=True, + proto.INT64, + number=34, + optional=True, ) name: str = proto.Field( - proto.STRING, number=35, optional=True, + proto.STRING, + number=35, + optional=True, ) status: ad_group_status.AdGroupStatusEnum.AdGroupStatus = proto.Field( proto.ENUM, @@ -236,7 +244,9 @@ class AudienceSetting(proto.Message): enum=ad_group_status.AdGroupStatusEnum.AdGroupStatus, ) type_: ad_group_type.AdGroupTypeEnum.AdGroupType = proto.Field( - proto.ENUM, number=12, enum=ad_group_type.AdGroupTypeEnum.AdGroupType, + proto.ENUM, + number=12, + enum=ad_group_type.AdGroupTypeEnum.AdGroupType, ) ad_rotation_mode: ad_group_ad_rotation_mode.AdGroupAdRotationModeEnum.AdGroupAdRotationMode = proto.Field( proto.ENUM, @@ -244,45 +254,70 @@ class AudienceSetting(proto.Message): enum=ad_group_ad_rotation_mode.AdGroupAdRotationModeEnum.AdGroupAdRotationMode, ) base_ad_group: str = proto.Field( - proto.STRING, number=36, optional=True, + proto.STRING, + number=36, + optional=True, ) tracking_url_template: str = proto.Field( - proto.STRING, number=37, optional=True, + proto.STRING, + number=37, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=6, + message=custom_parameter.CustomParameter, ) campaign: str = proto.Field( - proto.STRING, number=38, optional=True, + proto.STRING, + number=38, + optional=True, ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=39, optional=True, + proto.INT64, + number=39, + optional=True, ) effective_cpc_bid_micros: int = proto.Field( - proto.INT64, number=57, optional=True, + proto.INT64, + number=57, + optional=True, ) cpm_bid_micros: int = proto.Field( - proto.INT64, number=40, optional=True, + proto.INT64, + number=40, + optional=True, ) target_cpa_micros: int = proto.Field( - proto.INT64, number=41, optional=True, + proto.INT64, + number=41, + optional=True, ) cpv_bid_micros: int = proto.Field( - proto.INT64, number=42, optional=True, + proto.INT64, + number=42, + optional=True, ) target_cpm_micros: int = proto.Field( - proto.INT64, number=43, optional=True, + proto.INT64, + number=43, + optional=True, ) target_roas: float = proto.Field( - proto.DOUBLE, number=44, optional=True, + proto.DOUBLE, + number=44, + optional=True, ) percent_cpc_bid_micros: int = proto.Field( - proto.INT64, number=45, optional=True, + proto.INT64, + number=45, + optional=True, ) optimized_targeting_enabled: bool = proto.Field( - proto.BOOL, number=59, + proto.BOOL, + number=59, ) display_custom_bid_dimension: targeting_dimension.TargetingDimensionEnum.TargetingDimension = proto.Field( proto.ENUM, @@ -290,7 +325,9 @@ class AudienceSetting(proto.Message): enum=targeting_dimension.TargetingDimensionEnum.TargetingDimension, ) final_url_suffix: str = proto.Field( - proto.STRING, number=46, optional=True, + proto.STRING, + number=46, + optional=True, ) targeting_setting: gagc_targeting_setting.TargetingSetting = proto.Field( proto.MESSAGE, @@ -298,10 +335,14 @@ class AudienceSetting(proto.Message): message=gagc_targeting_setting.TargetingSetting, ) audience_setting: AudienceSetting = proto.Field( - proto.MESSAGE, number=56, message=AudienceSetting, + proto.MESSAGE, + number=56, + message=AudienceSetting, ) effective_target_cpa_micros: int = proto.Field( - proto.INT64, number=47, optional=True, + proto.INT64, + number=47, + optional=True, ) effective_target_cpa_source: bidding_source.BiddingSourceEnum.BiddingSource = proto.Field( proto.ENUM, @@ -309,7 +350,9 @@ class AudienceSetting(proto.Message): enum=bidding_source.BiddingSourceEnum.BiddingSource, ) effective_target_roas: float = proto.Field( - proto.DOUBLE, number=48, optional=True, + proto.DOUBLE, + number=48, + optional=True, ) effective_target_roas_source: bidding_source.BiddingSourceEnum.BiddingSource = proto.Field( proto.ENUM, @@ -317,7 +360,8 @@ class AudienceSetting(proto.Message): enum=bidding_source.BiddingSourceEnum.BiddingSource, ) labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=49, + proto.STRING, + number=49, ) excluded_parent_asset_field_types: MutableSequence[ asset_field_type.AssetFieldTypeEnum.AssetFieldType diff --git a/google/ads/googleads/v14/resources/types/ad_group_ad.py b/google/ads/googleads/v14/resources/types/ad_group_ad.py index 34f2b0ae4..7122a690e 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_ad.py +++ b/google/ads/googleads/v14/resources/types/ad_group_ad.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAd", "AdGroupAdPolicySummary",}, + manifest={ + "AdGroupAd", + "AdGroupAdPolicySummary", + }, ) @@ -70,30 +73,43 @@ class AdGroupAd(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - status: ad_group_ad_status.AdGroupAdStatusEnum.AdGroupAdStatus = proto.Field( - proto.ENUM, - number=3, - enum=ad_group_ad_status.AdGroupAdStatusEnum.AdGroupAdStatus, + status: ad_group_ad_status.AdGroupAdStatusEnum.AdGroupAdStatus = ( + proto.Field( + proto.ENUM, + number=3, + enum=ad_group_ad_status.AdGroupAdStatusEnum.AdGroupAdStatus, + ) ) ad_group: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=5, message=gagr_ad.Ad, + proto.MESSAGE, + number=5, + message=gagr_ad.Ad, ) policy_summary: "AdGroupAdPolicySummary" = proto.Field( - proto.MESSAGE, number=6, message="AdGroupAdPolicySummary", + proto.MESSAGE, + number=6, + message="AdGroupAdPolicySummary", ) ad_strength: gage_ad_strength.AdStrengthEnum.AdStrength = proto.Field( - proto.ENUM, number=7, enum=gage_ad_strength.AdStrengthEnum.AdStrength, + proto.ENUM, + number=7, + enum=gage_ad_strength.AdStrengthEnum.AdStrength, ) action_items: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=13, + proto.STRING, + number=13, ) labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) @@ -115,7 +131,9 @@ class AdGroupAdPolicySummary(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=1, + message=policy.PolicyTopicEntry, ) review_status: policy_review_status.PolicyReviewStatusEnum.PolicyReviewStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/ad_group_ad_asset_combination_view.py b/google/ads/googleads/v14/resources/types/ad_group_ad_asset_combination_view.py index b1f9e666d..c0a270273 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_ad_asset_combination_view.py +++ b/google/ads/googleads/v14/resources/types/ad_group_ad_asset_combination_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAdAssetCombinationView",}, + manifest={ + "AdGroupAdAssetCombinationView", + }, ) @@ -59,15 +61,20 @@ class AdGroupAdAssetCombinationView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) served_assets: MutableSequence[ asset_usage.AssetUsage ] = proto.RepeatedField( - proto.MESSAGE, number=2, message=asset_usage.AssetUsage, + proto.MESSAGE, + number=2, + message=asset_usage.AssetUsage, ) enabled: bool = proto.Field( - proto.BOOL, number=3, optional=True, + proto.BOOL, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_ad_asset_view.py b/google/ads/googleads/v14/resources/types/ad_group_ad_asset_view.py index cc7c7e74f..b284c7407 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_ad_asset_view.py +++ b/google/ads/googleads/v14/resources/types/ad_group_ad_asset_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAdAssetView", "AdGroupAdAssetPolicySummary",}, + manifest={ + "AdGroupAdAssetView", + "AdGroupAdAssetPolicySummary", + }, ) @@ -85,24 +88,35 @@ class AdGroupAdAssetView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_ad: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) asset: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) - field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( - proto.ENUM, - number=2, - enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = ( + proto.Field( + proto.ENUM, + number=2, + enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + ) ) enabled: bool = proto.Field( - proto.BOOL, number=8, optional=True, + proto.BOOL, + number=8, + optional=True, ) policy_summary: "AdGroupAdAssetPolicySummary" = proto.Field( - proto.MESSAGE, number=3, message="AdGroupAdAssetPolicySummary", + proto.MESSAGE, + number=3, + message="AdGroupAdAssetPolicySummary", ) performance_label: asset_performance_label.AssetPerformanceLabelEnum.AssetPerformanceLabel = proto.Field( proto.ENUM, @@ -134,7 +148,9 @@ class AdGroupAdAssetPolicySummary(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=1, + message=policy.PolicyTopicEntry, ) review_status: policy_review_status.PolicyReviewStatusEnum.PolicyReviewStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/ad_group_ad_label.py b/google/ads/googleads/v14/resources/types/ad_group_ad_label.py index 81a6e7edb..a5281c61b 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_ad_label.py +++ b/google/ads/googleads/v14/resources/types/ad_group_ad_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAdLabel",}, + manifest={ + "AdGroupAdLabel", + }, ) @@ -48,13 +50,18 @@ class AdGroupAdLabel(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_ad: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) label: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_asset.py b/google/ads/googleads/v14/resources/types/ad_group_asset.py index 6fea7342c..331d2e793 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_asset.py +++ b/google/ads/googleads/v14/resources/types/ad_group_asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAsset",}, + manifest={ + "AdGroupAsset", + }, ) @@ -78,21 +80,28 @@ class AdGroupAsset(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) - field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( - proto.ENUM, - number=4, - enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = ( + proto.Field( + proto.ENUM, + number=4, + enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + ) ) source: asset_source.AssetSourceEnum.AssetSource = proto.Field( - proto.ENUM, number=6, enum=asset_source.AssetSourceEnum.AssetSource, + proto.ENUM, + number=6, + enum=asset_source.AssetSourceEnum.AssetSource, ) status: asset_link_status.AssetLinkStatusEnum.AssetLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/ad_group_asset_set.py b/google/ads/googleads/v14/resources/types/ad_group_asset_set.py index 139d9651c..c301a0824 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_asset_set.py +++ b/google/ads/googleads/v14/resources/types/ad_group_asset_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAssetSet",}, + manifest={ + "AdGroupAssetSet", + }, ) @@ -51,13 +53,16 @@ class AdGroupAssetSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset_set: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: asset_set_link_status.AssetSetLinkStatusEnum.AssetSetLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/ad_group_audience_view.py b/google/ads/googleads/v14/resources/types/ad_group_audience_view.py index 8582e5809..299e055f4 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_audience_view.py +++ b/google/ads/googleads/v14/resources/types/ad_group_audience_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupAudienceView",}, + manifest={ + "AdGroupAudienceView", + }, ) @@ -41,7 +43,8 @@ class AdGroupAudienceView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_bid_modifier.py b/google/ads/googleads/v14/resources/types/ad_group_bid_modifier.py index 896ce17dc..ca0828137 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_bid_modifier.py +++ b/google/ads/googleads/v14/resources/types/ad_group_bid_modifier.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupBidModifier",}, + manifest={ + "AdGroupBidModifier", + }, ) @@ -108,36 +110,49 @@ class AdGroupBidModifier(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) criterion_id: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) bid_modifier: float = proto.Field( - proto.DOUBLE, number=15, optional=True, + proto.DOUBLE, + number=15, + optional=True, ) base_ad_group: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) bid_modifier_source: gage_bid_modifier_source.BidModifierSourceEnum.BidModifierSource = proto.Field( proto.ENUM, number=10, enum=gage_bid_modifier_source.BidModifierSourceEnum.BidModifierSource, ) - hotel_date_selection_type: criteria.HotelDateSelectionTypeInfo = proto.Field( - proto.MESSAGE, - number=5, - oneof="criterion", - message=criteria.HotelDateSelectionTypeInfo, + hotel_date_selection_type: criteria.HotelDateSelectionTypeInfo = ( + proto.Field( + proto.MESSAGE, + number=5, + oneof="criterion", + message=criteria.HotelDateSelectionTypeInfo, + ) ) - hotel_advance_booking_window: criteria.HotelAdvanceBookingWindowInfo = proto.Field( - proto.MESSAGE, - number=6, - oneof="criterion", - message=criteria.HotelAdvanceBookingWindowInfo, + hotel_advance_booking_window: criteria.HotelAdvanceBookingWindowInfo = ( + proto.Field( + proto.MESSAGE, + number=6, + oneof="criterion", + message=criteria.HotelAdvanceBookingWindowInfo, + ) ) hotel_length_of_stay: criteria.HotelLengthOfStayInfo = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/ad_group_criterion.py b/google/ads/googleads/v14/resources/types/ad_group_criterion.py index 0fa5e59bf..957883484 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_criterion.py +++ b/google/ads/googleads/v14/resources/types/ad_group_criterion.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,7 +34,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterion",}, + manifest={ + "AdGroupCriterion", + }, ) @@ -104,6 +106,7 @@ class AdGroupCriterion(proto.Message): the criterion. The different reasons for disapproving a criterion can be found here: + https://support.google.com/adspolicy/answer/6008942 This field is read-only. labels (MutableSequence[str]): @@ -275,6 +278,14 @@ class AdGroupCriterion(proto.Message): audience (google.ads.googleads.v14.common.types.AudienceInfo): Immutable. Audience. + This field is a member of `oneof`_ ``criterion``. + location (google.ads.googleads.v14.common.types.LocationInfo): + Immutable. Location. + + This field is a member of `oneof`_ ``criterion``. + language (google.ads.googleads.v14.common.types.LanguageInfo): + Immutable. Language. + This field is a member of `oneof`_ ``criterion``. """ @@ -302,7 +313,9 @@ class QualityInfo(proto.Message): """ quality_score: int = proto.Field( - proto.INT32, number=5, optional=True, + proto.INT32, + number=5, + optional=True, ) creative_quality_score: quality_score_bucket.QualityScoreBucketEnum.QualityScoreBucket = proto.Field( proto.ENUM, @@ -359,29 +372,43 @@ class PositionEstimates(proto.Message): """ first_page_cpc_micros: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) first_position_cpc_micros: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) top_of_page_cpc_micros: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) estimated_add_clicks_at_first_position_cpc: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) estimated_add_cost_at_first_position_cpc: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) criterion_id: int = proto.Field( - proto.INT64, number=56, optional=True, + proto.INT64, + number=56, + optional=True, ) display_name: str = proto.Field( - proto.STRING, number=77, + proto.STRING, + number=77, ) status: ad_group_criterion_status.AdGroupCriterionStatusEnum.AdGroupCriterionStatus = proto.Field( proto.ENUM, @@ -389,10 +416,14 @@ class PositionEstimates(proto.Message): enum=ad_group_criterion_status.AdGroupCriterionStatusEnum.AdGroupCriterionStatus, ) quality_info: QualityInfo = proto.Field( - proto.MESSAGE, number=4, message=QualityInfo, + proto.MESSAGE, + number=4, + message=QualityInfo, ) ad_group: str = proto.Field( - proto.STRING, number=57, optional=True, + proto.STRING, + number=57, + optional=True, ) type_: criterion_type.CriterionTypeEnum.CriterionType = proto.Field( proto.ENUM, @@ -400,7 +431,9 @@ class PositionEstimates(proto.Message): enum=criterion_type.CriterionTypeEnum.CriterionType, ) negative: bool = proto.Field( - proto.BOOL, number=58, optional=True, + proto.BOOL, + number=58, + optional=True, ) system_serving_status: criterion_system_serving_status.CriterionSystemServingStatusEnum.CriterionSystemServingStatus = proto.Field( proto.ENUM, @@ -413,52 +446,78 @@ class PositionEstimates(proto.Message): enum=ad_group_criterion_approval_status.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus, ) disapproval_reasons: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=59, + proto.STRING, + number=59, ) labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=60, + proto.STRING, + number=60, ) bid_modifier: float = proto.Field( - proto.DOUBLE, number=61, optional=True, + proto.DOUBLE, + number=61, + optional=True, ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=62, optional=True, + proto.INT64, + number=62, + optional=True, ) cpm_bid_micros: int = proto.Field( - proto.INT64, number=63, optional=True, + proto.INT64, + number=63, + optional=True, ) cpv_bid_micros: int = proto.Field( - proto.INT64, number=64, optional=True, + proto.INT64, + number=64, + optional=True, ) percent_cpc_bid_micros: int = proto.Field( - proto.INT64, number=65, optional=True, + proto.INT64, + number=65, + optional=True, ) effective_cpc_bid_micros: int = proto.Field( - proto.INT64, number=66, optional=True, + proto.INT64, + number=66, + optional=True, ) effective_cpm_bid_micros: int = proto.Field( - proto.INT64, number=67, optional=True, + proto.INT64, + number=67, + optional=True, ) effective_cpv_bid_micros: int = proto.Field( - proto.INT64, number=68, optional=True, + proto.INT64, + number=68, + optional=True, ) effective_percent_cpc_bid_micros: int = proto.Field( - proto.INT64, number=69, optional=True, + proto.INT64, + number=69, + optional=True, ) - effective_cpc_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = proto.Field( - proto.ENUM, - number=21, - enum=bidding_source.BiddingSourceEnum.BiddingSource, + effective_cpc_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = ( + proto.Field( + proto.ENUM, + number=21, + enum=bidding_source.BiddingSourceEnum.BiddingSource, + ) ) - effective_cpm_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = proto.Field( - proto.ENUM, - number=22, - enum=bidding_source.BiddingSourceEnum.BiddingSource, + effective_cpm_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = ( + proto.Field( + proto.ENUM, + number=22, + enum=bidding_source.BiddingSourceEnum.BiddingSource, + ) ) - effective_cpv_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = proto.Field( - proto.ENUM, - number=23, - enum=bidding_source.BiddingSourceEnum.BiddingSource, + effective_cpv_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = ( + proto.Field( + proto.ENUM, + number=23, + enum=bidding_source.BiddingSourceEnum.BiddingSource, + ) ) effective_percent_cpc_bid_source: bidding_source.BiddingSourceEnum.BiddingSource = proto.Field( proto.ENUM, @@ -466,24 +525,34 @@ class PositionEstimates(proto.Message): enum=bidding_source.BiddingSourceEnum.BiddingSource, ) position_estimates: PositionEstimates = proto.Field( - proto.MESSAGE, number=10, message=PositionEstimates, + proto.MESSAGE, + number=10, + message=PositionEstimates, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=70, + proto.STRING, + number=70, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=71, + proto.STRING, + number=71, ) final_url_suffix: str = proto.Field( - proto.STRING, number=72, optional=True, + proto.STRING, + number=72, + optional=True, ) tracking_url_template: str = proto.Field( - proto.STRING, number=73, optional=True, + proto.STRING, + number=73, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=14, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=14, + message=custom_parameter.CustomParameter, ) keyword: criteria.KeywordInfo = proto.Field( proto.MESSAGE, @@ -558,7 +627,10 @@ class PositionEstimates(proto.Message): message=criteria.YouTubeChannelInfo, ) topic: criteria.TopicInfo = proto.Field( - proto.MESSAGE, number=43, oneof="criterion", message=criteria.TopicInfo, + proto.MESSAGE, + number=43, + oneof="criterion", + message=criteria.TopicInfo, ) user_interest: criteria.UserInterestInfo = proto.Field( proto.MESSAGE, @@ -608,6 +680,18 @@ class PositionEstimates(proto.Message): oneof="criterion", message=criteria.AudienceInfo, ) + location: criteria.LocationInfo = proto.Field( + proto.MESSAGE, + number=82, + oneof="criterion", + message=criteria.LocationInfo, + ) + language: criteria.LanguageInfo = proto.Field( + proto.MESSAGE, + number=83, + oneof="criterion", + message=criteria.LanguageInfo, + ) __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/resources/types/ad_group_criterion_customizer.py b/google/ads/googleads/v14/resources/types/ad_group_criterion_customizer.py index 743fdac0b..dbc4080fc 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_criterion_customizer.py +++ b/google/ads/googleads/v14/resources/types/ad_group_criterion_customizer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionCustomizer",}, + manifest={ + "AdGroupCriterionCustomizer", + }, ) @@ -62,13 +64,17 @@ class AdGroupCriterionCustomizer(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_criterion: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) customizer_attribute: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus = proto.Field( proto.ENUM, @@ -76,7 +82,9 @@ class AdGroupCriterionCustomizer(proto.Message): enum=customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus, ) value: customizer_value.CustomizerValue = proto.Field( - proto.MESSAGE, number=5, message=customizer_value.CustomizerValue, + proto.MESSAGE, + number=5, + message=customizer_value.CustomizerValue, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_criterion_label.py b/google/ads/googleads/v14/resources/types/ad_group_criterion_label.py index 1cb11f599..0ddbe40cb 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_criterion_label.py +++ b/google/ads/googleads/v14/resources/types/ad_group_criterion_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionLabel",}, + manifest={ + "AdGroupCriterionLabel", + }, ) @@ -49,13 +51,18 @@ class AdGroupCriterionLabel(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_criterion: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) label: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_criterion_simulation.py b/google/ads/googleads/v14/resources/types/ad_group_criterion_simulation.py index 5ebbb5f48..e26c3bd54 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_criterion_simulation.py +++ b/google/ads/googleads/v14/resources/types/ad_group_criterion_simulation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupCriterionSimulation",}, + manifest={ + "AdGroupCriterionSimulation", + }, ) @@ -93,13 +95,18 @@ class AdGroupCriterionSimulation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_id: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) criterion_id: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) type_: simulation_type.SimulationTypeEnum.SimulationType = proto.Field( proto.ENUM, @@ -112,10 +119,14 @@ class AdGroupCriterionSimulation(proto.Message): enum=simulation_modification_method.SimulationModificationMethodEnum.SimulationModificationMethod, ) start_date: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) end_date: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) cpc_bid_point_list: simulation.CpcBidSimulationPointList = proto.Field( proto.MESSAGE, @@ -123,11 +134,13 @@ class AdGroupCriterionSimulation(proto.Message): oneof="point_list", message=simulation.CpcBidSimulationPointList, ) - percent_cpc_bid_point_list: simulation.PercentCpcBidSimulationPointList = proto.Field( - proto.MESSAGE, - number=13, - oneof="point_list", - message=simulation.PercentCpcBidSimulationPointList, + percent_cpc_bid_point_list: simulation.PercentCpcBidSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=13, + oneof="point_list", + message=simulation.PercentCpcBidSimulationPointList, + ) ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_customizer.py b/google/ads/googleads/v14/resources/types/ad_group_customizer.py index 7f4f60cbc..e0160956a 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_customizer.py +++ b/google/ads/googleads/v14/resources/types/ad_group_customizer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupCustomizer",}, + manifest={ + "AdGroupCustomizer", + }, ) @@ -56,13 +58,16 @@ class AdGroupCustomizer(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) customizer_attribute: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus = proto.Field( proto.ENUM, @@ -70,7 +75,9 @@ class AdGroupCustomizer(proto.Message): enum=customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus, ) value: customizer_value.CustomizerValue = proto.Field( - proto.MESSAGE, number=5, message=customizer_value.CustomizerValue, + proto.MESSAGE, + number=5, + message=customizer_value.CustomizerValue, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_extension_setting.py b/google/ads/googleads/v14/resources/types/ad_group_extension_setting.py index 8ec79e702..e013be4fa 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_extension_setting.py +++ b/google/ads/googleads/v14/resources/types/ad_group_extension_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupExtensionSetting",}, + manifest={ + "AdGroupExtensionSetting", + }, ) @@ -66,18 +68,24 @@ class AdGroupExtensionSetting(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = proto.Field( - proto.ENUM, - number=2, - enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = ( + proto.Field( + proto.ENUM, + number=2, + enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + ) ) ad_group: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) extension_feed_items: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=7, + proto.STRING, + number=7, ) device: extension_setting_device.ExtensionSettingDeviceEnum.ExtensionSettingDevice = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/ad_group_feed.py b/google/ads/googleads/v14/resources/types/ad_group_feed.py index b9202f7df..93bbbfeb2 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_feed.py +++ b/google/ads/googleads/v14/resources/types/ad_group_feed.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupFeed",}, + manifest={ + "AdGroupFeed", + }, ) @@ -67,13 +69,18 @@ class AdGroupFeed(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) ad_group: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) placeholder_types: MutableSequence[ placeholder_type.PlaceholderTypeEnum.PlaceholderType diff --git a/google/ads/googleads/v14/resources/types/ad_group_label.py b/google/ads/googleads/v14/resources/types/ad_group_label.py index 0c0c6f82e..7d4b9dd15 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_label.py +++ b/google/ads/googleads/v14/resources/types/ad_group_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupLabel",}, + manifest={ + "AdGroupLabel", + }, ) @@ -48,13 +50,18 @@ class AdGroupLabel(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) label: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/ad_group_simulation.py b/google/ads/googleads/v14/resources/types/ad_group_simulation.py index 49e30725a..1de6cb3dc 100644 --- a/google/ads/googleads/v14/resources/types/ad_group_simulation.py +++ b/google/ads/googleads/v14/resources/types/ad_group_simulation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdGroupSimulation",}, + manifest={ + "AdGroupSimulation", + }, ) @@ -99,10 +101,13 @@ class AdGroupSimulation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_id: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) type_: simulation_type.SimulationTypeEnum.SimulationType = proto.Field( proto.ENUM, @@ -115,10 +120,14 @@ class AdGroupSimulation(proto.Message): enum=simulation_modification_method.SimulationModificationMethodEnum.SimulationModificationMethod, ) start_date: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) end_date: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) cpc_bid_point_list: simulation.CpcBidSimulationPointList = proto.Field( proto.MESSAGE, @@ -132,17 +141,21 @@ class AdGroupSimulation(proto.Message): oneof="point_list", message=simulation.CpvBidSimulationPointList, ) - target_cpa_point_list: simulation.TargetCpaSimulationPointList = proto.Field( - proto.MESSAGE, - number=9, - oneof="point_list", - message=simulation.TargetCpaSimulationPointList, + target_cpa_point_list: simulation.TargetCpaSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=9, + oneof="point_list", + message=simulation.TargetCpaSimulationPointList, + ) ) - target_roas_point_list: simulation.TargetRoasSimulationPointList = proto.Field( - proto.MESSAGE, - number=11, - oneof="point_list", - message=simulation.TargetRoasSimulationPointList, + target_roas_point_list: simulation.TargetRoasSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=11, + oneof="point_list", + message=simulation.TargetRoasSimulationPointList, + ) ) diff --git a/google/ads/googleads/v14/resources/types/ad_parameter.py b/google/ads/googleads/v14/resources/types/ad_parameter.py index ac65b9949..0bc3082d8 100644 --- a/google/ads/googleads/v14/resources/types/ad_parameter.py +++ b/google/ads/googleads/v14/resources/types/ad_parameter.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdParameter",}, + manifest={ + "AdParameter", + }, ) @@ -56,35 +58,44 @@ class AdParameter(proto.Message): insertion_text (str): Numeric value to insert into the ad text. The following restrictions apply: + - Can use comma or period as a separator, with - an optional period or comma (respectively) - for fractional values. For example, 1,000,000.00 - and 2.000.000,10 are valid. + an optional period or comma (respectively) + for fractional values. For example, + 1,000,000.00 and 2.000.000,10 are valid. - Can be prepended or appended with a currency - symbol. For example, $99.99 is valid. + symbol. For example, $99.99 is valid. - Can be prepended or appended with a currency - code. For example, 99.99USD and EUR200 are - valid. + code. For example, 99.99USD and EUR200 are + valid. - Can use '%'. For example, 1.0% and 1,0% are - valid. - Can use plus or minus. For example, - -10.99 and 25+ are valid. - Can use '/' between - two numbers. For example 4/1 and 0.95/0.45 are - valid. + valid. + - Can use plus or minus. For example, -10.99 + and 25+ are valid. + - Can use '/' between two numbers. For example + 4/1 and 0.95/0.45 are valid. This field is a member of `oneof`_ ``_insertion_text``. """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_criterion: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) parameter_index: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) insertion_text: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/ad_schedule_view.py b/google/ads/googleads/v14/resources/types/ad_schedule_view.py index ebcf5c968..692a69320 100644 --- a/google/ads/googleads/v14/resources/types/ad_schedule_view.py +++ b/google/ads/googleads/v14/resources/types/ad_schedule_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AdScheduleView",}, + manifest={ + "AdScheduleView", + }, ) @@ -39,7 +41,8 @@ class AdScheduleView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/age_range_view.py b/google/ads/googleads/v14/resources/types/age_range_view.py index ea940b1d5..4ac143ab8 100644 --- a/google/ads/googleads/v14/resources/types/age_range_view.py +++ b/google/ads/googleads/v14/resources/types/age_range_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AgeRangeView",}, + manifest={ + "AgeRangeView", + }, ) @@ -37,7 +39,8 @@ class AgeRangeView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/asset.py b/google/ads/googleads/v14/resources/types/asset.py index ce04aae12..09969b8c0 100644 --- a/google/ads/googleads/v14/resources/types/asset.py +++ b/google/ads/googleads/v14/resources/types/asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -36,7 +36,11 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Asset", "AssetFieldTypePolicySummary", "AssetPolicySummary",}, + manifest={ + "Asset", + "AssetFieldTypePolicySummary", + "AssetPolicySummary", + }, ) @@ -208,33 +212,48 @@ class Asset(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) name: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) type_: asset_type.AssetTypeEnum.AssetType = proto.Field( - proto.ENUM, number=4, enum=asset_type.AssetTypeEnum.AssetType, + proto.ENUM, + number=4, + enum=asset_type.AssetTypeEnum.AssetType, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=14, + proto.STRING, + number=14, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=16, + proto.STRING, + number=16, ) tracking_url_template: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=18, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=18, + message=custom_parameter.CustomParameter, ) final_url_suffix: str = proto.Field( - proto.STRING, number=19, optional=True, + proto.STRING, + number=19, + optional=True, ) source: gage_asset_source.AssetSourceEnum.AssetSource = proto.Field( proto.ENUM, @@ -242,12 +261,16 @@ class Asset(proto.Message): enum=gage_asset_source.AssetSourceEnum.AssetSource, ) policy_summary: "AssetPolicySummary" = proto.Field( - proto.MESSAGE, number=13, message="AssetPolicySummary", + proto.MESSAGE, + number=13, + message="AssetPolicySummary", ) field_type_policy_summaries: MutableSequence[ "AssetFieldTypePolicySummary" ] = proto.RepeatedField( - proto.MESSAGE, number=40, message="AssetFieldTypePolicySummary", + proto.MESSAGE, + number=40, + message="AssetFieldTypePolicySummary", ) youtube_video_asset: asset_types.YoutubeVideoAsset = proto.Field( proto.MESSAGE, @@ -375,11 +398,13 @@ class Asset(proto.Message): oneof="asset_data", message=asset_types.DynamicFlightsAsset, ) - discovery_carousel_card_asset: asset_types.DiscoveryCarouselCardAsset = proto.Field( - proto.MESSAGE, - number=34, - oneof="asset_data", - message=asset_types.DiscoveryCarouselCardAsset, + discovery_carousel_card_asset: asset_types.DiscoveryCarouselCardAsset = ( + proto.Field( + proto.MESSAGE, + number=34, + oneof="asset_data", + message=asset_types.DiscoveryCarouselCardAsset, + ) ) dynamic_travel_asset: asset_types.DynamicTravelAsset = proto.Field( proto.MESSAGE, @@ -447,7 +472,10 @@ class AssetFieldTypePolicySummary(proto.Message): enum=gage_asset_source.AssetSourceEnum.AssetSource, ) policy_summary_info: "AssetPolicySummary" = proto.Field( - proto.MESSAGE, number=3, optional=True, message="AssetPolicySummary", + proto.MESSAGE, + number=3, + optional=True, + message="AssetPolicySummary", ) @@ -469,7 +497,9 @@ class AssetPolicySummary(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=1, + message=policy.PolicyTopicEntry, ) review_status: policy_review_status.PolicyReviewStatusEnum.PolicyReviewStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/asset_field_type_view.py b/google/ads/googleads/v14/resources/types/asset_field_type_view.py index 0cc50c2a6..147fa5eb0 100644 --- a/google/ads/googleads/v14/resources/types/asset_field_type_view.py +++ b/google/ads/googleads/v14/resources/types/asset_field_type_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetFieldTypeView",}, + manifest={ + "AssetFieldTypeView", + }, ) @@ -45,12 +47,15 @@ class AssetFieldTypeView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( - proto.ENUM, - number=3, - enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = ( + proto.Field( + proto.ENUM, + number=3, + enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + ) ) diff --git a/google/ads/googleads/v14/resources/types/asset_group.py b/google/ads/googleads/v14/resources/types/asset_group.py index 13eaebfcd..b57efedc1 100644 --- a/google/ads/googleads/v14/resources/types/asset_group.py +++ b/google/ads/googleads/v14/resources/types/asset_group.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,13 +20,19 @@ import proto # type: ignore from google.ads.googleads.v14.enums.types import ad_strength as gage_ad_strength +from google.ads.googleads.v14.enums.types import asset_group_primary_status +from google.ads.googleads.v14.enums.types import ( + asset_group_primary_status_reason, +) from google.ads.googleads.v14.enums.types import asset_group_status __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetGroup",}, + manifest={ + "AssetGroup", + }, ) @@ -65,6 +71,15 @@ class AssetGroup(proto.Message): unless opted out. status (google.ads.googleads.v14.enums.types.AssetGroupStatusEnum.AssetGroupStatus): The status of the asset group. + primary_status (google.ads.googleads.v14.enums.types.AssetGroupPrimaryStatusEnum.AssetGroupPrimaryStatus): + Output only. The primary status of the asset + group. Provides insights into why an asset group + is not serving or not serving optimally. + primary_status_reasons (MutableSequence[google.ads.googleads.v14.enums.types.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReason]): + Output only. Provides reasons into why an + asset group is not serving or not serving + optimally. It will be empty when the asset group + is serving without issues. path1 (str): First part of text that may appear appended to the url displayed in the ad. @@ -78,36 +93,60 @@ class AssetGroup(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=9, + proto.INT64, + number=9, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) final_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) final_mobile_urls: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=5, + proto.STRING, + number=5, + ) + status: asset_group_status.AssetGroupStatusEnum.AssetGroupStatus = ( + proto.Field( + proto.ENUM, + number=6, + enum=asset_group_status.AssetGroupStatusEnum.AssetGroupStatus, + ) ) - status: asset_group_status.AssetGroupStatusEnum.AssetGroupStatus = proto.Field( + primary_status: asset_group_primary_status.AssetGroupPrimaryStatusEnum.AssetGroupPrimaryStatus = proto.Field( proto.ENUM, - number=6, - enum=asset_group_status.AssetGroupStatusEnum.AssetGroupStatus, + number=11, + enum=asset_group_primary_status.AssetGroupPrimaryStatusEnum.AssetGroupPrimaryStatus, + ) + primary_status_reasons: MutableSequence[ + asset_group_primary_status_reason.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReason + ] = proto.RepeatedField( + proto.ENUM, + number=12, + enum=asset_group_primary_status_reason.AssetGroupPrimaryStatusReasonEnum.AssetGroupPrimaryStatusReason, ) path1: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) path2: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) ad_strength: gage_ad_strength.AdStrengthEnum.AdStrength = proto.Field( - proto.ENUM, number=10, enum=gage_ad_strength.AdStrengthEnum.AdStrength, + proto.ENUM, + number=10, + enum=gage_ad_strength.AdStrengthEnum.AdStrength, ) diff --git a/google/ads/googleads/v14/resources/types/asset_group_asset.py b/google/ads/googleads/v14/resources/types/asset_group_asset.py index 537b35de5..cc710b7ca 100644 --- a/google/ads/googleads/v14/resources/types/asset_group_asset.py +++ b/google/ads/googleads/v14/resources/types/asset_group_asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,13 +15,19 @@ # from __future__ import annotations +from typing import MutableSequence import proto # type: ignore +from google.ads.googleads.v14.common.types import asset_policy from google.ads.googleads.v14.common.types import ( policy_summary as gagc_policy_summary, ) from google.ads.googleads.v14.enums.types import asset_field_type +from google.ads.googleads.v14.enums.types import asset_link_primary_status +from google.ads.googleads.v14.enums.types import ( + asset_link_primary_status_reason, +) from google.ads.googleads.v14.enums.types import asset_link_status from google.ads.googleads.v14.enums.types import asset_performance_label @@ -29,7 +35,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetGroupAsset",}, + manifest={ + "AssetGroupAsset", + }, ) @@ -56,6 +64,23 @@ class AssetGroupAsset(proto.Message): status (google.ads.googleads.v14.enums.types.AssetLinkStatusEnum.AssetLinkStatus): The status of the link between an asset and asset group. + primary_status (google.ads.googleads.v14.enums.types.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus): + Output only. Provides the PrimaryStatus of + this asset link. Primary status is meant + essentially to differentiate between the plain + "status" field, which has advertiser set values + of enabled, paused, or removed. The primary + status takes into account other signals (for + assets its mainly policy and quality approvals) + to come up with a more comprehensive status to + indicate its serving state. + primary_status_reasons (MutableSequence[google.ads.googleads.v14.enums.types.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason]): + Output only. Provides a list of reasons for + why an asset is not serving or not serving at + full capacity. + primary_status_details (MutableSequence[google.ads.googleads.v14.common.types.AssetLinkPrimaryStatusDetails]): + Output only. Provides the details of the + primary status and its associated reasons. performance_label (google.ads.googleads.v14.enums.types.AssetPerformanceLabelEnum.AssetPerformanceLabel): Output only. The performance of this asset group asset. @@ -65,31 +90,57 @@ class AssetGroupAsset(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) - field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( - proto.ENUM, - number=4, - enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = ( + proto.Field( + proto.ENUM, + number=4, + enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + ) ) status: asset_link_status.AssetLinkStatusEnum.AssetLinkStatus = proto.Field( proto.ENUM, number=5, enum=asset_link_status.AssetLinkStatusEnum.AssetLinkStatus, ) + primary_status: asset_link_primary_status.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus = proto.Field( + proto.ENUM, + number=8, + enum=asset_link_primary_status.AssetLinkPrimaryStatusEnum.AssetLinkPrimaryStatus, + ) + primary_status_reasons: MutableSequence[ + asset_link_primary_status_reason.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason + ] = proto.RepeatedField( + proto.ENUM, + number=9, + enum=asset_link_primary_status_reason.AssetLinkPrimaryStatusReasonEnum.AssetLinkPrimaryStatusReason, + ) + primary_status_details: MutableSequence[ + asset_policy.AssetLinkPrimaryStatusDetails + ] = proto.RepeatedField( + proto.MESSAGE, + number=10, + message=asset_policy.AssetLinkPrimaryStatusDetails, + ) performance_label: asset_performance_label.AssetPerformanceLabelEnum.AssetPerformanceLabel = proto.Field( proto.ENUM, number=6, enum=asset_performance_label.AssetPerformanceLabelEnum.AssetPerformanceLabel, ) policy_summary: gagc_policy_summary.PolicySummary = proto.Field( - proto.MESSAGE, number=7, message=gagc_policy_summary.PolicySummary, + proto.MESSAGE, + number=7, + message=gagc_policy_summary.PolicySummary, ) diff --git a/google/ads/googleads/v14/resources/types/asset_group_listing_group_filter.py b/google/ads/googleads/v14/resources/types/asset_group_listing_group_filter.py index 2045dbf77..2005abdab 100644 --- a/google/ads/googleads/v14/resources/types/asset_group_listing_group_filter.py +++ b/google/ads/googleads/v14/resources/types/asset_group_listing_group_filter.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,6 +15,7 @@ # from __future__ import annotations +from typing import MutableSequence import proto # type: ignore @@ -40,7 +41,11 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetGroupListingGroupFilter", "ListingGroupFilterDimension",}, + manifest={ + "AssetGroupListingGroupFilter", + "ListingGroupFilterDimensionPath", + "ListingGroupFilterDimension", + }, ) @@ -76,16 +81,22 @@ class AssetGroupListingGroupFilter(proto.Message): Immutable. Resource name of the parent listing group subdivision. Null for the root listing group filter node. + path (google.ads.googleads.v14.resources.types.ListingGroupFilterDimensionPath): + Output only. The path of dimensions defining + this listing group filter. """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) id: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) type_: listing_group_filter_type_enum.ListingGroupFilterTypeEnum.ListingGroupFilterType = proto.Field( proto.ENUM, @@ -98,10 +109,39 @@ class AssetGroupListingGroupFilter(proto.Message): enum=listing_group_filter_vertical.ListingGroupFilterVerticalEnum.ListingGroupFilterVertical, ) case_value: "ListingGroupFilterDimension" = proto.Field( - proto.MESSAGE, number=6, message="ListingGroupFilterDimension", + proto.MESSAGE, + number=6, + message="ListingGroupFilterDimension", ) parent_listing_group_filter: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, + ) + path: "ListingGroupFilterDimensionPath" = proto.Field( + proto.MESSAGE, + number=8, + message="ListingGroupFilterDimensionPath", + ) + + +class ListingGroupFilterDimensionPath(proto.Message): + r"""The path defining of dimensions defining a listing group + filter. + + Attributes: + dimensions (MutableSequence[google.ads.googleads.v14.resources.types.ListingGroupFilterDimension]): + Output only. The complete path of dimensions + through the listing group filter hierarchy + (excluding the root node) to this listing group + filter. + """ + + dimensions: MutableSequence[ + "ListingGroupFilterDimension" + ] = proto.RepeatedField( + proto.MESSAGE, + number=1, + message="ListingGroupFilterDimension", ) @@ -170,7 +210,9 @@ class ProductBiddingCategory(proto.Message): """ id: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) level: listing_group_filter_bidding_category_level.ListingGroupFilterBiddingCategoryLevelEnum.ListingGroupFilterBiddingCategoryLevel = proto.Field( proto.ENUM, @@ -190,7 +232,9 @@ class ProductBrand(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) class ProductChannel(proto.Message): @@ -233,7 +277,9 @@ class ProductCustomAttribute(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) index: listing_group_filter_custom_attribute_index.ListingGroupFilterCustomAttributeIndexEnum.ListingGroupFilterCustomAttributeIndex = proto.Field( proto.ENUM, @@ -253,7 +299,9 @@ class ProductItemId(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) class ProductType(proto.Message): @@ -270,7 +318,9 @@ class ProductType(proto.Message): """ value: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) level: listing_group_filter_product_type_level.ListingGroupFilterProductTypeLevelEnum.ListingGroupFilterProductTypeLevel = proto.Field( proto.ENUM, @@ -285,13 +335,22 @@ class ProductType(proto.Message): message=ProductBiddingCategory, ) product_brand: ProductBrand = proto.Field( - proto.MESSAGE, number=2, oneof="dimension", message=ProductBrand, + proto.MESSAGE, + number=2, + oneof="dimension", + message=ProductBrand, ) product_channel: ProductChannel = proto.Field( - proto.MESSAGE, number=3, oneof="dimension", message=ProductChannel, + proto.MESSAGE, + number=3, + oneof="dimension", + message=ProductChannel, ) product_condition: ProductCondition = proto.Field( - proto.MESSAGE, number=4, oneof="dimension", message=ProductCondition, + proto.MESSAGE, + number=4, + oneof="dimension", + message=ProductCondition, ) product_custom_attribute: ProductCustomAttribute = proto.Field( proto.MESSAGE, @@ -300,10 +359,16 @@ class ProductType(proto.Message): message=ProductCustomAttribute, ) product_item_id: ProductItemId = proto.Field( - proto.MESSAGE, number=6, oneof="dimension", message=ProductItemId, + proto.MESSAGE, + number=6, + oneof="dimension", + message=ProductItemId, ) product_type: ProductType = proto.Field( - proto.MESSAGE, number=7, oneof="dimension", message=ProductType, + proto.MESSAGE, + number=7, + oneof="dimension", + message=ProductType, ) diff --git a/google/ads/googleads/v14/resources/types/asset_group_product_group_view.py b/google/ads/googleads/v14/resources/types/asset_group_product_group_view.py index 54265bfe0..b94771f11 100644 --- a/google/ads/googleads/v14/resources/types/asset_group_product_group_view.py +++ b/google/ads/googleads/v14/resources/types/asset_group_product_group_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetGroupProductGroupView",}, + manifest={ + "AssetGroupProductGroupView", + }, ) @@ -44,13 +46,16 @@ class AssetGroupProductGroupView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset_group_listing_group_filter: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) diff --git a/google/ads/googleads/v14/resources/types/asset_group_signal.py b/google/ads/googleads/v14/resources/types/asset_group_signal.py index 2eebe4836..15e3d0b73 100644 --- a/google/ads/googleads/v14/resources/types/asset_group_signal.py +++ b/google/ads/googleads/v14/resources/types/asset_group_signal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetGroupSignal",}, + manifest={ + "AssetGroupSignal", + }, ) @@ -50,13 +52,17 @@ class AssetGroupSignal(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_group: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) audience: criteria.AudienceInfo = proto.Field( - proto.MESSAGE, number=3, message=criteria.AudienceInfo, + proto.MESSAGE, + number=3, + message=criteria.AudienceInfo, ) diff --git a/google/ads/googleads/v14/resources/types/asset_set.py b/google/ads/googleads/v14/resources/types/asset_set.py index a194d47c0..42ec265c1 100644 --- a/google/ads/googleads/v14/resources/types/asset_set.py +++ b/google/ads/googleads/v14/resources/types/asset_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetSet",}, + manifest={ + "AssetSet", + }, ) @@ -109,10 +111,13 @@ class MerchantCenterFeed(proto.Message): """ merchant_id: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) feed_label: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) class HotelPropertyData(proto.Message): @@ -134,23 +139,32 @@ class HotelPropertyData(proto.Message): """ hotel_center_id: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) partner_name: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) id: int = proto.Field( - proto.INT64, number=6, + proto.INT64, + number=6, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) type_: asset_set_type.AssetSetTypeEnum.AssetSetType = proto.Field( - proto.ENUM, number=3, enum=asset_set_type.AssetSetTypeEnum.AssetSetType, + proto.ENUM, + number=3, + enum=asset_set_type.AssetSetTypeEnum.AssetSetType, ) status: asset_set_status.AssetSetStatusEnum.AssetSetStatus = proto.Field( proto.ENUM, @@ -158,13 +172,18 @@ class HotelPropertyData(proto.Message): enum=asset_set_status.AssetSetStatusEnum.AssetSetStatus, ) merchant_center_feed: MerchantCenterFeed = proto.Field( - proto.MESSAGE, number=5, message=MerchantCenterFeed, + proto.MESSAGE, + number=5, + message=MerchantCenterFeed, ) location_group_parent_asset_set_id: int = proto.Field( - proto.INT64, number=10, + proto.INT64, + number=10, ) hotel_property_data: HotelPropertyData = proto.Field( - proto.MESSAGE, number=11, message=HotelPropertyData, + proto.MESSAGE, + number=11, + message=HotelPropertyData, ) location_set: asset_set_types.LocationSet = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/asset_set_asset.py b/google/ads/googleads/v14/resources/types/asset_set_asset.py index e40cbb8cb..2cf7ba9d0 100644 --- a/google/ads/googleads/v14/resources/types/asset_set_asset.py +++ b/google/ads/googleads/v14/resources/types/asset_set_asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetSetAsset",}, + manifest={ + "AssetSetAsset", + }, ) @@ -50,13 +52,16 @@ class AssetSetAsset(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_set: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: asset_set_asset_status.AssetSetAssetStatusEnum.AssetSetAssetStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/asset_set_type_view.py b/google/ads/googleads/v14/resources/types/asset_set_type_view.py index c3f745652..936c4f986 100644 --- a/google/ads/googleads/v14/resources/types/asset_set_type_view.py +++ b/google/ads/googleads/v14/resources/types/asset_set_type_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"AssetSetTypeView",}, + manifest={ + "AssetSetTypeView", + }, ) @@ -48,12 +50,15 @@ class AssetSetTypeView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - asset_set_type: gage_asset_set_type.AssetSetTypeEnum.AssetSetType = proto.Field( - proto.ENUM, - number=3, - enum=gage_asset_set_type.AssetSetTypeEnum.AssetSetType, + asset_set_type: gage_asset_set_type.AssetSetTypeEnum.AssetSetType = ( + proto.Field( + proto.ENUM, + number=3, + enum=gage_asset_set_type.AssetSetTypeEnum.AssetSetType, + ) ) diff --git a/google/ads/googleads/v14/resources/types/audience.py b/google/ads/googleads/v14/resources/types/audience.py index 928d8ab92..25ea3e0a1 100644 --- a/google/ads/googleads/v14/resources/types/audience.py +++ b/google/ads/googleads/v14/resources/types/audience.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Audience",}, + manifest={ + "Audience", + }, ) @@ -63,10 +65,12 @@ class Audience(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) status: audience_status.AudienceStatusEnum.AudienceStatus = proto.Field( proto.ENUM, @@ -74,18 +78,24 @@ class Audience(proto.Message): enum=audience_status.AudienceStatusEnum.AudienceStatus, ) name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) description: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) dimensions: MutableSequence[ audiences.AudienceDimension ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=audiences.AudienceDimension, + proto.MESSAGE, + number=6, + message=audiences.AudienceDimension, ) exclusion_dimension: audiences.AudienceExclusionDimension = proto.Field( - proto.MESSAGE, number=7, message=audiences.AudienceExclusionDimension, + proto.MESSAGE, + number=7, + message=audiences.AudienceExclusionDimension, ) diff --git a/google/ads/googleads/v14/resources/types/batch_job.py b/google/ads/googleads/v14/resources/types/batch_job.py index 4c2dfb91f..fb3d6d845 100644 --- a/google/ads/googleads/v14/resources/types/batch_job.py +++ b/google/ads/googleads/v14/resources/types/batch_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"BatchJob",}, + manifest={ + "BatchJob", + }, ) @@ -119,38 +121,59 @@ class BatchJobMetadata(proto.Message): """ creation_date_time: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) start_date_time: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) completion_date_time: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) estimated_completion_ratio: float = proto.Field( - proto.DOUBLE, number=10, optional=True, + proto.DOUBLE, + number=10, + optional=True, ) operation_count: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) executed_operation_count: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) execution_limit_seconds: int = proto.Field( - proto.INT32, number=13, optional=True, + proto.INT32, + number=13, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) next_add_sequence_token: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) metadata: BatchJobMetadata = proto.Field( - proto.MESSAGE, number=4, message=BatchJobMetadata, + proto.MESSAGE, + number=4, + message=BatchJobMetadata, ) status: batch_job_status.BatchJobStatusEnum.BatchJobStatus = proto.Field( proto.ENUM, @@ -158,7 +181,9 @@ class BatchJobMetadata(proto.Message): enum=batch_job_status.BatchJobStatusEnum.BatchJobStatus, ) long_running_operation: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/bidding_data_exclusion.py b/google/ads/googleads/v14/resources/types/bidding_data_exclusion.py index 024abb464..65a720922 100644 --- a/google/ads/googleads/v14/resources/types/bidding_data_exclusion.py +++ b/google/ads/googleads/v14/resources/types/bidding_data_exclusion.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"BiddingDataExclusion",}, + manifest={ + "BiddingDataExclusion", + }, ) @@ -89,10 +91,12 @@ class BiddingDataExclusion(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) data_exclusion_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) scope: seasonality_event_scope.SeasonalityEventScopeEnum.SeasonalityEventScope = proto.Field( proto.ENUM, @@ -105,22 +109,29 @@ class BiddingDataExclusion(proto.Message): enum=seasonality_event_status.SeasonalityEventStatusEnum.SeasonalityEventStatus, ) start_date_time: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) end_date_time: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) name: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) description: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) devices: MutableSequence[device.DeviceEnum.Device] = proto.RepeatedField( - proto.ENUM, number=9, enum=device.DeviceEnum.Device, + proto.ENUM, + number=9, + enum=device.DeviceEnum.Device, ) campaigns: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=10, + proto.STRING, + number=10, ) advertising_channel_types: MutableSequence[ advertising_channel_type.AdvertisingChannelTypeEnum.AdvertisingChannelType diff --git a/google/ads/googleads/v14/resources/types/bidding_seasonality_adjustment.py b/google/ads/googleads/v14/resources/types/bidding_seasonality_adjustment.py index 41e34de04..eb5a75830 100644 --- a/google/ads/googleads/v14/resources/types/bidding_seasonality_adjustment.py +++ b/google/ads/googleads/v14/resources/types/bidding_seasonality_adjustment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"BiddingSeasonalityAdjustment",}, + manifest={ + "BiddingSeasonalityAdjustment", + }, ) @@ -98,10 +100,12 @@ class BiddingSeasonalityAdjustment(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) seasonality_adjustment_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) scope: seasonality_event_scope.SeasonalityEventScopeEnum.SeasonalityEventScope = proto.Field( proto.ENUM, @@ -114,25 +118,33 @@ class BiddingSeasonalityAdjustment(proto.Message): enum=seasonality_event_status.SeasonalityEventStatusEnum.SeasonalityEventStatus, ) start_date_time: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) end_date_time: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) name: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) description: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) devices: MutableSequence[device.DeviceEnum.Device] = proto.RepeatedField( - proto.ENUM, number=9, enum=device.DeviceEnum.Device, + proto.ENUM, + number=9, + enum=device.DeviceEnum.Device, ) conversion_rate_modifier: float = proto.Field( - proto.DOUBLE, number=10, + proto.DOUBLE, + number=10, ) campaigns: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=11, + proto.STRING, + number=11, ) advertising_channel_types: MutableSequence[ advertising_channel_type.AdvertisingChannelTypeEnum.AdvertisingChannelType diff --git a/google/ads/googleads/v14/resources/types/bidding_strategy.py b/google/ads/googleads/v14/resources/types/bidding_strategy.py index e1166ae44..6f44c985f 100644 --- a/google/ads/googleads/v14/resources/types/bidding_strategy.py +++ b/google/ads/googleads/v14/resources/types/bidding_strategy.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"BiddingStrategy",}, + manifest={ + "BiddingStrategy", + }, ) @@ -158,13 +160,18 @@ class BiddingStrategy(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=16, optional=True, + proto.INT64, + number=16, + optional=True, ) name: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) status: bidding_strategy_status.BiddingStrategyStatusEnum.BiddingStrategyStatus = proto.Field( proto.ENUM, @@ -177,22 +184,33 @@ class BiddingStrategy(proto.Message): enum=bidding_strategy_type.BiddingStrategyTypeEnum.BiddingStrategyType, ) currency_code: str = proto.Field( - proto.STRING, number=23, + proto.STRING, + number=23, ) effective_currency_code: str = proto.Field( - proto.STRING, number=20, optional=True, + proto.STRING, + number=20, + optional=True, ) aligned_campaign_budget_id: int = proto.Field( - proto.INT64, number=25, + proto.INT64, + number=25, ) campaign_count: int = proto.Field( - proto.INT64, number=18, optional=True, + proto.INT64, + number=18, + optional=True, ) non_removed_campaign_count: int = proto.Field( - proto.INT64, number=19, optional=True, + proto.INT64, + number=19, + optional=True, ) enhanced_cpc: bidding.EnhancedCpc = proto.Field( - proto.MESSAGE, number=7, oneof="scheme", message=bidding.EnhancedCpc, + proto.MESSAGE, + number=7, + oneof="scheme", + message=bidding.EnhancedCpc, ) maximize_conversion_value: bidding.MaximizeConversionValue = proto.Field( proto.MESSAGE, @@ -207,7 +225,10 @@ class BiddingStrategy(proto.Message): message=bidding.MaximizeConversions, ) target_cpa: bidding.TargetCpa = proto.Field( - proto.MESSAGE, number=9, oneof="scheme", message=bidding.TargetCpa, + proto.MESSAGE, + number=9, + oneof="scheme", + message=bidding.TargetCpa, ) target_impression_share: bidding.TargetImpressionShare = proto.Field( proto.MESSAGE, @@ -216,10 +237,16 @@ class BiddingStrategy(proto.Message): message=bidding.TargetImpressionShare, ) target_roas: bidding.TargetRoas = proto.Field( - proto.MESSAGE, number=11, oneof="scheme", message=bidding.TargetRoas, + proto.MESSAGE, + number=11, + oneof="scheme", + message=bidding.TargetRoas, ) target_spend: bidding.TargetSpend = proto.Field( - proto.MESSAGE, number=12, oneof="scheme", message=bidding.TargetSpend, + proto.MESSAGE, + number=12, + oneof="scheme", + message=bidding.TargetSpend, ) diff --git a/google/ads/googleads/v14/resources/types/bidding_strategy_simulation.py b/google/ads/googleads/v14/resources/types/bidding_strategy_simulation.py index 6c178fd0b..a506c8139 100644 --- a/google/ads/googleads/v14/resources/types/bidding_strategy_simulation.py +++ b/google/ads/googleads/v14/resources/types/bidding_strategy_simulation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"BiddingStrategySimulation",}, + manifest={ + "BiddingStrategySimulation", + }, ) @@ -80,10 +82,12 @@ class BiddingStrategySimulation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) bidding_strategy_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) type_: simulation_type.SimulationTypeEnum.SimulationType = proto.Field( proto.ENUM, @@ -96,22 +100,28 @@ class BiddingStrategySimulation(proto.Message): enum=simulation_modification_method.SimulationModificationMethodEnum.SimulationModificationMethod, ) start_date: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) end_date: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) - target_cpa_point_list: simulation.TargetCpaSimulationPointList = proto.Field( - proto.MESSAGE, - number=7, - oneof="point_list", - message=simulation.TargetCpaSimulationPointList, + target_cpa_point_list: simulation.TargetCpaSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=7, + oneof="point_list", + message=simulation.TargetCpaSimulationPointList, + ) ) - target_roas_point_list: simulation.TargetRoasSimulationPointList = proto.Field( - proto.MESSAGE, - number=8, - oneof="point_list", - message=simulation.TargetRoasSimulationPointList, + target_roas_point_list: simulation.TargetRoasSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=8, + oneof="point_list", + message=simulation.TargetRoasSimulationPointList, + ) ) diff --git a/google/ads/googleads/v14/resources/types/billing_setup.py b/google/ads/googleads/v14/resources/types/billing_setup.py index d3de96eb9..9d1e629f1 100644 --- a/google/ads/googleads/v14/resources/types/billing_setup.py +++ b/google/ads/googleads/v14/resources/types/billing_setup.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"BillingSetup",}, + manifest={ + "BillingSetup", + }, ) @@ -72,8 +74,8 @@ class BillingSetup(proto.Message): setup, this and payments_account will be populated. start_date_time (str): Immutable. The start date time in yyyy-MM-dd - or yyyy-MM-dd HH:mm:ss format. Only a future - time is allowed. + or yyyy-MM-dd HH:mm:ss + format. Only a future time is allowed. This field is a member of `oneof`_ ``start_time``. start_time_type (google.ads.googleads.v14.enums.types.TimeTypeEnum.TimeType): @@ -83,7 +85,8 @@ class BillingSetup(proto.Message): This field is a member of `oneof`_ ``start_time``. end_date_time (str): Output only. The end date time in yyyy-MM-dd - or yyyy-MM-dd HH:mm:ss format. + or yyyy-MM-dd HH:mm:ss + format. This field is a member of `oneof`_ ``end_time``. end_time_type (google.ads.googleads.v14.enums.types.TimeTypeEnum.TimeType): @@ -141,40 +144,61 @@ class PaymentsAccountInfo(proto.Message): """ payments_account_id: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) payments_account_name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) payments_profile_id: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) payments_profile_name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) secondary_payments_profile_id: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=15, optional=True, + proto.INT64, + number=15, + optional=True, ) - status: billing_setup_status.BillingSetupStatusEnum.BillingSetupStatus = proto.Field( - proto.ENUM, - number=3, - enum=billing_setup_status.BillingSetupStatusEnum.BillingSetupStatus, + status: billing_setup_status.BillingSetupStatusEnum.BillingSetupStatus = ( + proto.Field( + proto.ENUM, + number=3, + enum=billing_setup_status.BillingSetupStatusEnum.BillingSetupStatus, + ) ) payments_account: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) payments_account_info: PaymentsAccountInfo = proto.Field( - proto.MESSAGE, number=12, message=PaymentsAccountInfo, + proto.MESSAGE, + number=12, + message=PaymentsAccountInfo, ) start_date_time: str = proto.Field( - proto.STRING, number=16, oneof="start_time", + proto.STRING, + number=16, + oneof="start_time", ) start_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, @@ -183,7 +207,9 @@ class PaymentsAccountInfo(proto.Message): enum=time_type.TimeTypeEnum.TimeType, ) end_date_time: str = proto.Field( - proto.STRING, number=17, oneof="end_time", + proto.STRING, + number=17, + oneof="end_time", ) end_time_type: time_type.TimeTypeEnum.TimeType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/call_view.py b/google/ads/googleads/v14/resources/types/call_view.py index 3aa312465..37cacdaab 100644 --- a/google/ads/googleads/v14/resources/types/call_view.py +++ b/google/ads/googleads/v14/resources/types/call_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CallView",}, + manifest={ + "CallView", + }, ) @@ -66,22 +68,28 @@ class CallView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) caller_country_code: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) caller_area_code: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) call_duration_seconds: int = proto.Field( - proto.INT64, number=4, + proto.INT64, + number=4, ) start_call_date_time: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) end_call_date_time: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) call_tracking_display_location: gage_call_tracking_display_location.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation = proto.Field( proto.ENUM, @@ -89,7 +97,9 @@ class CallView(proto.Message): enum=gage_call_tracking_display_location.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation, ) type_: call_type.CallTypeEnum.CallType = proto.Field( - proto.ENUM, number=8, enum=call_type.CallTypeEnum.CallType, + proto.ENUM, + number=8, + enum=call_type.CallTypeEnum.CallType, ) call_status: google_voice_call_status.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/campaign.py b/google/ads/googleads/v14/resources/types/campaign.py index 66dd97fe4..c342f6080 100644 --- a/google/ads/googleads/v14/resources/types/campaign.py +++ b/google/ads/googleads/v14/resources/types/campaign.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -83,7 +83,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Campaign",}, + manifest={ + "Campaign", + }, ) @@ -173,6 +175,8 @@ class Campaign(proto.Message): The Local Services Campaign related settings. travel_campaign_settings (google.ads.googleads.v14.resources.types.Campaign.TravelCampaignSettings): Settings for Travel campaign. + discovery_campaign_settings (google.ads.googleads.v14.resources.types.Campaign.DiscoveryCampaignSettings): + Settings for Discovery campaign. real_time_bidding_setting (google.ads.googleads.v14.common.types.RealTimeBiddingSetting): Settings for Real-Time Bidding, a feature only available for campaigns targeting the Ad @@ -274,9 +278,12 @@ class Campaign(proto.Message): Describes how unbranded pharma ads will be displayed. selective_optimization (google.ads.googleads.v14.resources.types.Campaign.SelectiveOptimization): - Selective optimization setting for this - campaign, which includes a set of conversion - actions to optimize this campaign towards. + Selective optimization setting for this campaign, which + includes a set of conversion actions to optimize this + campaign towards. This feature only applies to app campaigns + that use MULTI_CHANNEL as AdvertisingChannelType and + APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as + AdvertisingChannelSubType. optimization_goal_setting (google.ads.googleads.v14.resources.types.Campaign.OptimizationGoalSetting): Optimization goal setting for this campaign, which includes a set of optimization goal types. @@ -372,8 +379,8 @@ class Campaign(proto.Message): This field is a member of `oneof`_ ``campaign_bidding_strategy``. manual_cpv (google.ads.googleads.v14.common.types.ManualCpv): - Output only. A bidding strategy that pays a - configurable amount per video view. + A bidding strategy that pays a configurable + amount per video view. This field is a member of `oneof`_ ``campaign_bidding_strategy``. maximize_conversions (google.ads.googleads.v14.common.types.MaximizeConversions): @@ -443,10 +450,12 @@ class PerformanceMaxUpgrade(proto.Message): """ performance_max_campaign: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) pre_upgrade_campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) status: performance_max_upgrade_status.PerformanceMaxUpgradeStatusEnum.PerformanceMaxUpgradeStatus = proto.Field( proto.ENUM, @@ -486,16 +495,24 @@ class NetworkSettings(proto.Message): """ target_google_search: bool = proto.Field( - proto.BOOL, number=5, optional=True, + proto.BOOL, + number=5, + optional=True, ) target_search_network: bool = proto.Field( - proto.BOOL, number=6, optional=True, + proto.BOOL, + number=6, + optional=True, ) target_content_network: bool = proto.Field( - proto.BOOL, number=7, optional=True, + proto.BOOL, + number=7, + optional=True, ) target_partner_search_network: bool = proto.Field( - proto.BOOL, number=8, optional=True, + proto.BOOL, + number=8, + optional=True, ) class HotelSettingInfo(proto.Message): @@ -510,7 +527,9 @@ class HotelSettingInfo(proto.Message): """ hotel_center_id: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) class DynamicSearchAdsSetting(proto.Message): @@ -536,16 +555,21 @@ class DynamicSearchAdsSetting(proto.Message): """ domain_name: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) language_code: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) use_supplied_urls_only: bool = proto.Field( - proto.BOOL, number=8, optional=True, + proto.BOOL, + number=8, + optional=True, ) feeds: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=9, + proto.STRING, + number=9, ) class ShoppingSetting(proto.Message): @@ -595,25 +619,42 @@ class ShoppingSetting(proto.Message): field is supported only in Smart Shopping Campaigns. For setting Vehicle Listing inventory in Performance Max campaigns, use ``listing_type`` instead. + advertising_partner_ids (MutableSequence[int]): + Immutable. The ads account IDs of advertising + partners cooperating within the campaign. """ merchant_id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) sales_country: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) feed_label: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) campaign_priority: int = proto.Field( - proto.INT32, number=7, optional=True, + proto.INT32, + number=7, + optional=True, ) enable_local: bool = proto.Field( - proto.BOOL, number=8, optional=True, + proto.BOOL, + number=8, + optional=True, ) use_vehicle_inventory: bool = proto.Field( - proto.BOOL, number=9, + proto.BOOL, + number=9, + ) + advertising_partner_ids: MutableSequence[int] = proto.RepeatedField( + proto.INT64, + number=11, ) class TrackingSetting(proto.Message): @@ -629,7 +670,9 @@ class TrackingSetting(proto.Message): """ tracking_url: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) class GeoTargetTypeSetting(proto.Message): @@ -695,7 +738,9 @@ class AppCampaignSetting(proto.Message): enum=app_campaign_bidding_strategy_goal_type.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType, ) app_id: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) app_store: app_campaign_app_store.AppCampaignAppStoreEnum.AppCampaignAppStore = proto.Field( proto.ENUM, @@ -727,9 +772,11 @@ class VanityPharma(proto.Message): ) class SelectiveOptimization(proto.Message): - r"""Selective optimization setting for this campaign, which - includes a set of conversion actions to optimize this campaign - towards. + r"""Selective optimization setting for this campaign, which includes a + set of conversion actions to optimize this campaign towards. This + feature only applies to app campaigns that use MULTI_CHANNEL as + AdvertisingChannelType and APP_CAMPAIGN or + APP_CAMPAIGN_FOR_ENGAGEMENT as AdvertisingChannelSubType. Attributes: conversion_actions (MutableSequence[str]): @@ -738,7 +785,8 @@ class SelectiveOptimization(proto.Message): """ conversion_actions: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) class OptimizationGoalSetting(proto.Message): @@ -773,7 +821,9 @@ class AudienceSetting(proto.Message): """ use_audience_grouped: bool = proto.Field( - proto.BOOL, number=1, optional=True, + proto.BOOL, + number=1, + optional=True, ) class LocalServicesCampaignSettings(proto.Message): @@ -787,7 +837,9 @@ class LocalServicesCampaignSettings(proto.Message): category_bids: MutableSequence[ "Campaign.CategoryBid" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="Campaign.CategoryBid", + proto.MESSAGE, + number=1, + message="Campaign.CategoryBid", ) class CategoryBid(proto.Message): @@ -810,10 +862,14 @@ class CategoryBid(proto.Message): """ category_id: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) manual_cpa_bid_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) class TravelCampaignSettings(proto.Message): @@ -829,17 +885,46 @@ class TravelCampaignSettings(proto.Message): """ travel_account_id: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, + ) + + class DiscoveryCampaignSettings(proto.Message): + r"""Settings for Discovery campaign. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + upgraded_targeting (bool): + Immutable. Specifies whether this campaign uses upgraded + targeting options. When this field is set to ``true``, you + can use location and language targeting at the ad group + level as opposed to the standard campaign-level targeting. + This field defaults to ``false``, and can only be set when + creating a campaign. + + This field is a member of `oneof`_ ``_upgraded_targeting``. + """ + + upgraded_targeting: bool = proto.Field( + proto.BOOL, + number=1, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=59, optional=True, + proto.INT64, + number=59, + optional=True, ) name: str = proto.Field( - proto.STRING, number=58, optional=True, + proto.STRING, + number=58, + optional=True, ) primary_status: campaign_primary_status.CampaignPrimaryStatusEnum.CampaignPrimaryStatus = proto.Field( proto.ENUM, @@ -884,18 +969,33 @@ class TravelCampaignSettings(proto.Message): enum=gage_advertising_channel_sub_type.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType, ) tracking_url_template: str = proto.Field( - proto.STRING, number=60, optional=True, + proto.STRING, + number=60, + optional=True, ) url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=12, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=12, + message=custom_parameter.CustomParameter, ) - local_services_campaign_settings: LocalServicesCampaignSettings = proto.Field( - proto.MESSAGE, number=75, message=LocalServicesCampaignSettings, + local_services_campaign_settings: LocalServicesCampaignSettings = ( + proto.Field( + proto.MESSAGE, + number=75, + message=LocalServicesCampaignSettings, + ) ) travel_campaign_settings: TravelCampaignSettings = proto.Field( - proto.MESSAGE, number=85, message=TravelCampaignSettings, + proto.MESSAGE, + number=85, + message=TravelCampaignSettings, + ) + discovery_campaign_settings: DiscoveryCampaignSettings = proto.Field( + proto.MESSAGE, + number=87, + message=DiscoveryCampaignSettings, ) real_time_bidding_setting: gagc_real_time_bidding_setting.RealTimeBiddingSetting = proto.Field( proto.MESSAGE, @@ -903,16 +1003,24 @@ class TravelCampaignSettings(proto.Message): message=gagc_real_time_bidding_setting.RealTimeBiddingSetting, ) network_settings: NetworkSettings = proto.Field( - proto.MESSAGE, number=14, message=NetworkSettings, + proto.MESSAGE, + number=14, + message=NetworkSettings, ) hotel_setting: HotelSettingInfo = proto.Field( - proto.MESSAGE, number=32, message=HotelSettingInfo, + proto.MESSAGE, + number=32, + message=HotelSettingInfo, ) dynamic_search_ads_setting: DynamicSearchAdsSetting = proto.Field( - proto.MESSAGE, number=33, message=DynamicSearchAdsSetting, + proto.MESSAGE, + number=33, + message=DynamicSearchAdsSetting, ) shopping_setting: ShoppingSetting = proto.Field( - proto.MESSAGE, number=36, message=ShoppingSetting, + proto.MESSAGE, + number=36, + message=ShoppingSetting, ) targeting_setting: gagc_targeting_setting.TargetingSetting = proto.Field( proto.MESSAGE, @@ -920,19 +1028,29 @@ class TravelCampaignSettings(proto.Message): message=gagc_targeting_setting.TargetingSetting, ) audience_setting: AudienceSetting = proto.Field( - proto.MESSAGE, number=73, optional=True, message=AudienceSetting, + proto.MESSAGE, + number=73, + optional=True, + message=AudienceSetting, ) geo_target_type_setting: GeoTargetTypeSetting = proto.Field( - proto.MESSAGE, number=47, message=GeoTargetTypeSetting, + proto.MESSAGE, + number=47, + message=GeoTargetTypeSetting, ) local_campaign_setting: LocalCampaignSetting = proto.Field( - proto.MESSAGE, number=50, message=LocalCampaignSetting, + proto.MESSAGE, + number=50, + message=LocalCampaignSetting, ) app_campaign_setting: AppCampaignSetting = proto.Field( - proto.MESSAGE, number=51, message=AppCampaignSetting, + proto.MESSAGE, + number=51, + message=AppCampaignSetting, ) labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=61, + proto.STRING, + number=61, ) experiment_type: campaign_experiment_type.CampaignExperimentTypeEnum.CampaignExperimentType = proto.Field( proto.ENUM, @@ -940,10 +1058,14 @@ class TravelCampaignSettings(proto.Message): enum=campaign_experiment_type.CampaignExperimentTypeEnum.CampaignExperimentType, ) base_campaign: str = proto.Field( - proto.STRING, number=56, optional=True, + proto.STRING, + number=56, + optional=True, ) campaign_budget: str = proto.Field( - proto.STRING, number=62, optional=True, + proto.STRING, + number=62, + optional=True, ) bidding_strategy_type: gage_bidding_strategy_type.BiddingStrategyTypeEnum.BiddingStrategyType = proto.Field( proto.ENUM, @@ -951,24 +1073,35 @@ class TravelCampaignSettings(proto.Message): enum=gage_bidding_strategy_type.BiddingStrategyTypeEnum.BiddingStrategyType, ) accessible_bidding_strategy: str = proto.Field( - proto.STRING, number=71, + proto.STRING, + number=71, ) start_date: str = proto.Field( - proto.STRING, number=63, optional=True, + proto.STRING, + number=63, + optional=True, ) campaign_group: str = proto.Field( - proto.STRING, number=76, optional=True, + proto.STRING, + number=76, + optional=True, ) end_date: str = proto.Field( - proto.STRING, number=64, optional=True, + proto.STRING, + number=64, + optional=True, ) final_url_suffix: str = proto.Field( - proto.STRING, number=65, optional=True, + proto.STRING, + number=65, + optional=True, ) frequency_caps: MutableSequence[ frequency_cap.FrequencyCapEntry ] = proto.RepeatedField( - proto.MESSAGE, number=40, message=frequency_cap.FrequencyCapEntry, + proto.MESSAGE, + number=40, + message=frequency_cap.FrequencyCapEntry, ) video_brand_safety_suitability: brand_safety_suitability.BrandSafetySuitabilityEnum.BrandSafetySuitability = proto.Field( proto.ENUM, @@ -976,16 +1109,24 @@ class TravelCampaignSettings(proto.Message): enum=brand_safety_suitability.BrandSafetySuitabilityEnum.BrandSafetySuitability, ) vanity_pharma: VanityPharma = proto.Field( - proto.MESSAGE, number=44, message=VanityPharma, + proto.MESSAGE, + number=44, + message=VanityPharma, ) selective_optimization: SelectiveOptimization = proto.Field( - proto.MESSAGE, number=45, message=SelectiveOptimization, + proto.MESSAGE, + number=45, + message=SelectiveOptimization, ) optimization_goal_setting: OptimizationGoalSetting = proto.Field( - proto.MESSAGE, number=54, message=OptimizationGoalSetting, + proto.MESSAGE, + number=54, + message=OptimizationGoalSetting, ) tracking_setting: TrackingSetting = proto.Field( - proto.MESSAGE, number=46, message=TrackingSetting, + proto.MESSAGE, + number=46, + message=TrackingSetting, ) payment_mode: gage_payment_mode.PaymentModeEnum.PaymentMode = proto.Field( proto.ENUM, @@ -993,7 +1134,9 @@ class TravelCampaignSettings(proto.Message): enum=gage_payment_mode.PaymentModeEnum.PaymentMode, ) optimization_score: float = proto.Field( - proto.DOUBLE, number=66, optional=True, + proto.DOUBLE, + number=66, + optional=True, ) excluded_parent_asset_field_types: MutableSequence[ asset_field_type.AssetFieldTypeEnum.AssetFieldType @@ -1010,13 +1153,19 @@ class TravelCampaignSettings(proto.Message): enum=asset_set_type.AssetSetTypeEnum.AssetSetType, ) url_expansion_opt_out: bool = proto.Field( - proto.BOOL, number=72, optional=True, + proto.BOOL, + number=72, + optional=True, ) performance_max_upgrade: PerformanceMaxUpgrade = proto.Field( - proto.MESSAGE, number=77, message=PerformanceMaxUpgrade, + proto.MESSAGE, + number=77, + message=PerformanceMaxUpgrade, ) hotel_property_asset_set: str = proto.Field( - proto.STRING, number=83, optional=True, + proto.STRING, + number=83, + optional=True, ) listing_type: gage_listing_type.ListingTypeEnum.ListingType = proto.Field( proto.ENUM, @@ -1025,7 +1174,9 @@ class TravelCampaignSettings(proto.Message): enum=gage_listing_type.ListingTypeEnum.ListingType, ) bidding_strategy: str = proto.Field( - proto.STRING, number=67, oneof="campaign_bidding_strategy", + proto.STRING, + number=67, + oneof="campaign_bidding_strategy", ) commission: bidding.Commission = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/campaign_asset.py b/google/ads/googleads/v14/resources/types/campaign_asset.py index dd7348bbc..f7182d7d7 100644 --- a/google/ads/googleads/v14/resources/types/campaign_asset.py +++ b/google/ads/googleads/v14/resources/types/campaign_asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignAsset",}, + manifest={ + "CampaignAsset", + }, ) @@ -84,21 +86,30 @@ class CampaignAsset(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) asset: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) - field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( - proto.ENUM, - number=4, - enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = ( + proto.Field( + proto.ENUM, + number=4, + enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + ) ) source: asset_source.AssetSourceEnum.AssetSource = proto.Field( - proto.ENUM, number=8, enum=asset_source.AssetSourceEnum.AssetSource, + proto.ENUM, + number=8, + enum=asset_source.AssetSourceEnum.AssetSource, ) status: asset_link_status.AssetLinkStatusEnum.AssetLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/campaign_asset_set.py b/google/ads/googleads/v14/resources/types/campaign_asset_set.py index 97a40148b..8667caafa 100644 --- a/google/ads/googleads/v14/resources/types/campaign_asset_set.py +++ b/google/ads/googleads/v14/resources/types/campaign_asset_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignAssetSet",}, + manifest={ + "CampaignAssetSet", + }, ) @@ -51,13 +53,16 @@ class CampaignAssetSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset_set: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: asset_set_link_status.AssetSetLinkStatusEnum.AssetSetLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/campaign_audience_view.py b/google/ads/googleads/v14/resources/types/campaign_audience_view.py index 9124aa760..dbd41cfae 100644 --- a/google/ads/googleads/v14/resources/types/campaign_audience_view.py +++ b/google/ads/googleads/v14/resources/types/campaign_audience_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignAudienceView",}, + manifest={ + "CampaignAudienceView", + }, ) @@ -43,7 +45,8 @@ class CampaignAudienceView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/campaign_bid_modifier.py b/google/ads/googleads/v14/resources/types/campaign_bid_modifier.py index 40c0ae742..730a19ff1 100644 --- a/google/ads/googleads/v14/resources/types/campaign_bid_modifier.py +++ b/google/ads/googleads/v14/resources/types/campaign_bid_modifier.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignBidModifier",}, + manifest={ + "CampaignBidModifier", + }, ) @@ -64,16 +66,23 @@ class CampaignBidModifier(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) criterion_id: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) bid_modifier: float = proto.Field( - proto.DOUBLE, number=8, optional=True, + proto.DOUBLE, + number=8, + optional=True, ) interaction_type: criteria.InteractionTypeInfo = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/campaign_budget.py b/google/ads/googleads/v14/resources/types/campaign_budget.py index a2c7306d2..4b1025a11 100644 --- a/google/ads/googleads/v14/resources/types/campaign_budget.py +++ b/google/ads/googleads/v14/resources/types/campaign_budget.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignBudget",}, + manifest={ + "CampaignBudget", + }, ) @@ -179,22 +181,33 @@ class CampaignBudget(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=19, optional=True, + proto.INT64, + number=19, + optional=True, ) name: str = proto.Field( - proto.STRING, number=20, optional=True, + proto.STRING, + number=20, + optional=True, ) amount_micros: int = proto.Field( - proto.INT64, number=21, optional=True, + proto.INT64, + number=21, + optional=True, ) total_amount_micros: int = proto.Field( - proto.INT64, number=22, optional=True, + proto.INT64, + number=22, + optional=True, ) status: budget_status.BudgetStatusEnum.BudgetStatus = proto.Field( - proto.ENUM, number=6, enum=budget_status.BudgetStatusEnum.BudgetStatus, + proto.ENUM, + number=6, + enum=budget_status.BudgetStatusEnum.BudgetStatus, ) delivery_method: budget_delivery_method.BudgetDeliveryMethodEnum.BudgetDeliveryMethod = proto.Field( proto.ENUM, @@ -202,37 +215,58 @@ class CampaignBudget(proto.Message): enum=budget_delivery_method.BudgetDeliveryMethodEnum.BudgetDeliveryMethod, ) explicitly_shared: bool = proto.Field( - proto.BOOL, number=23, optional=True, + proto.BOOL, + number=23, + optional=True, ) reference_count: int = proto.Field( - proto.INT64, number=24, optional=True, + proto.INT64, + number=24, + optional=True, ) has_recommended_budget: bool = proto.Field( - proto.BOOL, number=25, optional=True, + proto.BOOL, + number=25, + optional=True, ) recommended_budget_amount_micros: int = proto.Field( - proto.INT64, number=26, optional=True, + proto.INT64, + number=26, + optional=True, ) period: budget_period.BudgetPeriodEnum.BudgetPeriod = proto.Field( - proto.ENUM, number=13, enum=budget_period.BudgetPeriodEnum.BudgetPeriod, + proto.ENUM, + number=13, + enum=budget_period.BudgetPeriodEnum.BudgetPeriod, ) recommended_budget_estimated_change_weekly_clicks: int = proto.Field( - proto.INT64, number=27, optional=True, + proto.INT64, + number=27, + optional=True, ) recommended_budget_estimated_change_weekly_cost_micros: int = proto.Field( - proto.INT64, number=28, optional=True, + proto.INT64, + number=28, + optional=True, ) recommended_budget_estimated_change_weekly_interactions: int = proto.Field( - proto.INT64, number=29, optional=True, + proto.INT64, + number=29, + optional=True, ) recommended_budget_estimated_change_weekly_views: int = proto.Field( - proto.INT64, number=30, optional=True, + proto.INT64, + number=30, + optional=True, ) type_: budget_type.BudgetTypeEnum.BudgetType = proto.Field( - proto.ENUM, number=18, enum=budget_type.BudgetTypeEnum.BudgetType, + proto.ENUM, + number=18, + enum=budget_type.BudgetTypeEnum.BudgetType, ) aligned_bidding_strategy_id: int = proto.Field( - proto.INT64, number=31, + proto.INT64, + number=31, ) diff --git a/google/ads/googleads/v14/resources/types/campaign_conversion_goal.py b/google/ads/googleads/v14/resources/types/campaign_conversion_goal.py index 2f49ff9c8..4b11be2cd 100644 --- a/google/ads/googleads/v14/resources/types/campaign_conversion_goal.py +++ b/google/ads/googleads/v14/resources/types/campaign_conversion_goal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignConversionGoal",}, + manifest={ + "CampaignConversionGoal", + }, ) @@ -54,23 +56,28 @@ class CampaignConversionGoal(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) category: conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory = proto.Field( proto.ENUM, number=3, enum=conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory, ) - origin: conversion_origin.ConversionOriginEnum.ConversionOrigin = proto.Field( - proto.ENUM, - number=4, - enum=conversion_origin.ConversionOriginEnum.ConversionOrigin, + origin: conversion_origin.ConversionOriginEnum.ConversionOrigin = ( + proto.Field( + proto.ENUM, + number=4, + enum=conversion_origin.ConversionOriginEnum.ConversionOrigin, + ) ) biddable: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) diff --git a/google/ads/googleads/v14/resources/types/campaign_criterion.py b/google/ads/googleads/v14/resources/types/campaign_criterion.py index 481e3c31b..ca43ce7a6 100644 --- a/google/ads/googleads/v14/resources/types/campaign_criterion.py +++ b/google/ads/googleads/v14/resources/types/campaign_criterion.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignCriterion",}, + manifest={ + "CampaignCriterion", + }, ) @@ -206,22 +208,32 @@ class CampaignCriterion(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=37, optional=True, + proto.STRING, + number=37, + optional=True, ) criterion_id: int = proto.Field( - proto.INT64, number=38, optional=True, + proto.INT64, + number=38, + optional=True, ) display_name: str = proto.Field( - proto.STRING, number=43, + proto.STRING, + number=43, ) bid_modifier: float = proto.Field( - proto.FLOAT, number=39, optional=True, + proto.FLOAT, + number=39, + optional=True, ) negative: bool = proto.Field( - proto.BOOL, number=40, optional=True, + proto.BOOL, + number=40, + optional=True, ) type_: criterion_type.CriterionTypeEnum.CriterionType = proto.Field( proto.ENUM, @@ -324,7 +336,10 @@ class CampaignCriterion(proto.Message): message=criteria.ProximityInfo, ) topic: criteria.TopicInfo = proto.Field( - proto.MESSAGE, number=24, oneof="criterion", message=criteria.TopicInfo, + proto.MESSAGE, + number=24, + oneof="criterion", + message=criteria.TopicInfo, ) listing_scope: criteria.ListingScopeInfo = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/campaign_customizer.py b/google/ads/googleads/v14/resources/types/campaign_customizer.py index 6a7d4f180..18a089628 100644 --- a/google/ads/googleads/v14/resources/types/campaign_customizer.py +++ b/google/ads/googleads/v14/resources/types/campaign_customizer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignCustomizer",}, + manifest={ + "CampaignCustomizer", + }, ) @@ -56,13 +58,16 @@ class CampaignCustomizer(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) customizer_attribute: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus = proto.Field( proto.ENUM, @@ -70,7 +75,9 @@ class CampaignCustomizer(proto.Message): enum=customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus, ) value: customizer_value.CustomizerValue = proto.Field( - proto.MESSAGE, number=5, message=customizer_value.CustomizerValue, + proto.MESSAGE, + number=5, + message=customizer_value.CustomizerValue, ) diff --git a/google/ads/googleads/v14/resources/types/campaign_draft.py b/google/ads/googleads/v14/resources/types/campaign_draft.py index fa7860127..b114705aa 100644 --- a/google/ads/googleads/v14/resources/types/campaign_draft.py +++ b/google/ads/googleads/v14/resources/types/campaign_draft.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignDraft",}, + manifest={ + "CampaignDraft", + }, ) @@ -86,19 +88,28 @@ class CampaignDraft(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) draft_id: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) base_campaign: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) draft_campaign: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) status: campaign_draft_status.CampaignDraftStatusEnum.CampaignDraftStatus = proto.Field( proto.ENUM, @@ -106,10 +117,14 @@ class CampaignDraft(proto.Message): enum=campaign_draft_status.CampaignDraftStatusEnum.CampaignDraftStatus, ) has_experiment_running: bool = proto.Field( - proto.BOOL, number=13, optional=True, + proto.BOOL, + number=13, + optional=True, ) long_running_operation: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/campaign_extension_setting.py b/google/ads/googleads/v14/resources/types/campaign_extension_setting.py index 8231a8d76..6945bafc1 100644 --- a/google/ads/googleads/v14/resources/types/campaign_extension_setting.py +++ b/google/ads/googleads/v14/resources/types/campaign_extension_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignExtensionSetting",}, + manifest={ + "CampaignExtensionSetting", + }, ) @@ -66,18 +68,24 @@ class CampaignExtensionSetting(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = proto.Field( - proto.ENUM, - number=2, - enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = ( + proto.Field( + proto.ENUM, + number=2, + enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + ) ) campaign: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) extension_feed_items: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=7, + proto.STRING, + number=7, ) device: extension_setting_device.ExtensionSettingDeviceEnum.ExtensionSettingDevice = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/campaign_feed.py b/google/ads/googleads/v14/resources/types/campaign_feed.py index e83777bc4..d8759ee60 100644 --- a/google/ads/googleads/v14/resources/types/campaign_feed.py +++ b/google/ads/googleads/v14/resources/types/campaign_feed.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignFeed",}, + manifest={ + "CampaignFeed", + }, ) @@ -67,13 +69,18 @@ class CampaignFeed(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) campaign: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) placeholder_types: MutableSequence[ placeholder_type.PlaceholderTypeEnum.PlaceholderType diff --git a/google/ads/googleads/v14/resources/types/campaign_group.py b/google/ads/googleads/v14/resources/types/campaign_group.py index 269c10718..6f42f4e12 100644 --- a/google/ads/googleads/v14/resources/types/campaign_group.py +++ b/google/ads/googleads/v14/resources/types/campaign_group.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignGroup",}, + manifest={ + "CampaignGroup", + }, ) @@ -53,13 +55,16 @@ class CampaignGroup(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) status: campaign_group_status.CampaignGroupStatusEnum.CampaignGroupStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/campaign_label.py b/google/ads/googleads/v14/resources/types/campaign_label.py index 472b5245f..3f5b1f569 100644 --- a/google/ads/googleads/v14/resources/types/campaign_label.py +++ b/google/ads/googleads/v14/resources/types/campaign_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignLabel",}, + manifest={ + "CampaignLabel", + }, ) @@ -48,13 +50,18 @@ class CampaignLabel(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) label: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/campaign_search_term_insight.py b/google/ads/googleads/v14/resources/types/campaign_search_term_insight.py new file mode 100644 index 000000000..c3fb3bf2a --- /dev/null +++ b/google/ads/googleads/v14/resources/types/campaign_search_term_insight.py @@ -0,0 +1,82 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 +# +# http://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. +# +from __future__ import annotations + + +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.ads.googleads.v14.resources", + marshal="google.ads.googleads.v14", + manifest={ + "CampaignSearchTermInsight", + }, +) + + +class CampaignSearchTermInsight(proto.Message): + r"""A Campaign search term view. + Historical data is available starting March 2023. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + resource_name (str): + Output only. The resource name of the campaign level search + term insight. Campaign level search term insight resource + names have the form: + + ``customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{category_id}`` + category_label (str): + Output only. The label for the search + category. An empty string denotes the catch-all + category for search terms that didn't fit into + another category. + + This field is a member of `oneof`_ ``_category_label``. + id (int): + Output only. The ID of the insight. + + This field is a member of `oneof`_ ``_id``. + campaign_id (int): + Output only. The ID of the campaign. + + This field is a member of `oneof`_ ``_campaign_id``. + """ + + resource_name: str = proto.Field( + proto.STRING, + number=1, + ) + category_label: str = proto.Field( + proto.STRING, + number=2, + optional=True, + ) + id: int = proto.Field( + proto.INT64, + number=3, + optional=True, + ) + campaign_id: int = proto.Field( + proto.INT64, + number=4, + optional=True, + ) + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/resources/types/campaign_shared_set.py b/google/ads/googleads/v14/resources/types/campaign_shared_set.py index 641fccbc0..43a5ab7a5 100644 --- a/google/ads/googleads/v14/resources/types/campaign_shared_set.py +++ b/google/ads/googleads/v14/resources/types/campaign_shared_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignSharedSet",}, + manifest={ + "CampaignSharedSet", + }, ) @@ -63,13 +65,18 @@ class CampaignSharedSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) shared_set: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) status: campaign_shared_set_status.CampaignSharedSetStatusEnum.CampaignSharedSetStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/campaign_simulation.py b/google/ads/googleads/v14/resources/types/campaign_simulation.py index e9441c4ae..d73da4a3b 100644 --- a/google/ads/googleads/v14/resources/types/campaign_simulation.py +++ b/google/ads/googleads/v14/resources/types/campaign_simulation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CampaignSimulation",}, + manifest={ + "CampaignSimulation", + }, ) @@ -106,10 +108,12 @@ class CampaignSimulation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) type_: simulation_type.SimulationTypeEnum.SimulationType = proto.Field( proto.ENUM, @@ -122,10 +126,12 @@ class CampaignSimulation(proto.Message): enum=simulation_modification_method.SimulationModificationMethodEnum.SimulationModificationMethod, ) start_date: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) end_date: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) cpc_bid_point_list: simulation.CpcBidSimulationPointList = proto.Field( proto.MESSAGE, @@ -133,17 +139,21 @@ class CampaignSimulation(proto.Message): oneof="point_list", message=simulation.CpcBidSimulationPointList, ) - target_cpa_point_list: simulation.TargetCpaSimulationPointList = proto.Field( - proto.MESSAGE, - number=8, - oneof="point_list", - message=simulation.TargetCpaSimulationPointList, + target_cpa_point_list: simulation.TargetCpaSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=8, + oneof="point_list", + message=simulation.TargetCpaSimulationPointList, + ) ) - target_roas_point_list: simulation.TargetRoasSimulationPointList = proto.Field( - proto.MESSAGE, - number=9, - oneof="point_list", - message=simulation.TargetRoasSimulationPointList, + target_roas_point_list: simulation.TargetRoasSimulationPointList = ( + proto.Field( + proto.MESSAGE, + number=9, + oneof="point_list", + message=simulation.TargetRoasSimulationPointList, + ) ) target_impression_share_point_list: simulation.TargetImpressionShareSimulationPointList = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/carrier_constant.py b/google/ads/googleads/v14/resources/types/carrier_constant.py index 6092990da..b5dd1c962 100644 --- a/google/ads/googleads/v14/resources/types/carrier_constant.py +++ b/google/ads/googleads/v14/resources/types/carrier_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CarrierConstant",}, + manifest={ + "CarrierConstant", + }, ) @@ -54,16 +56,23 @@ class CarrierConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) name: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/change_event.py b/google/ads/googleads/v14/resources/types/change_event.py index d66c73b01..1aeed016e 100644 --- a/google/ads/googleads/v14/resources/types/change_event.py +++ b/google/ads/googleads/v14/resources/types/change_event.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -72,7 +72,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ChangeEvent",}, + manifest={ + "ChangeEvent", + }, ) @@ -183,80 +185,116 @@ class ChangedResource(proto.Message): """ ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=1, message=gagr_ad.Ad, + proto.MESSAGE, + number=1, + message=gagr_ad.Ad, ) ad_group: gagr_ad_group.AdGroup = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad_group.AdGroup, - ) - ad_group_criterion: gagr_ad_group_criterion.AdGroupCriterion = proto.Field( proto.MESSAGE, - number=3, - message=gagr_ad_group_criterion.AdGroupCriterion, + number=2, + message=gagr_ad_group.AdGroup, + ) + ad_group_criterion: gagr_ad_group_criterion.AdGroupCriterion = ( + proto.Field( + proto.MESSAGE, + number=3, + message=gagr_ad_group_criterion.AdGroupCriterion, + ) ) campaign: gagr_campaign.Campaign = proto.Field( - proto.MESSAGE, number=4, message=gagr_campaign.Campaign, + proto.MESSAGE, + number=4, + message=gagr_campaign.Campaign, ) campaign_budget: gagr_campaign_budget.CampaignBudget = proto.Field( proto.MESSAGE, number=5, message=gagr_campaign_budget.CampaignBudget, ) - ad_group_bid_modifier: gagr_ad_group_bid_modifier.AdGroupBidModifier = proto.Field( - proto.MESSAGE, - number=6, - message=gagr_ad_group_bid_modifier.AdGroupBidModifier, + ad_group_bid_modifier: gagr_ad_group_bid_modifier.AdGroupBidModifier = ( + proto.Field( + proto.MESSAGE, + number=6, + message=gagr_ad_group_bid_modifier.AdGroupBidModifier, + ) ) - campaign_criterion: gagr_campaign_criterion.CampaignCriterion = proto.Field( - proto.MESSAGE, - number=7, - message=gagr_campaign_criterion.CampaignCriterion, + campaign_criterion: gagr_campaign_criterion.CampaignCriterion = ( + proto.Field( + proto.MESSAGE, + number=7, + message=gagr_campaign_criterion.CampaignCriterion, + ) ) feed: gagr_feed.Feed = proto.Field( - proto.MESSAGE, number=8, message=gagr_feed.Feed, + proto.MESSAGE, + number=8, + message=gagr_feed.Feed, ) feed_item: gagr_feed_item.FeedItem = proto.Field( - proto.MESSAGE, number=9, message=gagr_feed_item.FeedItem, + proto.MESSAGE, + number=9, + message=gagr_feed_item.FeedItem, ) campaign_feed: gagr_campaign_feed.CampaignFeed = proto.Field( - proto.MESSAGE, number=10, message=gagr_campaign_feed.CampaignFeed, + proto.MESSAGE, + number=10, + message=gagr_campaign_feed.CampaignFeed, ) ad_group_feed: gagr_ad_group_feed.AdGroupFeed = proto.Field( - proto.MESSAGE, number=11, message=gagr_ad_group_feed.AdGroupFeed, + proto.MESSAGE, + number=11, + message=gagr_ad_group_feed.AdGroupFeed, ) ad_group_ad: gagr_ad_group_ad.AdGroupAd = proto.Field( - proto.MESSAGE, number=12, message=gagr_ad_group_ad.AdGroupAd, + proto.MESSAGE, + number=12, + message=gagr_ad_group_ad.AdGroupAd, ) asset: gagr_asset.Asset = proto.Field( - proto.MESSAGE, number=13, message=gagr_asset.Asset, + proto.MESSAGE, + number=13, + message=gagr_asset.Asset, ) customer_asset: gagr_customer_asset.CustomerAsset = proto.Field( - proto.MESSAGE, number=14, message=gagr_customer_asset.CustomerAsset, + proto.MESSAGE, + number=14, + message=gagr_customer_asset.CustomerAsset, ) campaign_asset: gagr_campaign_asset.CampaignAsset = proto.Field( - proto.MESSAGE, number=15, message=gagr_campaign_asset.CampaignAsset, + proto.MESSAGE, + number=15, + message=gagr_campaign_asset.CampaignAsset, ) ad_group_asset: gagr_ad_group_asset.AdGroupAsset = proto.Field( - proto.MESSAGE, number=16, message=gagr_ad_group_asset.AdGroupAsset, + proto.MESSAGE, + number=16, + message=gagr_ad_group_asset.AdGroupAsset, ) asset_set: gagr_asset_set.AssetSet = proto.Field( - proto.MESSAGE, number=17, message=gagr_asset_set.AssetSet, + proto.MESSAGE, + number=17, + message=gagr_asset_set.AssetSet, ) asset_set_asset: gagr_asset_set_asset.AssetSetAsset = proto.Field( proto.MESSAGE, number=18, message=gagr_asset_set_asset.AssetSetAsset, ) - campaign_asset_set: gagr_campaign_asset_set.CampaignAssetSet = proto.Field( - proto.MESSAGE, - number=19, - message=gagr_campaign_asset_set.CampaignAssetSet, + campaign_asset_set: gagr_campaign_asset_set.CampaignAssetSet = ( + proto.Field( + proto.MESSAGE, + number=19, + message=gagr_campaign_asset_set.CampaignAssetSet, + ) ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) change_date_time: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) change_resource_type: change_event_resource_type.ChangeEventResourceTypeEnum.ChangeEventResourceType = proto.Field( proto.ENUM, @@ -264,21 +302,29 @@ class ChangedResource(proto.Message): enum=change_event_resource_type.ChangeEventResourceTypeEnum.ChangeEventResourceType, ) change_resource_name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) - client_type: change_client_type.ChangeClientTypeEnum.ChangeClientType = proto.Field( - proto.ENUM, - number=5, - enum=change_client_type.ChangeClientTypeEnum.ChangeClientType, + client_type: change_client_type.ChangeClientTypeEnum.ChangeClientType = ( + proto.Field( + proto.ENUM, + number=5, + enum=change_client_type.ChangeClientTypeEnum.ChangeClientType, + ) ) user_email: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) old_resource: ChangedResource = proto.Field( - proto.MESSAGE, number=7, message=ChangedResource, + proto.MESSAGE, + number=7, + message=ChangedResource, ) new_resource: ChangedResource = proto.Field( - proto.MESSAGE, number=8, message=ChangedResource, + proto.MESSAGE, + number=8, + message=ChangedResource, ) resource_change_operation: gage_resource_change_operation.ResourceChangeOperationEnum.ResourceChangeOperation = proto.Field( proto.ENUM, @@ -286,22 +332,29 @@ class ChangedResource(proto.Message): enum=gage_resource_change_operation.ResourceChangeOperationEnum.ResourceChangeOperation, ) changed_fields: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=10, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=10, + message=field_mask_pb2.FieldMask, ) campaign: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) ad_group: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) feed: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) feed_item: str = proto.Field( - proto.STRING, number=14, + proto.STRING, + number=14, ) asset: str = proto.Field( - proto.STRING, number=20, + proto.STRING, + number=20, ) diff --git a/google/ads/googleads/v14/resources/types/change_status.py b/google/ads/googleads/v14/resources/types/change_status.py index 64f2c3abe..0006fbe9b 100644 --- a/google/ads/googleads/v14/resources/types/change_status.py +++ b/google/ads/googleads/v14/resources/types/change_status.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ChangeStatus",}, + manifest={ + "ChangeStatus", + }, ) @@ -127,10 +129,13 @@ class ChangeStatus(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) last_change_date_time: str = proto.Field( - proto.STRING, number=24, optional=True, + proto.STRING, + number=24, + optional=True, ) resource_type: change_status_resource_type.ChangeStatusResourceTypeEnum.ChangeStatusResourceType = proto.Field( proto.ENUM, @@ -138,10 +143,14 @@ class ChangeStatus(proto.Message): enum=change_status_resource_type.ChangeStatusResourceTypeEnum.ChangeStatusResourceType, ) campaign: str = proto.Field( - proto.STRING, number=17, optional=True, + proto.STRING, + number=17, + optional=True, ) ad_group: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) resource_status: change_status_operation.ChangeStatusOperationEnum.ChangeStatusOperation = proto.Field( proto.ENUM, @@ -149,49 +158,72 @@ class ChangeStatus(proto.Message): enum=change_status_operation.ChangeStatusOperationEnum.ChangeStatusOperation, ) ad_group_ad: str = proto.Field( - proto.STRING, number=25, optional=True, + proto.STRING, + number=25, + optional=True, ) ad_group_criterion: str = proto.Field( - proto.STRING, number=26, optional=True, + proto.STRING, + number=26, + optional=True, ) campaign_criterion: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) feed: str = proto.Field( - proto.STRING, number=28, optional=True, + proto.STRING, + number=28, + optional=True, ) feed_item: str = proto.Field( - proto.STRING, number=29, optional=True, + proto.STRING, + number=29, + optional=True, ) ad_group_feed: str = proto.Field( - proto.STRING, number=30, optional=True, + proto.STRING, + number=30, + optional=True, ) campaign_feed: str = proto.Field( - proto.STRING, number=31, optional=True, + proto.STRING, + number=31, + optional=True, ) ad_group_bid_modifier: str = proto.Field( - proto.STRING, number=32, optional=True, + proto.STRING, + number=32, + optional=True, ) shared_set: str = proto.Field( - proto.STRING, number=33, + proto.STRING, + number=33, ) campaign_shared_set: str = proto.Field( - proto.STRING, number=34, + proto.STRING, + number=34, ) asset: str = proto.Field( - proto.STRING, number=35, + proto.STRING, + number=35, ) customer_asset: str = proto.Field( - proto.STRING, number=36, + proto.STRING, + number=36, ) campaign_asset: str = proto.Field( - proto.STRING, number=37, + proto.STRING, + number=37, ) ad_group_asset: str = proto.Field( - proto.STRING, number=38, + proto.STRING, + number=38, ) combined_audience: str = proto.Field( - proto.STRING, number=40, + proto.STRING, + number=40, ) diff --git a/google/ads/googleads/v14/resources/types/click_view.py b/google/ads/googleads/v14/resources/types/click_view.py index ad09cef6d..3421acde1 100644 --- a/google/ads/googleads/v14/resources/types/click_view.py +++ b/google/ads/googleads/v14/resources/types/click_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ClickView",}, + manifest={ + "ClickView", + }, ) @@ -86,34 +88,52 @@ class ClickView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) gclid: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) area_of_interest: click_location.ClickLocation = proto.Field( - proto.MESSAGE, number=3, message=click_location.ClickLocation, + proto.MESSAGE, + number=3, + message=click_location.ClickLocation, ) location_of_presence: click_location.ClickLocation = proto.Field( - proto.MESSAGE, number=4, message=click_location.ClickLocation, + proto.MESSAGE, + number=4, + message=click_location.ClickLocation, ) page_number: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) ad_group_ad: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) campaign_location_target: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) user_list: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) keyword: str = proto.Field( - proto.STRING, number=13, + proto.STRING, + number=13, ) keyword_info: criteria.KeywordInfo = proto.Field( - proto.MESSAGE, number=14, message=criteria.KeywordInfo, + proto.MESSAGE, + number=14, + message=criteria.KeywordInfo, ) diff --git a/google/ads/googleads/v14/resources/types/combined_audience.py b/google/ads/googleads/v14/resources/types/combined_audience.py index 502ad1202..e3bfcd06e 100644 --- a/google/ads/googleads/v14/resources/types/combined_audience.py +++ b/google/ads/googleads/v14/resources/types/combined_audience.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CombinedAudience",}, + manifest={ + "CombinedAudience", + }, ) @@ -54,10 +56,12 @@ class CombinedAudience(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) status: combined_audience_status.CombinedAudienceStatusEnum.CombinedAudienceStatus = proto.Field( proto.ENUM, @@ -65,10 +69,12 @@ class CombinedAudience(proto.Message): enum=combined_audience_status.CombinedAudienceStatusEnum.CombinedAudienceStatus, ) name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) description: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) diff --git a/google/ads/googleads/v14/resources/types/conversion_action.py b/google/ads/googleads/v14/resources/types/conversion_action.py index 7790e6fbe..70b882548 100644 --- a/google/ads/googleads/v14/resources/types/conversion_action.py +++ b/google/ads/googleads/v14/resources/types/conversion_action.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -39,7 +39,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ConversionAction",}, + manifest={ + "ConversionAction", + }, ) @@ -207,13 +209,19 @@ class ValueSettings(proto.Message): """ default_value: float = proto.Field( - proto.DOUBLE, number=4, optional=True, + proto.DOUBLE, + number=4, + optional=True, ) default_currency_code: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) always_use_default_value: bool = proto.Field( - proto.BOOL, number=6, optional=True, + proto.BOOL, + number=6, + optional=True, ) class ThirdPartyAppAnalyticsSettings(proto.Message): @@ -234,10 +242,13 @@ class ThirdPartyAppAnalyticsSettings(proto.Message): """ event_name: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) provider_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) class FirebaseSettings(proto.Message): @@ -264,16 +275,22 @@ class FirebaseSettings(proto.Message): """ event_name: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) project_id: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) property_id: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) property_name: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) class GoogleAnalytics4Settings(proto.Message): @@ -288,23 +305,31 @@ class GoogleAnalytics4Settings(proto.Message): """ event_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) property_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) property_id: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=21, optional=True, + proto.INT64, + number=21, + optional=True, ) name: str = proto.Field( - proto.STRING, number=22, optional=True, + proto.STRING, + number=22, + optional=True, ) status: conversion_action_status.ConversionActionStatusEnum.ConversionActionStatus = proto.Field( proto.ENUM, @@ -316,13 +341,17 @@ class GoogleAnalytics4Settings(proto.Message): number=5, enum=conversion_action_type.ConversionActionTypeEnum.ConversionActionType, ) - origin: conversion_origin.ConversionOriginEnum.ConversionOrigin = proto.Field( - proto.ENUM, - number=30, - enum=conversion_origin.ConversionOriginEnum.ConversionOrigin, + origin: conversion_origin.ConversionOriginEnum.ConversionOrigin = ( + proto.Field( + proto.ENUM, + number=30, + enum=conversion_origin.ConversionOriginEnum.ConversionOrigin, + ) ) primary_for_goal: bool = proto.Field( - proto.BOOL, number=31, optional=True, + proto.BOOL, + number=31, + optional=True, ) category: conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory = proto.Field( proto.ENUM, @@ -330,19 +359,29 @@ class GoogleAnalytics4Settings(proto.Message): enum=conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory, ) owner_customer: str = proto.Field( - proto.STRING, number=23, optional=True, + proto.STRING, + number=23, + optional=True, ) include_in_conversions_metric: bool = proto.Field( - proto.BOOL, number=24, optional=True, + proto.BOOL, + number=24, + optional=True, ) click_through_lookback_window_days: int = proto.Field( - proto.INT64, number=25, optional=True, + proto.INT64, + number=25, + optional=True, ) view_through_lookback_window_days: int = proto.Field( - proto.INT64, number=26, optional=True, + proto.INT64, + number=26, + optional=True, ) value_settings: ValueSettings = proto.Field( - proto.MESSAGE, number=11, message=ValueSettings, + proto.MESSAGE, + number=11, + message=ValueSettings, ) counting_type: conversion_action_counting_type.ConversionActionCountingTypeEnum.ConversionActionCountingType = proto.Field( proto.ENUM, @@ -350,16 +389,24 @@ class GoogleAnalytics4Settings(proto.Message): enum=conversion_action_counting_type.ConversionActionCountingTypeEnum.ConversionActionCountingType, ) attribution_model_settings: AttributionModelSettings = proto.Field( - proto.MESSAGE, number=13, message=AttributionModelSettings, + proto.MESSAGE, + number=13, + message=AttributionModelSettings, ) tag_snippets: MutableSequence[tag_snippet.TagSnippet] = proto.RepeatedField( - proto.MESSAGE, number=14, message=tag_snippet.TagSnippet, + proto.MESSAGE, + number=14, + message=tag_snippet.TagSnippet, ) phone_call_duration_seconds: int = proto.Field( - proto.INT64, number=27, optional=True, + proto.INT64, + number=27, + optional=True, ) app_id: str = proto.Field( - proto.STRING, number=28, optional=True, + proto.STRING, + number=28, + optional=True, ) mobile_app_vendor: gage_mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor = proto.Field( proto.ENUM, @@ -367,13 +414,21 @@ class GoogleAnalytics4Settings(proto.Message): enum=gage_mobile_app_vendor.MobileAppVendorEnum.MobileAppVendor, ) firebase_settings: FirebaseSettings = proto.Field( - proto.MESSAGE, number=18, message=FirebaseSettings, + proto.MESSAGE, + number=18, + message=FirebaseSettings, ) - third_party_app_analytics_settings: ThirdPartyAppAnalyticsSettings = proto.Field( - proto.MESSAGE, number=19, message=ThirdPartyAppAnalyticsSettings, + third_party_app_analytics_settings: ThirdPartyAppAnalyticsSettings = ( + proto.Field( + proto.MESSAGE, + number=19, + message=ThirdPartyAppAnalyticsSettings, + ) ) google_analytics_4_settings: GoogleAnalytics4Settings = proto.Field( - proto.MESSAGE, number=34, message=GoogleAnalytics4Settings, + proto.MESSAGE, + number=34, + message=GoogleAnalytics4Settings, ) diff --git a/google/ads/googleads/v14/resources/types/conversion_custom_variable.py b/google/ads/googleads/v14/resources/types/conversion_custom_variable.py index f1eb6263c..e3505cdb9 100644 --- a/google/ads/googleads/v14/resources/types/conversion_custom_variable.py +++ b/google/ads/googleads/v14/resources/types/conversion_custom_variable.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ConversionCustomVariable",}, + manifest={ + "ConversionCustomVariable", + }, ) @@ -71,16 +73,20 @@ class ConversionCustomVariable(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) tag: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) status: conversion_custom_variable_status.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus = proto.Field( proto.ENUM, @@ -88,7 +94,8 @@ class ConversionCustomVariable(proto.Message): enum=conversion_custom_variable_status.ConversionCustomVariableStatusEnum.ConversionCustomVariableStatus, ) owner_customer: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) diff --git a/google/ads/googleads/v14/resources/types/conversion_goal_campaign_config.py b/google/ads/googleads/v14/resources/types/conversion_goal_campaign_config.py index 325e97cfb..39448cfa1 100644 --- a/google/ads/googleads/v14/resources/types/conversion_goal_campaign_config.py +++ b/google/ads/googleads/v14/resources/types/conversion_goal_campaign_config.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ConversionGoalCampaignConfig",}, + manifest={ + "ConversionGoalCampaignConfig", + }, ) @@ -51,10 +53,12 @@ class ConversionGoalCampaignConfig(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) goal_config_level: gage_goal_config_level.GoalConfigLevelEnum.GoalConfigLevel = proto.Field( proto.ENUM, @@ -62,7 +66,8 @@ class ConversionGoalCampaignConfig(proto.Message): enum=gage_goal_config_level.GoalConfigLevelEnum.GoalConfigLevel, ) custom_conversion_goal: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) diff --git a/google/ads/googleads/v14/resources/types/conversion_value_rule.py b/google/ads/googleads/v14/resources/types/conversion_value_rule.py index 5a1fd0fb1..311e2790c 100644 --- a/google/ads/googleads/v14/resources/types/conversion_value_rule.py +++ b/google/ads/googleads/v14/resources/types/conversion_value_rule.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRule",}, + manifest={ + "ConversionValueRule", + }, ) @@ -82,7 +84,8 @@ class ValueRuleAction(proto.Message): enum=value_rule_operation.ValueRuleOperationEnum.ValueRuleOperation, ) value: float = proto.Field( - proto.DOUBLE, number=2, + proto.DOUBLE, + number=2, ) class ValueRuleGeoLocationCondition(proto.Message): @@ -103,7 +106,8 @@ class ValueRuleGeoLocationCondition(proto.Message): excluded_geo_target_constants: MutableSequence[ str ] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) excluded_geo_match_type: value_rule_geo_location_match_type.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType = proto.Field( proto.ENUM, @@ -111,7 +115,8 @@ class ValueRuleGeoLocationCondition(proto.Message): enum=value_rule_geo_location_match_type.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType, ) geo_target_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=3, + proto.STRING, + number=3, ) geo_match_type: value_rule_geo_location_match_type.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType = proto.Field( proto.ENUM, @@ -148,32 +153,45 @@ class ValueRuleAudienceCondition(proto.Message): """ user_lists: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) user_interests: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) action: ValueRuleAction = proto.Field( - proto.MESSAGE, number=3, message=ValueRuleAction, + proto.MESSAGE, + number=3, + message=ValueRuleAction, ) geo_location_condition: ValueRuleGeoLocationCondition = proto.Field( - proto.MESSAGE, number=4, message=ValueRuleGeoLocationCondition, + proto.MESSAGE, + number=4, + message=ValueRuleGeoLocationCondition, ) device_condition: ValueRuleDeviceCondition = proto.Field( - proto.MESSAGE, number=5, message=ValueRuleDeviceCondition, + proto.MESSAGE, + number=5, + message=ValueRuleDeviceCondition, ) audience_condition: ValueRuleAudienceCondition = proto.Field( - proto.MESSAGE, number=6, message=ValueRuleAudienceCondition, + proto.MESSAGE, + number=6, + message=ValueRuleAudienceCondition, ) owner_customer: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) status: conversion_value_rule_status.ConversionValueRuleStatusEnum.ConversionValueRuleStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/conversion_value_rule_set.py b/google/ads/googleads/v14/resources/types/conversion_value_rule_set.py index 653eeabf6..6c0650f8e 100644 --- a/google/ads/googleads/v14/resources/types/conversion_value_rule_set.py +++ b/google/ads/googleads/v14/resources/types/conversion_value_rule_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ConversionValueRuleSet",}, + manifest={ + "ConversionValueRuleSet", + }, ) @@ -80,13 +82,16 @@ class ConversionValueRuleSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) conversion_value_rules: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=3, + proto.STRING, + number=3, ) dimensions: MutableSequence[ value_rule_set_dimension.ValueRuleSetDimensionEnum.ValueRuleSetDimension @@ -96,7 +101,8 @@ class ConversionValueRuleSet(proto.Message): enum=value_rule_set_dimension.ValueRuleSetDimensionEnum.ValueRuleSetDimension, ) owner_customer: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) attachment_type: value_rule_set_attachment_type.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType = proto.Field( proto.ENUM, @@ -104,7 +110,8 @@ class ConversionValueRuleSet(proto.Message): enum=value_rule_set_attachment_type.ValueRuleSetAttachmentTypeEnum.ValueRuleSetAttachmentType, ) campaign: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) status: conversion_value_rule_set_status.ConversionValueRuleSetStatusEnum.ConversionValueRuleSetStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/currency_constant.py b/google/ads/googleads/v14/resources/types/currency_constant.py index 691afe52a..d6b2398b9 100644 --- a/google/ads/googleads/v14/resources/types/currency_constant.py +++ b/google/ads/googleads/v14/resources/types/currency_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CurrencyConstant",}, + manifest={ + "CurrencyConstant", + }, ) @@ -60,19 +62,28 @@ class CurrencyConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) code: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) symbol: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) billable_unit_micros: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/custom_audience.py b/google/ads/googleads/v14/resources/types/custom_audience.py index e62eb72eb..b5b7da2d9 100644 --- a/google/ads/googleads/v14/resources/types/custom_audience.py +++ b/google/ads/googleads/v14/resources/types/custom_audience.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomAudience", "CustomAudienceMember",}, + manifest={ + "CustomAudience", + "CustomAudienceMember", + }, ) @@ -65,10 +68,12 @@ class CustomAudience(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) status: custom_audience_status.CustomAudienceStatusEnum.CustomAudienceStatus = proto.Field( proto.ENUM, @@ -76,18 +81,24 @@ class CustomAudience(proto.Message): enum=custom_audience_status.CustomAudienceStatusEnum.CustomAudienceStatus, ) name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) - type_: custom_audience_type.CustomAudienceTypeEnum.CustomAudienceType = proto.Field( - proto.ENUM, - number=5, - enum=custom_audience_type.CustomAudienceTypeEnum.CustomAudienceType, + type_: custom_audience_type.CustomAudienceTypeEnum.CustomAudienceType = ( + proto.Field( + proto.ENUM, + number=5, + enum=custom_audience_type.CustomAudienceTypeEnum.CustomAudienceType, + ) ) description: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) members: MutableSequence["CustomAudienceMember"] = proto.RepeatedField( - proto.MESSAGE, number=7, message="CustomAudienceMember", + proto.MESSAGE, + number=7, + message="CustomAudienceMember", ) @@ -139,16 +150,24 @@ class CustomAudienceMember(proto.Message): enum=custom_audience_member_type.CustomAudienceMemberTypeEnum.CustomAudienceMemberType, ) keyword: str = proto.Field( - proto.STRING, number=2, oneof="value", + proto.STRING, + number=2, + oneof="value", ) url: str = proto.Field( - proto.STRING, number=3, oneof="value", + proto.STRING, + number=3, + oneof="value", ) place_category: int = proto.Field( - proto.INT64, number=4, oneof="value", + proto.INT64, + number=4, + oneof="value", ) app: str = proto.Field( - proto.STRING, number=5, oneof="value", + proto.STRING, + number=5, + oneof="value", ) diff --git a/google/ads/googleads/v14/resources/types/custom_conversion_goal.py b/google/ads/googleads/v14/resources/types/custom_conversion_goal.py index f4c1cd34d..88fb27969 100644 --- a/google/ads/googleads/v14/resources/types/custom_conversion_goal.py +++ b/google/ads/googleads/v14/resources/types/custom_conversion_goal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomConversionGoal",}, + manifest={ + "CustomConversionGoal", + }, ) @@ -52,16 +54,20 @@ class CustomConversionGoal(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) conversion_actions: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) status: custom_conversion_goal_status.CustomConversionGoalStatusEnum.CustomConversionGoalStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/custom_interest.py b/google/ads/googleads/v14/resources/types/custom_interest.py index d9e5d873e..d3404a33c 100644 --- a/google/ads/googleads/v14/resources/types/custom_interest.py +++ b/google/ads/googleads/v14/resources/types/custom_interest.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomInterest", "CustomInterestMember",}, + manifest={ + "CustomInterest", + "CustomInterestMember", + }, ) @@ -72,10 +75,13 @@ class CustomInterest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) status: custom_interest_status.CustomInterestStatusEnum.CustomInterestStatus = proto.Field( proto.ENUM, @@ -83,18 +89,26 @@ class CustomInterest(proto.Message): enum=custom_interest_status.CustomInterestStatusEnum.CustomInterestStatus, ) name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) - type_: custom_interest_type.CustomInterestTypeEnum.CustomInterestType = proto.Field( - proto.ENUM, - number=5, - enum=custom_interest_type.CustomInterestTypeEnum.CustomInterestType, + type_: custom_interest_type.CustomInterestTypeEnum.CustomInterestType = ( + proto.Field( + proto.ENUM, + number=5, + enum=custom_interest_type.CustomInterestTypeEnum.CustomInterestType, + ) ) description: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) members: MutableSequence["CustomInterestMember"] = proto.RepeatedField( - proto.MESSAGE, number=7, message="CustomInterestMember", + proto.MESSAGE, + number=7, + message="CustomInterestMember", ) @@ -122,7 +136,9 @@ class CustomInterestMember(proto.Message): enum=custom_interest_member_type.CustomInterestMemberTypeEnum.CustomInterestMemberType, ) parameter: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/customer.py b/google/ads/googleads/v14/resources/types/customer.py index 640719458..7ea33debe 100644 --- a/google/ads/googleads/v14/resources/types/customer.py +++ b/google/ads/googleads/v14/resources/types/customer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -72,6 +72,7 @@ "OfflineConversionUploadSummary", "OfflineConversionUploadAlert", "OfflineConversionUploadError", + "CustomerAgreementSetting", }, ) @@ -205,6 +206,9 @@ class Customer(proto.Message): offline_conversion_client_summaries (MutableSequence[google.ads.googleads.v14.resources.types.OfflineConversionClientSummary]): Output only. Offline conversion upload diagnostics. + customer_agreement_setting (google.ads.googleads.v14.resources.types.CustomerAgreementSetting): + Output only. Customer Agreement Setting for a + customer. """ resource_name: str = proto.Field( @@ -324,6 +328,11 @@ class Customer(proto.Message): number=43, message="OfflineConversionClientSummary", ) + customer_agreement_setting: "CustomerAgreementSetting" = proto.Field( + proto.MESSAGE, + number=44, + message="CustomerAgreementSetting", + ) class CallReportingSetting(proto.Message): @@ -468,7 +477,6 @@ class OfflineConversionClientSummary(proto.Message): r"""Offline conversion upload diagnostic summarized by client. This proto contains general information, breakdown by date/job and alerts for offline conversion upload results. - Next tag: 10 Attributes: client (google.ads.googleads.v14.enums.types.OfflineEventUploadClientEnum.OfflineEventUploadClient): @@ -550,8 +558,6 @@ class OfflineConversionClientSummary(proto.Message): class OfflineConversionUploadSummary(proto.Message): r"""Historical upload summary, grouped by upload date or job. - Next tag: 5 - This message has `oneof`_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other @@ -596,8 +602,6 @@ class OfflineConversionUploadSummary(proto.Message): class OfflineConversionUploadAlert(proto.Message): r"""Alert for offline conversion client summary. - Next tag: 3 - Attributes: error (google.ads.googleads.v14.resources.types.OfflineConversionUploadError): Output only. Error for offline conversion @@ -619,8 +623,6 @@ class OfflineConversionUploadAlert(proto.Message): class OfflineConversionUploadError(proto.Message): r"""Possible errors for offline conversion client summary. - Next tag: 11 - This message has `oneof`_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other @@ -736,4 +738,18 @@ class OfflineConversionUploadError(proto.Message): ) +class CustomerAgreementSetting(proto.Message): + r"""Customer Agreement Setting for a customer. + Attributes: + accepted_lead_form_terms (bool): + Output only. Whether the customer has + accepted lead form term of service. + """ + + accepted_lead_form_terms: bool = proto.Field( + proto.BOOL, + number=1, + ) + + __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/resources/types/customer_asset.py b/google/ads/googleads/v14/resources/types/customer_asset.py index b3699f85f..90f6a327a 100644 --- a/google/ads/googleads/v14/resources/types/customer_asset.py +++ b/google/ads/googleads/v14/resources/types/customer_asset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerAsset",}, + manifest={ + "CustomerAsset", + }, ) @@ -75,18 +77,24 @@ class CustomerAsset(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) - field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( - proto.ENUM, - number=3, - enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + field_type: asset_field_type.AssetFieldTypeEnum.AssetFieldType = ( + proto.Field( + proto.ENUM, + number=3, + enum=asset_field_type.AssetFieldTypeEnum.AssetFieldType, + ) ) source: asset_source.AssetSourceEnum.AssetSource = proto.Field( - proto.ENUM, number=5, enum=asset_source.AssetSourceEnum.AssetSource, + proto.ENUM, + number=5, + enum=asset_source.AssetSourceEnum.AssetSource, ) status: asset_link_status.AssetLinkStatusEnum.AssetLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/customer_asset_set.py b/google/ads/googleads/v14/resources/types/customer_asset_set.py index df6e0a9d9..6a32b461e 100644 --- a/google/ads/googleads/v14/resources/types/customer_asset_set.py +++ b/google/ads/googleads/v14/resources/types/customer_asset_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerAssetSet",}, + manifest={ + "CustomerAssetSet", + }, ) @@ -51,13 +53,16 @@ class CustomerAssetSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_set: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) customer: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) status: asset_set_link_status.AssetSetLinkStatusEnum.AssetSetLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/customer_client.py b/google/ads/googleads/v14/resources/types/customer_client.py index 91253d934..5ebcfcf7e 100644 --- a/google/ads/googleads/v14/resources/types/customer_client.py +++ b/google/ads/googleads/v14/resources/types/customer_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerClient",}, + manifest={ + "CustomerClient", + }, ) @@ -103,37 +105,57 @@ class CustomerClient(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) client_customer: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) hidden: bool = proto.Field( - proto.BOOL, number=13, optional=True, + proto.BOOL, + number=13, + optional=True, ) level: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) time_zone: str = proto.Field( - proto.STRING, number=15, optional=True, + proto.STRING, + number=15, + optional=True, ) test_account: bool = proto.Field( - proto.BOOL, number=16, optional=True, + proto.BOOL, + number=16, + optional=True, ) manager: bool = proto.Field( - proto.BOOL, number=17, optional=True, + proto.BOOL, + number=17, + optional=True, ) descriptive_name: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) currency_code: str = proto.Field( - proto.STRING, number=19, optional=True, + proto.STRING, + number=19, + optional=True, ) id: int = proto.Field( - proto.INT64, number=20, optional=True, + proto.INT64, + number=20, + optional=True, ) applied_labels: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=21, + proto.STRING, + number=21, ) status: customer_status.CustomerStatusEnum.CustomerStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/customer_client_link.py b/google/ads/googleads/v14/resources/types/customer_client_link.py index 769e8292f..cc35a2467 100644 --- a/google/ads/googleads/v14/resources/types/customer_client_link.py +++ b/google/ads/googleads/v14/resources/types/customer_client_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerClientLink",}, + manifest={ + "CustomerClientLink", + }, ) @@ -59,21 +61,30 @@ class CustomerClientLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) client_customer: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) manager_link_id: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) - status: manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus = proto.Field( - proto.ENUM, - number=5, - enum=manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus, + status: manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus = ( + proto.Field( + proto.ENUM, + number=5, + enum=manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus, + ) ) hidden: bool = proto.Field( - proto.BOOL, number=9, optional=True, + proto.BOOL, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/customer_conversion_goal.py b/google/ads/googleads/v14/resources/types/customer_conversion_goal.py index 7e309b1f4..953d09629 100644 --- a/google/ads/googleads/v14/resources/types/customer_conversion_goal.py +++ b/google/ads/googleads/v14/resources/types/customer_conversion_goal.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerConversionGoal",}, + manifest={ + "CustomerConversionGoal", + }, ) @@ -55,20 +57,24 @@ class CustomerConversionGoal(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) category: conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory = proto.Field( proto.ENUM, number=2, enum=conversion_action_category.ConversionActionCategoryEnum.ConversionActionCategory, ) - origin: conversion_origin.ConversionOriginEnum.ConversionOrigin = proto.Field( - proto.ENUM, - number=3, - enum=conversion_origin.ConversionOriginEnum.ConversionOrigin, + origin: conversion_origin.ConversionOriginEnum.ConversionOrigin = ( + proto.Field( + proto.ENUM, + number=3, + enum=conversion_origin.ConversionOriginEnum.ConversionOrigin, + ) ) biddable: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) diff --git a/google/ads/googleads/v14/resources/types/customer_customizer.py b/google/ads/googleads/v14/resources/types/customer_customizer.py index a87cc297f..1b270db12 100644 --- a/google/ads/googleads/v14/resources/types/customer_customizer.py +++ b/google/ads/googleads/v14/resources/types/customer_customizer.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerCustomizer",}, + manifest={ + "CustomerCustomizer", + }, ) @@ -53,10 +55,12 @@ class CustomerCustomizer(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customizer_attribute: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) status: customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus = proto.Field( proto.ENUM, @@ -64,7 +68,9 @@ class CustomerCustomizer(proto.Message): enum=customizer_value_status.CustomizerValueStatusEnum.CustomizerValueStatus, ) value: customizer_value.CustomizerValue = proto.Field( - proto.MESSAGE, number=4, message=customizer_value.CustomizerValue, + proto.MESSAGE, + number=4, + message=customizer_value.CustomizerValue, ) diff --git a/google/ads/googleads/v14/resources/types/customer_extension_setting.py b/google/ads/googleads/v14/resources/types/customer_extension_setting.py index 16d8c105b..4bd4c978a 100644 --- a/google/ads/googleads/v14/resources/types/customer_extension_setting.py +++ b/google/ads/googleads/v14/resources/types/customer_extension_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerExtensionSetting",}, + manifest={ + "CustomerExtensionSetting", + }, ) @@ -56,15 +58,19 @@ class CustomerExtensionSetting(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = proto.Field( - proto.ENUM, - number=2, - enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = ( + proto.Field( + proto.ENUM, + number=2, + enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + ) ) extension_feed_items: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=5, + proto.STRING, + number=5, ) device: extension_setting_device.ExtensionSettingDeviceEnum.ExtensionSettingDevice = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/customer_feed.py b/google/ads/googleads/v14/resources/types/customer_feed.py index a6c9ef3b1..d31b04fd2 100644 --- a/google/ads/googleads/v14/resources/types/customer_feed.py +++ b/google/ads/googleads/v14/resources/types/customer_feed.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerFeed",}, + manifest={ + "CustomerFeed", + }, ) @@ -62,10 +64,13 @@ class CustomerFeed(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) placeholder_types: MutableSequence[ placeholder_type.PlaceholderTypeEnum.PlaceholderType diff --git a/google/ads/googleads/v14/resources/types/customer_label.py b/google/ads/googleads/v14/resources/types/customer_label.py index c617c2fdf..1c0d7bb78 100644 --- a/google/ads/googleads/v14/resources/types/customer_label.py +++ b/google/ads/googleads/v14/resources/types/customer_label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerLabel",}, + manifest={ + "CustomerLabel", + }, ) @@ -56,13 +58,18 @@ class CustomerLabel(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) label: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/customer_manager_link.py b/google/ads/googleads/v14/resources/types/customer_manager_link.py index e684e9a63..9448e8d3a 100644 --- a/google/ads/googleads/v14/resources/types/customer_manager_link.py +++ b/google/ads/googleads/v14/resources/types/customer_manager_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerManagerLink",}, + manifest={ + "CustomerManagerLink", + }, ) @@ -53,18 +55,25 @@ class CustomerManagerLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) manager_customer: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) manager_link_id: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) - status: manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus = proto.Field( - proto.ENUM, - number=5, - enum=manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus, + status: manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus = ( + proto.Field( + proto.ENUM, + number=5, + enum=manager_link_status.ManagerLinkStatusEnum.ManagerLinkStatus, + ) ) diff --git a/google/ads/googleads/v14/resources/types/customer_negative_criterion.py b/google/ads/googleads/v14/resources/types/customer_negative_criterion.py index 2751f60e3..3cb5432da 100644 --- a/google/ads/googleads/v14/resources/types/customer_negative_criterion.py +++ b/google/ads/googleads/v14/resources/types/customer_negative_criterion.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerNegativeCriterion",}, + manifest={ + "CustomerNegativeCriterion", + }, ) @@ -82,10 +84,13 @@ class CustomerNegativeCriterion(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) type_: criterion_type.CriterionTypeEnum.CriterionType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/customer_search_term_insight.py b/google/ads/googleads/v14/resources/types/customer_search_term_insight.py new file mode 100644 index 000000000..99c80d313 --- /dev/null +++ b/google/ads/googleads/v14/resources/types/customer_search_term_insight.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 +# +# http://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. +# +from __future__ import annotations + + +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.ads.googleads.v14.resources", + marshal="google.ads.googleads.v14", + manifest={ + "CustomerSearchTermInsight", + }, +) + + +class CustomerSearchTermInsight(proto.Message): + r"""A Customer search term view. + Historical data is available starting March 2023. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + resource_name (str): + Output only. The resource name of the customer level search + term insight. Customer level search term insight resource + names have the form: + + ``customers/{customer_id}/customerSearchTermInsights/{category_id}`` + category_label (str): + Output only. The label for the search + category. An empty string denotes the catch-all + category for search terms that didn't fit into + another category. + + This field is a member of `oneof`_ ``_category_label``. + id (int): + Output only. The ID of the insight. + + This field is a member of `oneof`_ ``_id``. + """ + + resource_name: str = proto.Field( + proto.STRING, + number=1, + ) + category_label: str = proto.Field( + proto.STRING, + number=2, + optional=True, + ) + id: int = proto.Field( + proto.INT64, + number=3, + optional=True, + ) + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/resources/types/customer_sk_ad_network_conversion_value_schema.py b/google/ads/googleads/v14/resources/types/customer_sk_ad_network_conversion_value_schema.py index 60a3215eb..32328fe41 100644 --- a/google/ads/googleads/v14/resources/types/customer_sk_ad_network_conversion_value_schema.py +++ b/google/ads/googleads/v14/resources/types/customer_sk_ad_network_conversion_value_schema.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerSkAdNetworkConversionValueSchema",}, + manifest={ + "CustomerSkAdNetworkConversionValueSchema", + }, ) @@ -68,7 +70,8 @@ class FineGrainedConversionValueMappings(proto.Message): """ fine_grained_conversion_value: int = proto.Field( - proto.INT32, number=1, + proto.INT32, + number=1, ) conversion_value_mapping: "CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.ConversionValueMapping" = proto.Field( proto.MESSAGE, @@ -96,10 +99,12 @@ class ConversionValueMapping(proto.Message): """ min_time_post_install_hours: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) max_time_post_install_hours: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) mapped_events: MutableSequence[ "CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event" @@ -161,10 +166,12 @@ class RevenueRange(proto.Message): """ min_event_revenue: float = proto.Field( - proto.DOUBLE, number=3, + proto.DOUBLE, + number=3, ) max_event_revenue: float = proto.Field( - proto.DOUBLE, number=4, + proto.DOUBLE, + number=4, ) class EventOccurrenceRange(proto.Message): @@ -181,17 +188,21 @@ class EventOccurrenceRange(proto.Message): """ min_event_count: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) max_event_count: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) mapped_event_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) currency_code: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) event_revenue_range: "CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.RevenueRange" = proto.Field( proto.MESSAGE, @@ -200,7 +211,9 @@ class EventOccurrenceRange(proto.Message): message="CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.RevenueRange", ) event_revenue_value: float = proto.Field( - proto.DOUBLE, number=4, oneof="revenue_rate", + proto.DOUBLE, + number=4, + oneof="revenue_rate", ) event_occurrence_range: "CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.EventOccurrenceRange" = proto.Field( proto.MESSAGE, @@ -209,14 +222,18 @@ class EventOccurrenceRange(proto.Message): message="CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.Event.EventOccurrenceRange", ) event_counter: int = proto.Field( - proto.INT64, number=6, oneof="event_rate", + proto.INT64, + number=6, + oneof="event_rate", ) app_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) measurement_window_hours: int = proto.Field( - proto.INT32, number=2, + proto.INT32, + number=2, ) fine_grained_conversion_value_mappings: MutableSequence[ "CustomerSkAdNetworkConversionValueSchema.SkAdNetworkConversionValueSchema.FineGrainedConversionValueMappings" @@ -227,10 +244,13 @@ class EventOccurrenceRange(proto.Message): ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) schema: SkAdNetworkConversionValueSchema = proto.Field( - proto.MESSAGE, number=2, message=SkAdNetworkConversionValueSchema, + proto.MESSAGE, + number=2, + message=SkAdNetworkConversionValueSchema, ) diff --git a/google/ads/googleads/v14/resources/types/customer_user_access.py b/google/ads/googleads/v14/resources/types/customer_user_access.py index 2b28f2e47..e27e4dbb6 100644 --- a/google/ads/googleads/v14/resources/types/customer_user_access.py +++ b/google/ads/googleads/v14/resources/types/customer_user_access.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerUserAccess",}, + manifest={ + "CustomerUserAccess", + }, ) @@ -65,22 +67,32 @@ class CustomerUserAccess(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) user_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) email_address: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) access_role: gage_access_role.AccessRoleEnum.AccessRole = proto.Field( - proto.ENUM, number=4, enum=gage_access_role.AccessRoleEnum.AccessRole, + proto.ENUM, + number=4, + enum=gage_access_role.AccessRoleEnum.AccessRole, ) access_creation_date_time: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) inviter_user_email_address: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/customer_user_access_invitation.py b/google/ads/googleads/v14/resources/types/customer_user_access_invitation.py index e8af55ae0..f8904c80b 100644 --- a/google/ads/googleads/v14/resources/types/customer_user_access_invitation.py +++ b/google/ads/googleads/v14/resources/types/customer_user_access_invitation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomerUserAccessInvitation",}, + manifest={ + "CustomerUserAccessInvitation", + }, ) @@ -58,19 +60,25 @@ class CustomerUserAccessInvitation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) invitation_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) access_role: gage_access_role.AccessRoleEnum.AccessRole = proto.Field( - proto.ENUM, number=3, enum=gage_access_role.AccessRoleEnum.AccessRole, + proto.ENUM, + number=3, + enum=gage_access_role.AccessRoleEnum.AccessRole, ) email_address: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) creation_date_time: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) invitation_status: access_invitation_status.AccessInvitationStatusEnum.AccessInvitationStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/customizer_attribute.py b/google/ads/googleads/v14/resources/types/customizer_attribute.py index 19564239f..f9426f550 100644 --- a/google/ads/googleads/v14/resources/types/customizer_attribute.py +++ b/google/ads/googleads/v14/resources/types/customizer_attribute.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"CustomizerAttribute",}, + manifest={ + "CustomizerAttribute", + }, ) @@ -60,13 +62,16 @@ class CustomizerAttribute(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) type_: customizer_attribute_type.CustomizerAttributeTypeEnum.CustomizerAttributeType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/detail_placement_view.py b/google/ads/googleads/v14/resources/types/detail_placement_view.py index 41a883c73..624f620c1 100644 --- a/google/ads/googleads/v14/resources/types/detail_placement_view.py +++ b/google/ads/googleads/v14/resources/types/detail_placement_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"DetailPlacementView",}, + manifest={ + "DetailPlacementView", + }, ) @@ -73,24 +75,35 @@ class DetailPlacementView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) placement: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) display_name: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) group_placement_target_url: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) target_url: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) - placement_type: gage_placement_type.PlacementTypeEnum.PlacementType = proto.Field( - proto.ENUM, - number=6, - enum=gage_placement_type.PlacementTypeEnum.PlacementType, + placement_type: gage_placement_type.PlacementTypeEnum.PlacementType = ( + proto.Field( + proto.ENUM, + number=6, + enum=gage_placement_type.PlacementTypeEnum.PlacementType, + ) ) diff --git a/google/ads/googleads/v14/resources/types/detailed_demographic.py b/google/ads/googleads/v14/resources/types/detailed_demographic.py index 77167bb8e..97d14adc8 100644 --- a/google/ads/googleads/v14/resources/types/detailed_demographic.py +++ b/google/ads/googleads/v14/resources/types/detailed_demographic.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,13 +27,16 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"DetailedDemographic",}, + manifest={ + "DetailedDemographic", + }, ) class DetailedDemographic(proto.Message): r"""A detailed demographic: a particular interest-based vertical - to be targeted to reach users based on long-term life facts. + to be targeted + to reach users based on long-term life facts. Attributes: resource_name (str): @@ -59,19 +62,24 @@ class DetailedDemographic(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) parent: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) launched_to_all: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) availabilities: MutableSequence[ criterion_category_availability.CriterionCategoryAvailability diff --git a/google/ads/googleads/v14/resources/types/display_keyword_view.py b/google/ads/googleads/v14/resources/types/display_keyword_view.py index 343afddbd..c8df077f1 100644 --- a/google/ads/googleads/v14/resources/types/display_keyword_view.py +++ b/google/ads/googleads/v14/resources/types/display_keyword_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"DisplayKeywordView",}, + manifest={ + "DisplayKeywordView", + }, ) @@ -37,7 +39,8 @@ class DisplayKeywordView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/distance_view.py b/google/ads/googleads/v14/resources/types/distance_view.py index dfad20e9a..ad54dc8b3 100644 --- a/google/ads/googleads/v14/resources/types/distance_view.py +++ b/google/ads/googleads/v14/resources/types/distance_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"DistanceView",}, + manifest={ + "DistanceView", + }, ) @@ -56,15 +58,20 @@ class DistanceView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - distance_bucket: gage_distance_bucket.DistanceBucketEnum.DistanceBucket = proto.Field( - proto.ENUM, - number=2, - enum=gage_distance_bucket.DistanceBucketEnum.DistanceBucket, + distance_bucket: gage_distance_bucket.DistanceBucketEnum.DistanceBucket = ( + proto.Field( + proto.ENUM, + number=2, + enum=gage_distance_bucket.DistanceBucketEnum.DistanceBucket, + ) ) metric_system: bool = proto.Field( - proto.BOOL, number=4, optional=True, + proto.BOOL, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/domain_category.py b/google/ads/googleads/v14/resources/types/domain_category.py index 72204f7d5..40f1e474a 100644 --- a/google/ads/googleads/v14/resources/types/domain_category.py +++ b/google/ads/googleads/v14/resources/types/domain_category.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"DomainCategory",}, + manifest={ + "DomainCategory", + }, ) @@ -95,31 +97,48 @@ class DomainCategory(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) category: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) language_code: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) domain: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) coverage_fraction: float = proto.Field( - proto.DOUBLE, number=14, optional=True, + proto.DOUBLE, + number=14, + optional=True, ) category_rank: int = proto.Field( - proto.INT64, number=15, optional=True, + proto.INT64, + number=15, + optional=True, ) has_children: bool = proto.Field( - proto.BOOL, number=16, optional=True, + proto.BOOL, + number=16, + optional=True, ) recommended_cpc_bid_micros: int = proto.Field( - proto.INT64, number=17, optional=True, + proto.INT64, + number=17, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/dynamic_search_ads_search_term_view.py b/google/ads/googleads/v14/resources/types/dynamic_search_ads_search_term_view.py index 29e752a17..db4817f6c 100644 --- a/google/ads/googleads/v14/resources/types/dynamic_search_ads_search_term_view.py +++ b/google/ads/googleads/v14/resources/types/dynamic_search_ads_search_term_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"DynamicSearchAdsSearchTermView",}, + manifest={ + "DynamicSearchAdsSearchTermView", + }, ) @@ -81,28 +83,43 @@ class DynamicSearchAdsSearchTermView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) search_term: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) headline: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) landing_page: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) page_url: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) has_negative_keyword: bool = proto.Field( - proto.BOOL, number=13, optional=True, + proto.BOOL, + number=13, + optional=True, ) has_matching_keyword: bool = proto.Field( - proto.BOOL, number=14, optional=True, + proto.BOOL, + number=14, + optional=True, ) has_negative_url: bool = proto.Field( - proto.BOOL, number=15, optional=True, + proto.BOOL, + number=15, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/expanded_landing_page_view.py b/google/ads/googleads/v14/resources/types/expanded_landing_page_view.py index 166d40f99..412065361 100644 --- a/google/ads/googleads/v14/resources/types/expanded_landing_page_view.py +++ b/google/ads/googleads/v14/resources/types/expanded_landing_page_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ExpandedLandingPageView",}, + manifest={ + "ExpandedLandingPageView", + }, ) @@ -47,10 +49,13 @@ class ExpandedLandingPageView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) expanded_final_url: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/experiment.py b/google/ads/googleads/v14/resources/types/experiment.py index 96ec04a4b..8baed1265 100644 --- a/google/ads/googleads/v14/resources/types/experiment.py +++ b/google/ads/googleads/v14/resources/types/experiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Experiment",}, + manifest={ + "Experiment", + }, ) @@ -109,41 +111,57 @@ class Experiment(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) experiment_id: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) name: str = proto.Field( - proto.STRING, number=10, + proto.STRING, + number=10, ) description: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) suffix: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) type_: experiment_type.ExperimentTypeEnum.ExperimentType = proto.Field( proto.ENUM, number=13, enum=experiment_type.ExperimentTypeEnum.ExperimentType, ) - status: experiment_status.ExperimentStatusEnum.ExperimentStatus = proto.Field( - proto.ENUM, - number=14, - enum=experiment_status.ExperimentStatusEnum.ExperimentStatus, + status: experiment_status.ExperimentStatusEnum.ExperimentStatus = ( + proto.Field( + proto.ENUM, + number=14, + enum=experiment_status.ExperimentStatusEnum.ExperimentStatus, + ) ) start_date: str = proto.Field( - proto.STRING, number=15, optional=True, + proto.STRING, + number=15, + optional=True, ) end_date: str = proto.Field( - proto.STRING, number=16, optional=True, + proto.STRING, + number=16, + optional=True, ) goals: MutableSequence[metric_goal.MetricGoal] = proto.RepeatedField( - proto.MESSAGE, number=17, message=metric_goal.MetricGoal, + proto.MESSAGE, + number=17, + message=metric_goal.MetricGoal, ) long_running_operation: str = proto.Field( - proto.STRING, number=18, optional=True, + proto.STRING, + number=18, + optional=True, ) promote_status: async_action_status.AsyncActionStatusEnum.AsyncActionStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/experiment_arm.py b/google/ads/googleads/v14/resources/types/experiment_arm.py index b97584751..3e0f9f6c2 100644 --- a/google/ads/googleads/v14/resources/types/experiment_arm.py +++ b/google/ads/googleads/v14/resources/types/experiment_arm.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ExperimentArm",}, + manifest={ + "ExperimentArm", + }, ) @@ -63,25 +65,32 @@ class ExperimentArm(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) experiment: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) control: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) traffic_split: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) campaigns: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=6, + proto.STRING, + number=6, ) in_design_campaigns: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=7, + proto.STRING, + number=7, ) diff --git a/google/ads/googleads/v14/resources/types/extension_feed_item.py b/google/ads/googleads/v14/resources/types/extension_feed_item.py index df347c85e..46c6e1826 100644 --- a/google/ads/googleads/v14/resources/types/extension_feed_item.py +++ b/google/ads/googleads/v14/resources/types/extension_feed_item.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ExtensionFeedItem",}, + manifest={ + "ExtensionFeedItem", + }, ) @@ -156,26 +158,37 @@ class ExtensionFeedItem(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=25, optional=True, + proto.INT64, + number=25, + optional=True, ) - extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = proto.Field( - proto.ENUM, - number=13, - enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + extension_type: gage_extension_type.ExtensionTypeEnum.ExtensionType = ( + proto.Field( + proto.ENUM, + number=13, + enum=gage_extension_type.ExtensionTypeEnum.ExtensionType, + ) ) start_date_time: str = proto.Field( - proto.STRING, number=26, optional=True, + proto.STRING, + number=26, + optional=True, ) end_date_time: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) ad_schedules: MutableSequence[ criteria.AdScheduleInfo ] = proto.RepeatedField( - proto.MESSAGE, number=16, message=criteria.AdScheduleInfo, + proto.MESSAGE, + number=16, + message=criteria.AdScheduleInfo, ) device: feed_item_target_device.FeedItemTargetDeviceEnum.FeedItemTargetDevice = proto.Field( proto.ENUM, @@ -183,10 +196,14 @@ class ExtensionFeedItem(proto.Message): enum=feed_item_target_device.FeedItemTargetDeviceEnum.FeedItemTargetDevice, ) targeted_geo_target_constant: str = proto.Field( - proto.STRING, number=30, optional=True, + proto.STRING, + number=30, + optional=True, ) targeted_keyword: criteria.KeywordInfo = proto.Field( - proto.MESSAGE, number=22, message=criteria.KeywordInfo, + proto.MESSAGE, + number=22, + message=criteria.KeywordInfo, ) status: feed_item_status.FeedItemStatusEnum.FeedItemStatus = proto.Field( proto.ENUM, @@ -199,11 +216,13 @@ class ExtensionFeedItem(proto.Message): oneof="extension", message=extensions.SitelinkFeedItem, ) - structured_snippet_feed_item: extensions.StructuredSnippetFeedItem = proto.Field( - proto.MESSAGE, - number=3, - oneof="extension", - message=extensions.StructuredSnippetFeedItem, + structured_snippet_feed_item: extensions.StructuredSnippetFeedItem = ( + proto.Field( + proto.MESSAGE, + number=3, + oneof="extension", + message=extensions.StructuredSnippetFeedItem, + ) ) app_feed_item: extensions.AppFeedItem = proto.Field( proto.MESSAGE, @@ -247,11 +266,13 @@ class ExtensionFeedItem(proto.Message): oneof="extension", message=extensions.LocationFeedItem, ) - affiliate_location_feed_item: extensions.AffiliateLocationFeedItem = proto.Field( - proto.MESSAGE, - number=15, - oneof="extension", - message=extensions.AffiliateLocationFeedItem, + affiliate_location_feed_item: extensions.AffiliateLocationFeedItem = ( + proto.Field( + proto.MESSAGE, + number=15, + oneof="extension", + message=extensions.AffiliateLocationFeedItem, + ) ) hotel_callout_feed_item: extensions.HotelCalloutFeedItem = proto.Field( proto.MESSAGE, @@ -266,10 +287,14 @@ class ExtensionFeedItem(proto.Message): message=extensions.ImageFeedItem, ) targeted_campaign: str = proto.Field( - proto.STRING, number=28, oneof="serving_resource_targeting", + proto.STRING, + number=28, + oneof="serving_resource_targeting", ) targeted_ad_group: str = proto.Field( - proto.STRING, number=29, oneof="serving_resource_targeting", + proto.STRING, + number=29, + oneof="serving_resource_targeting", ) diff --git a/google/ads/googleads/v14/resources/types/feed.py b/google/ads/googleads/v14/resources/types/feed.py index cc07344b3..414310c5b 100644 --- a/google/ads/googleads/v14/resources/types/feed.py +++ b/google/ads/googleads/v14/resources/types/feed.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,11 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Feed", "FeedAttribute", "FeedAttributeOperation",}, + manifest={ + "Feed", + "FeedAttribute", + "FeedAttributeOperation", + }, ) @@ -152,13 +156,19 @@ class OAuthInfo(proto.Message): """ http_method: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) http_request_url: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) http_authorization_header: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) oauth_info: "Feed.PlacesLocationFeedData.OAuthInfo" = proto.Field( @@ -167,19 +177,26 @@ class OAuthInfo(proto.Message): message="Feed.PlacesLocationFeedData.OAuthInfo", ) email_address: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) business_account_id: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) business_name_filter: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) category_filters: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=11, + proto.STRING, + number=11, ) label_filters: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=12, + proto.STRING, + number=12, ) class AffiliateLocationFeedData(proto.Message): @@ -196,7 +213,8 @@ class AffiliateLocationFeedData(proto.Message): """ chain_ids: MutableSequence[int] = proto.RepeatedField( - proto.INT64, number=3, + proto.INT64, + number=3, ) relationship_type: affiliate_location_feed_relationship_type.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType = proto.Field( proto.ENUM, @@ -205,27 +223,40 @@ class AffiliateLocationFeedData(proto.Message): ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) name: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) attributes: MutableSequence["FeedAttribute"] = proto.RepeatedField( - proto.MESSAGE, number=4, message="FeedAttribute", + proto.MESSAGE, + number=4, + message="FeedAttribute", ) attribute_operations: MutableSequence[ "FeedAttributeOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=9, message="FeedAttributeOperation", + proto.MESSAGE, + number=9, + message="FeedAttributeOperation", ) origin: feed_origin.FeedOriginEnum.FeedOrigin = proto.Field( - proto.ENUM, number=5, enum=feed_origin.FeedOriginEnum.FeedOrigin, + proto.ENUM, + number=5, + enum=feed_origin.FeedOriginEnum.FeedOrigin, ) status: feed_status.FeedStatusEnum.FeedStatus = proto.Field( - proto.ENUM, number=8, enum=feed_status.FeedStatusEnum.FeedStatus, + proto.ENUM, + number=8, + enum=feed_status.FeedStatusEnum.FeedStatus, ) places_location_feed_data: PlacesLocationFeedData = proto.Field( proto.MESSAGE, @@ -272,18 +303,26 @@ class FeedAttribute(proto.Message): """ id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) name: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) - type_: feed_attribute_type.FeedAttributeTypeEnum.FeedAttributeType = proto.Field( - proto.ENUM, - number=3, - enum=feed_attribute_type.FeedAttributeTypeEnum.FeedAttributeType, + type_: feed_attribute_type.FeedAttributeTypeEnum.FeedAttributeType = ( + proto.Field( + proto.ENUM, + number=3, + enum=feed_attribute_type.FeedAttributeTypeEnum.FeedAttributeType, + ) ) is_part_of_key: bool = proto.Field( - proto.BOOL, number=7, optional=True, + proto.BOOL, + number=7, + optional=True, ) @@ -307,10 +346,14 @@ class Operator(proto.Enum): ADD = 2 operator: Operator = proto.Field( - proto.ENUM, number=1, enum=Operator, + proto.ENUM, + number=1, + enum=Operator, ) value: "FeedAttribute" = proto.Field( - proto.MESSAGE, number=2, message="FeedAttribute", + proto.MESSAGE, + number=2, + message="FeedAttribute", ) diff --git a/google/ads/googleads/v14/resources/types/feed_item.py b/google/ads/googleads/v14/resources/types/feed_item.py index dc91fa3e1..2a68ca01e 100644 --- a/google/ads/googleads/v14/resources/types/feed_item.py +++ b/google/ads/googleads/v14/resources/types/feed_item.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -113,24 +113,35 @@ class FeedItem(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) id: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) start_date_time: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) end_date_time: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) attribute_values: MutableSequence[ "FeedItemAttributeValue" ] = proto.RepeatedField( - proto.MESSAGE, number=6, message="FeedItemAttributeValue", + proto.MESSAGE, + number=6, + message="FeedItemAttributeValue", ) geo_targeting_restriction: gage_geo_targeting_restriction.GeoTargetingRestrictionEnum.GeoTargetingRestriction = proto.Field( proto.ENUM, @@ -140,7 +151,9 @@ class FeedItem(proto.Message): url_custom_parameters: MutableSequence[ custom_parameter.CustomParameter ] = proto.RepeatedField( - proto.MESSAGE, number=8, message=custom_parameter.CustomParameter, + proto.MESSAGE, + number=8, + message=custom_parameter.CustomParameter, ) status: feed_item_status.FeedItemStatusEnum.FeedItemStatus = proto.Field( proto.ENUM, @@ -150,7 +163,9 @@ class FeedItem(proto.Message): policy_infos: MutableSequence[ "FeedItemPlaceholderPolicyInfo" ] = proto.RepeatedField( - proto.MESSAGE, number=10, message="FeedItemPlaceholderPolicyInfo", + proto.MESSAGE, + number=10, + message="FeedItemPlaceholderPolicyInfo", ) @@ -213,34 +228,50 @@ class FeedItemAttributeValue(proto.Message): """ feed_attribute_id: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) integer_value: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) boolean_value: bool = proto.Field( - proto.BOOL, number=13, optional=True, + proto.BOOL, + number=13, + optional=True, ) string_value: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) double_value: float = proto.Field( - proto.DOUBLE, number=15, optional=True, + proto.DOUBLE, + number=15, + optional=True, ) price_value: feed_common.Money = proto.Field( - proto.MESSAGE, number=6, message=feed_common.Money, + proto.MESSAGE, + number=6, + message=feed_common.Money, ) integer_values: MutableSequence[int] = proto.RepeatedField( - proto.INT64, number=16, + proto.INT64, + number=16, ) boolean_values: MutableSequence[bool] = proto.RepeatedField( - proto.BOOL, number=17, + proto.BOOL, + number=17, ) string_values: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=18, + proto.STRING, + number=18, ) double_values: MutableSequence[float] = proto.RepeatedField( - proto.DOUBLE, number=19, + proto.DOUBLE, + number=19, ) @@ -288,7 +319,9 @@ class FeedItemPlaceholderPolicyInfo(proto.Message): enum=placeholder_type.PlaceholderTypeEnum.PlaceholderType, ) feed_mapping_resource_name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) review_status: policy_review_status.PolicyReviewStatusEnum.PolicyReviewStatus = proto.Field( proto.ENUM, @@ -303,7 +336,9 @@ class FeedItemPlaceholderPolicyInfo(proto.Message): policy_topic_entries: MutableSequence[ policy.PolicyTopicEntry ] = proto.RepeatedField( - proto.MESSAGE, number=5, message=policy.PolicyTopicEntry, + proto.MESSAGE, + number=5, + message=policy.PolicyTopicEntry, ) validation_status: feed_item_validation_status.FeedItemValidationStatusEnum.FeedItemValidationStatus = proto.Field( proto.ENUM, @@ -313,7 +348,9 @@ class FeedItemPlaceholderPolicyInfo(proto.Message): validation_errors: MutableSequence[ "FeedItemValidationError" ] = proto.RepeatedField( - proto.MESSAGE, number=7, message="FeedItemValidationError", + proto.MESSAGE, + number=7, + message="FeedItemValidationError", ) quality_approval_status: feed_item_quality_approval_status.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus = proto.Field( proto.ENUM, @@ -369,13 +406,18 @@ class FeedItemValidationError(proto.Message): enum=feed_item_validation_error.FeedItemValidationErrorEnum.FeedItemValidationError, ) description: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) feed_attribute_ids: MutableSequence[int] = proto.RepeatedField( - proto.INT64, number=7, + proto.INT64, + number=7, ) extra_info: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/feed_item_set.py b/google/ads/googleads/v14/resources/types/feed_item_set.py index 4ef2413fb..23ec03e0d 100644 --- a/google/ads/googleads/v14/resources/types/feed_item_set.py +++ b/google/ads/googleads/v14/resources/types/feed_item_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"FeedItemSet",}, + manifest={ + "FeedItemSet", + }, ) @@ -76,21 +78,27 @@ class FeedItemSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) feed_item_set_id: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) display_name: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) - status: feed_item_set_status.FeedItemSetStatusEnum.FeedItemSetStatus = proto.Field( - proto.ENUM, - number=8, - enum=feed_item_set_status.FeedItemSetStatusEnum.FeedItemSetStatus, + status: feed_item_set_status.FeedItemSetStatusEnum.FeedItemSetStatus = ( + proto.Field( + proto.ENUM, + number=8, + enum=feed_item_set_status.FeedItemSetStatusEnum.FeedItemSetStatus, + ) ) dynamic_location_set_filter: feed_item_set_filter_type_infos.DynamicLocationSetFilter = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/feed_item_set_link.py b/google/ads/googleads/v14/resources/types/feed_item_set_link.py index 4c99eb602..3824e507b 100644 --- a/google/ads/googleads/v14/resources/types/feed_item_set_link.py +++ b/google/ads/googleads/v14/resources/types/feed_item_set_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"FeedItemSetLink",}, + manifest={ + "FeedItemSetLink", + }, ) @@ -40,13 +42,16 @@ class FeedItemSetLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed_item: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) feed_item_set: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) diff --git a/google/ads/googleads/v14/resources/types/feed_item_target.py b/google/ads/googleads/v14/resources/types/feed_item_target.py index 8c1facb79..353849992 100644 --- a/google/ads/googleads/v14/resources/types/feed_item_target.py +++ b/google/ads/googleads/v14/resources/types/feed_item_target.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"FeedItemTarget",}, + manifest={ + "FeedItemTarget", + }, ) @@ -91,10 +93,13 @@ class FeedItemTarget(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed_item: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) feed_item_target_type: gage_feed_item_target_type.FeedItemTargetTypeEnum.FeedItemTargetType = proto.Field( proto.ENUM, @@ -102,7 +107,9 @@ class FeedItemTarget(proto.Message): enum=gage_feed_item_target_type.FeedItemTargetTypeEnum.FeedItemTargetType, ) feed_item_target_id: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, ) status: feed_item_target_status.FeedItemTargetStatusEnum.FeedItemTargetStatus = proto.Field( proto.ENUM, @@ -110,16 +117,25 @@ class FeedItemTarget(proto.Message): enum=feed_item_target_status.FeedItemTargetStatusEnum.FeedItemTargetStatus, ) campaign: str = proto.Field( - proto.STRING, number=14, oneof="target", + proto.STRING, + number=14, + oneof="target", ) ad_group: str = proto.Field( - proto.STRING, number=15, oneof="target", + proto.STRING, + number=15, + oneof="target", ) keyword: criteria.KeywordInfo = proto.Field( - proto.MESSAGE, number=7, oneof="target", message=criteria.KeywordInfo, + proto.MESSAGE, + number=7, + oneof="target", + message=criteria.KeywordInfo, ) geo_target_constant: str = proto.Field( - proto.STRING, number=16, oneof="target", + proto.STRING, + number=16, + oneof="target", ) device: feed_item_target_device.FeedItemTargetDeviceEnum.FeedItemTargetDevice = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/feed_mapping.py b/google/ads/googleads/v14/resources/types/feed_mapping.py index aebd40a07..43e66db4a 100644 --- a/google/ads/googleads/v14/resources/types/feed_mapping.py +++ b/google/ads/googleads/v14/resources/types/feed_mapping.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"FeedMapping", "AttributeFieldMapping",}, + manifest={ + "FeedMapping", + "AttributeFieldMapping", + }, ) @@ -107,20 +110,27 @@ class FeedMapping(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) attribute_field_mappings: MutableSequence[ "AttributeFieldMapping" ] = proto.RepeatedField( - proto.MESSAGE, number=5, message="AttributeFieldMapping", + proto.MESSAGE, + number=5, + message="AttributeFieldMapping", ) - status: feed_mapping_status.FeedMappingStatusEnum.FeedMappingStatus = proto.Field( - proto.ENUM, - number=6, - enum=feed_mapping_status.FeedMappingStatusEnum.FeedMappingStatus, + status: feed_mapping_status.FeedMappingStatusEnum.FeedMappingStatus = ( + proto.Field( + proto.ENUM, + number=6, + enum=feed_mapping_status.FeedMappingStatusEnum.FeedMappingStatus, + ) ) placeholder_type: gage_placeholder_type.PlaceholderTypeEnum.PlaceholderType = proto.Field( proto.ENUM, @@ -255,10 +265,14 @@ class AttributeFieldMapping(proto.Message): """ feed_attribute_id: int = proto.Field( - proto.INT64, number=24, optional=True, + proto.INT64, + number=24, + optional=True, ) field_id: int = proto.Field( - proto.INT64, number=25, optional=True, + proto.INT64, + number=25, + optional=True, ) sitelink_field: sitelink_placeholder_field.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/feed_placeholder_view.py b/google/ads/googleads/v14/resources/types/feed_placeholder_view.py index 0f82d3de2..a5aedcc0e 100644 --- a/google/ads/googleads/v14/resources/types/feed_placeholder_view.py +++ b/google/ads/googleads/v14/resources/types/feed_placeholder_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"FeedPlaceholderView",}, + manifest={ + "FeedPlaceholderView", + }, ) @@ -44,7 +46,8 @@ class FeedPlaceholderView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) placeholder_type: gage_placeholder_type.PlaceholderTypeEnum.PlaceholderType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/gender_view.py b/google/ads/googleads/v14/resources/types/gender_view.py index 04a473ff5..fd3461df3 100644 --- a/google/ads/googleads/v14/resources/types/gender_view.py +++ b/google/ads/googleads/v14/resources/types/gender_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"GenderView",}, + manifest={ + "GenderView", + }, ) @@ -37,7 +39,8 @@ class GenderView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/geo_target_constant.py b/google/ads/googleads/v14/resources/types/geo_target_constant.py index d2389e8a1..0053222d4 100644 --- a/google/ads/googleads/v14/resources/types/geo_target_constant.py +++ b/google/ads/googleads/v14/resources/types/geo_target_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"GeoTargetConstant",}, + manifest={ + "GeoTargetConstant", + }, ) @@ -75,19 +77,28 @@ class GeoTargetConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) target_type: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) status: geo_target_constant_status.GeoTargetConstantStatusEnum.GeoTargetConstantStatus = proto.Field( proto.ENUM, @@ -95,10 +106,14 @@ class GeoTargetConstant(proto.Message): enum=geo_target_constant_status.GeoTargetConstantStatusEnum.GeoTargetConstantStatus, ) canonical_name: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) parent_geo_target: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/geographic_view.py b/google/ads/googleads/v14/resources/types/geographic_view.py index dab1e7a03..27b250e2e 100644 --- a/google/ads/googleads/v14/resources/types/geographic_view.py +++ b/google/ads/googleads/v14/resources/types/geographic_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"GeographicView",}, + manifest={ + "GeographicView", + }, ) @@ -54,15 +56,20 @@ class GeographicView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - location_type: geo_targeting_type.GeoTargetingTypeEnum.GeoTargetingType = proto.Field( - proto.ENUM, - number=3, - enum=geo_targeting_type.GeoTargetingTypeEnum.GeoTargetingType, + location_type: geo_targeting_type.GeoTargetingTypeEnum.GeoTargetingType = ( + proto.Field( + proto.ENUM, + number=3, + enum=geo_targeting_type.GeoTargetingTypeEnum.GeoTargetingType, + ) ) country_criterion_id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/google_ads_field.py b/google/ads/googleads/v14/resources/types/google_ads_field.py index 970f70bfa..4b6069782 100644 --- a/google/ads/googleads/v14/resources/types/google_ads_field.py +++ b/google/ads/googleads/v14/resources/types/google_ads_field.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"GoogleAdsField",}, + manifest={ + "GoogleAdsField", + }, ) @@ -108,10 +110,13 @@ class GoogleAdsField(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) name: str = proto.Field( - proto.STRING, number=21, optional=True, + proto.STRING, + number=21, + optional=True, ) category: google_ads_field_category.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory = proto.Field( proto.ENUM, @@ -119,28 +124,39 @@ class GoogleAdsField(proto.Message): enum=google_ads_field_category.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory, ) selectable: bool = proto.Field( - proto.BOOL, number=22, optional=True, + proto.BOOL, + number=22, + optional=True, ) filterable: bool = proto.Field( - proto.BOOL, number=23, optional=True, + proto.BOOL, + number=23, + optional=True, ) sortable: bool = proto.Field( - proto.BOOL, number=24, optional=True, + proto.BOOL, + number=24, + optional=True, ) selectable_with: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=25, + proto.STRING, + number=25, ) attribute_resources: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=26, + proto.STRING, + number=26, ) metrics: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=27, + proto.STRING, + number=27, ) segments: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=28, + proto.STRING, + number=28, ) enum_values: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=29, + proto.STRING, + number=29, ) data_type: google_ads_field_data_type.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType = proto.Field( proto.ENUM, @@ -148,10 +164,14 @@ class GoogleAdsField(proto.Message): enum=google_ads_field_data_type.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType, ) type_url: str = proto.Field( - proto.STRING, number=30, optional=True, + proto.STRING, + number=30, + optional=True, ) is_repeated: bool = proto.Field( - proto.BOOL, number=31, optional=True, + proto.BOOL, + number=31, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/group_placement_view.py b/google/ads/googleads/v14/resources/types/group_placement_view.py index 7486236c6..d857501dd 100644 --- a/google/ads/googleads/v14/resources/types/group_placement_view.py +++ b/google/ads/googleads/v14/resources/types/group_placement_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"GroupPlacementView",}, + manifest={ + "GroupPlacementView", + }, ) @@ -64,21 +66,30 @@ class GroupPlacementView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) placement: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) display_name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) target_url: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) - placement_type: gage_placement_type.PlacementTypeEnum.PlacementType = proto.Field( - proto.ENUM, - number=5, - enum=gage_placement_type.PlacementTypeEnum.PlacementType, + placement_type: gage_placement_type.PlacementTypeEnum.PlacementType = ( + proto.Field( + proto.ENUM, + number=5, + enum=gage_placement_type.PlacementTypeEnum.PlacementType, + ) ) diff --git a/google/ads/googleads/v14/resources/types/hotel_group_view.py b/google/ads/googleads/v14/resources/types/hotel_group_view.py index f341456a8..50715cd95 100644 --- a/google/ads/googleads/v14/resources/types/hotel_group_view.py +++ b/google/ads/googleads/v14/resources/types/hotel_group_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"HotelGroupView",}, + manifest={ + "HotelGroupView", + }, ) @@ -37,7 +39,8 @@ class HotelGroupView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/hotel_performance_view.py b/google/ads/googleads/v14/resources/types/hotel_performance_view.py index cc33908f1..6306d1de7 100644 --- a/google/ads/googleads/v14/resources/types/hotel_performance_view.py +++ b/google/ads/googleads/v14/resources/types/hotel_performance_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"HotelPerformanceView",}, + manifest={ + "HotelPerformanceView", + }, ) @@ -37,7 +39,8 @@ class HotelPerformanceView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/hotel_reconciliation.py b/google/ads/googleads/v14/resources/types/hotel_reconciliation.py index e18977ce9..0b2051473 100644 --- a/google/ads/googleads/v14/resources/types/hotel_reconciliation.py +++ b/google/ads/googleads/v14/resources/types/hotel_reconciliation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"HotelReconciliation",}, + manifest={ + "HotelReconciliation", + }, ) @@ -101,34 +103,44 @@ class HotelReconciliation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) commission_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) order_id: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) campaign: str = proto.Field( - proto.STRING, number=11, + proto.STRING, + number=11, ) hotel_center_id: int = proto.Field( - proto.INT64, number=4, + proto.INT64, + number=4, ) hotel_id: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) check_in_date: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) check_out_date: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) reconciled_value_micros: int = proto.Field( - proto.INT64, number=8, + proto.INT64, + number=8, ) billed: bool = proto.Field( - proto.BOOL, number=9, + proto.BOOL, + number=9, ) status: hotel_reconciliation_status.HotelReconciliationStatusEnum.HotelReconciliationStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/income_range_view.py b/google/ads/googleads/v14/resources/types/income_range_view.py index 9a490b679..2fef939f7 100644 --- a/google/ads/googleads/v14/resources/types/income_range_view.py +++ b/google/ads/googleads/v14/resources/types/income_range_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"IncomeRangeView",}, + manifest={ + "IncomeRangeView", + }, ) @@ -37,7 +39,8 @@ class IncomeRangeView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/invoice.py b/google/ads/googleads/v14/resources/types/invoice.py index ee6843772..c9b6c0ed2 100644 --- a/google/ads/googleads/v14/resources/types/invoice.py +++ b/google/ads/googleads/v14/resources/types/invoice.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Invoice",}, + manifest={ + "Invoice", + }, ) @@ -115,13 +117,25 @@ class Invoice(proto.Message): regulatory_costs_total_amount_micros (int): Output only. The total amount of invoice level regulatory costs, in micros. + export_charge_subtotal_amount_micros (int): + Output only. The pretax subtotal amount of + invoice level export charges, in micros. + + This field is a member of `oneof`_ ``_export_charge_subtotal_amount_micros``. + export_charge_tax_amount_micros (int): + Output only. The sum of taxes on the invoice + level export charges, in micros. + + This field is a member of `oneof`_ ``_export_charge_tax_amount_micros``. + export_charge_total_amount_micros (int): + Output only. The total amount of invoice + level export charges, in micros. + + This field is a member of `oneof`_ ``_export_charge_total_amount_micros``. subtotal_amount_micros (int): - Output only. The pretax subtotal amount, in micros. This - equals the sum of the AccountBudgetSummary subtotal amounts, - Invoice.adjustments_subtotal_amount_micros, and - Invoice.regulatory_costs_subtotal_amount_micros. Starting - with v6, the Invoice.regulatory_costs_subtotal_amount_micros - is no longer included. + Output only. The pretax subtotal amount, in micros. This is + equal to the sum of the AccountBudgetSummary subtotal + amounts and Invoice.adjustments_subtotal_amount_micros. This field is a member of `oneof`_ ``_subtotal_amount_micros``. tax_amount_micros (int): @@ -133,11 +147,11 @@ class Invoice(proto.Message): This field is a member of `oneof`_ ``_tax_amount_micros``. total_amount_micros (int): Output only. The total amount, in micros. This equals the - sum of Invoice.subtotal_amount_micros and - Invoice.tax_amount_micros. Starting with v6, - Invoice.regulatory_costs_subtotal_amount_micros is also - added as it is no longer already included in - Invoice.tax_amount_micros. + sum of Invoice.subtotal_amount_micros, + Invoice.tax_amount_micros, + Invoice.regulatory_costs_subtotal_amount_micros, and + Invoice.export_charge_subtotal_amount_micros (which is + separated into a separate line item starting with V14.1). This field is a member of `oneof`_ ``_total_amount_micros``. corrected_invoice (str): @@ -244,6 +258,20 @@ class AccountSummary(proto.Message): in micros. This field is a member of `oneof`_ ``_regulatory_costs_total_amount_micros``. + export_charge_subtotal_amount_micros (int): + Output only. Pretax export charge subtotal + amount, in micros. + + This field is a member of `oneof`_ ``_export_charge_subtotal_amount_micros``. + export_charge_tax_amount_micros (int): + Output only. Tax on export charge, in micros. + + This field is a member of `oneof`_ ``_export_charge_tax_amount_micros``. + export_charge_total_amount_micros (int): + Output only. Total export charge amount, in + micros. + + This field is a member of `oneof`_ ``_export_charge_total_amount_micros``. subtotal_amount_micros (int): Output only. Total pretax subtotal amount attributable to the account during the service @@ -265,52 +293,99 @@ class AccountSummary(proto.Message): """ customer: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) billing_correction_subtotal_amount_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) billing_correction_tax_amount_micros: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) billing_correction_total_amount_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) coupon_adjustment_subtotal_amount_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) coupon_adjustment_tax_amount_micros: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) coupon_adjustment_total_amount_micros: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) excess_credit_adjustment_subtotal_amount_micros: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) excess_credit_adjustment_tax_amount_micros: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) excess_credit_adjustment_total_amount_micros: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) regulatory_costs_subtotal_amount_micros: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) regulatory_costs_tax_amount_micros: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) regulatory_costs_total_amount_micros: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, + ) + export_charge_subtotal_amount_micros: int = proto.Field( + proto.INT64, + number=17, + optional=True, + ) + export_charge_tax_amount_micros: int = proto.Field( + proto.INT64, + number=18, + optional=True, + ) + export_charge_total_amount_micros: int = proto.Field( + proto.INT64, + number=19, + optional=True, ) subtotal_amount_micros: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) tax_amount_micros: int = proto.Field( - proto.INT64, number=15, optional=True, + proto.INT64, + number=15, + optional=True, ) total_amount_micros: int = proto.Field( - proto.INT64, number=16, optional=True, + proto.INT64, + number=16, + optional=True, ) class AccountBudgetSummary(proto.Message): @@ -411,48 +486,76 @@ class AccountBudgetSummary(proto.Message): """ customer: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) customer_descriptive_name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) account_budget: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) account_budget_name: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) purchase_order_number: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) subtotal_amount_micros: int = proto.Field( - proto.INT64, number=15, optional=True, + proto.INT64, + number=15, + optional=True, ) tax_amount_micros: int = proto.Field( - proto.INT64, number=16, optional=True, + proto.INT64, + number=16, + optional=True, ) total_amount_micros: int = proto.Field( - proto.INT64, number=17, optional=True, + proto.INT64, + number=17, + optional=True, ) billable_activity_date_range: dates.DateRange = proto.Field( - proto.MESSAGE, number=9, message=dates.DateRange, + proto.MESSAGE, + number=9, + message=dates.DateRange, ) served_amount_micros: int = proto.Field( - proto.INT64, number=18, optional=True, + proto.INT64, + number=18, + optional=True, ) billed_amount_micros: int = proto.Field( - proto.INT64, number=19, optional=True, + proto.INT64, + number=19, + optional=True, ) overdelivery_amount_micros: int = proto.Field( - proto.INT64, number=20, optional=True, + proto.INT64, + number=20, + optional=True, ) invalid_activity_amount_micros: int = proto.Field( - proto.INT64, number=21, optional=True, + proto.INT64, + number=21, + optional=True, ) invalid_activity_summaries: MutableSequence[ "Invoice.InvalidActivitySummary" ] = proto.RepeatedField( - proto.MESSAGE, number=22, message="Invoice.InvalidActivitySummary", + proto.MESSAGE, + number=22, + message="Invoice.InvalidActivitySummary", ) class InvalidActivitySummary(proto.Message): @@ -495,101 +598,168 @@ class InvalidActivitySummary(proto.Message): This field is a member of `oneof`_ ``_amount_micros``. """ - original_month_of_service: month_of_year.MonthOfYearEnum.MonthOfYear = proto.Field( - proto.ENUM, - number=1, - optional=True, - enum=month_of_year.MonthOfYearEnum.MonthOfYear, + original_month_of_service: month_of_year.MonthOfYearEnum.MonthOfYear = ( + proto.Field( + proto.ENUM, + number=1, + optional=True, + enum=month_of_year.MonthOfYearEnum.MonthOfYear, + ) ) original_year_of_service: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) original_invoice_id: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) original_account_budget_name: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) original_purchase_order_number: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) amount_micros: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: str = proto.Field( - proto.STRING, number=25, optional=True, + proto.STRING, + number=25, + optional=True, ) type_: invoice_type.InvoiceTypeEnum.InvoiceType = proto.Field( - proto.ENUM, number=3, enum=invoice_type.InvoiceTypeEnum.InvoiceType, + proto.ENUM, + number=3, + enum=invoice_type.InvoiceTypeEnum.InvoiceType, ) billing_setup: str = proto.Field( - proto.STRING, number=26, optional=True, + proto.STRING, + number=26, + optional=True, ) payments_account_id: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) payments_profile_id: str = proto.Field( - proto.STRING, number=28, optional=True, + proto.STRING, + number=28, + optional=True, ) issue_date: str = proto.Field( - proto.STRING, number=29, optional=True, + proto.STRING, + number=29, + optional=True, ) due_date: str = proto.Field( - proto.STRING, number=30, optional=True, + proto.STRING, + number=30, + optional=True, ) service_date_range: dates.DateRange = proto.Field( - proto.MESSAGE, number=9, message=dates.DateRange, + proto.MESSAGE, + number=9, + message=dates.DateRange, ) currency_code: str = proto.Field( - proto.STRING, number=31, optional=True, + proto.STRING, + number=31, + optional=True, ) adjustments_subtotal_amount_micros: int = proto.Field( - proto.INT64, number=19, + proto.INT64, + number=19, ) adjustments_tax_amount_micros: int = proto.Field( - proto.INT64, number=20, + proto.INT64, + number=20, ) adjustments_total_amount_micros: int = proto.Field( - proto.INT64, number=21, + proto.INT64, + number=21, ) regulatory_costs_subtotal_amount_micros: int = proto.Field( - proto.INT64, number=22, + proto.INT64, + number=22, ) regulatory_costs_tax_amount_micros: int = proto.Field( - proto.INT64, number=23, + proto.INT64, + number=23, ) regulatory_costs_total_amount_micros: int = proto.Field( - proto.INT64, number=24, + proto.INT64, + number=24, + ) + export_charge_subtotal_amount_micros: int = proto.Field( + proto.INT64, + number=40, + optional=True, + ) + export_charge_tax_amount_micros: int = proto.Field( + proto.INT64, + number=41, + optional=True, + ) + export_charge_total_amount_micros: int = proto.Field( + proto.INT64, + number=42, + optional=True, ) subtotal_amount_micros: int = proto.Field( - proto.INT64, number=33, optional=True, + proto.INT64, + number=33, + optional=True, ) tax_amount_micros: int = proto.Field( - proto.INT64, number=34, optional=True, + proto.INT64, + number=34, + optional=True, ) total_amount_micros: int = proto.Field( - proto.INT64, number=35, optional=True, + proto.INT64, + number=35, + optional=True, ) corrected_invoice: str = proto.Field( - proto.STRING, number=36, optional=True, + proto.STRING, + number=36, + optional=True, ) replaced_invoices: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=37, + proto.STRING, + number=37, ) pdf_url: str = proto.Field( - proto.STRING, number=38, optional=True, + proto.STRING, + number=38, + optional=True, ) account_budget_summaries: MutableSequence[ AccountBudgetSummary ] = proto.RepeatedField( - proto.MESSAGE, number=18, message=AccountBudgetSummary, + proto.MESSAGE, + number=18, + message=AccountBudgetSummary, ) account_summaries: MutableSequence[AccountSummary] = proto.RepeatedField( - proto.MESSAGE, number=39, message=AccountSummary, + proto.MESSAGE, + number=39, + message=AccountSummary, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_plan.py b/google/ads/googleads/v14/resources/types/keyword_plan.py index 41dec0170..0700b64ca 100644 --- a/google/ads/googleads/v14/resources/types/keyword_plan.py +++ b/google/ads/googleads/v14/resources/types/keyword_plan.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordPlan", "KeywordPlanForecastPeriod",}, + manifest={ + "KeywordPlan", + "KeywordPlanForecastPeriod", + }, ) @@ -58,16 +61,23 @@ class KeywordPlan(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) name: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) forecast_period: "KeywordPlanForecastPeriod" = proto.Field( - proto.MESSAGE, number=4, message="KeywordPlanForecastPeriod", + proto.MESSAGE, + number=4, + message="KeywordPlanForecastPeriod", ) @@ -104,7 +114,10 @@ class KeywordPlanForecastPeriod(proto.Message): enum=keyword_plan_forecast_interval.KeywordPlanForecastIntervalEnum.KeywordPlanForecastInterval, ) date_range: dates.DateRange = proto.Field( - proto.MESSAGE, number=2, oneof="interval", message=dates.DateRange, + proto.MESSAGE, + number=2, + oneof="interval", + message=dates.DateRange, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_plan_ad_group.py b/google/ads/googleads/v14/resources/types/keyword_plan_ad_group.py index 8b1a7fca2..427aa2cf3 100644 --- a/google/ads/googleads/v14/resources/types/keyword_plan_ad_group.py +++ b/google/ads/googleads/v14/resources/types/keyword_plan_ad_group.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanAdGroup",}, + manifest={ + "KeywordPlanAdGroup", + }, ) @@ -64,19 +66,28 @@ class KeywordPlanAdGroup(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) keyword_plan_campaign: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) id: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) name: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_plan_ad_group_keyword.py b/google/ads/googleads/v14/resources/types/keyword_plan_ad_group_keyword.py index 60c9349a7..8d271c893 100644 --- a/google/ads/googleads/v14/resources/types/keyword_plan_ad_group_keyword.py +++ b/google/ads/googleads/v14/resources/types/keyword_plan_ad_group_keyword.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanAdGroupKeyword",}, + manifest={ + "KeywordPlanAdGroupKeyword", + }, ) @@ -73,27 +75,40 @@ class KeywordPlanAdGroupKeyword(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) keyword_plan_ad_group: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) id: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) text: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) - match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = proto.Field( - proto.ENUM, - number=5, - enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = ( + proto.Field( + proto.ENUM, + number=5, + enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + ) ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) negative: bool = proto.Field( - proto.BOOL, number=12, optional=True, + proto.BOOL, + number=12, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_plan_campaign.py b/google/ads/googleads/v14/resources/types/keyword_plan_campaign.py index d43bd29e0..7c482711a 100644 --- a/google/ads/googleads/v14/resources/types/keyword_plan_campaign.py +++ b/google/ads/googleads/v14/resources/types/keyword_plan_campaign.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,7 +27,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanCampaign", "KeywordPlanGeoTarget",}, + manifest={ + "KeywordPlanCampaign", + "KeywordPlanGeoTarget", + }, ) @@ -79,19 +82,27 @@ class KeywordPlanCampaign(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) keyword_plan: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) id: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) name: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) language_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=12, + proto.STRING, + number=12, ) keyword_plan_network: gage_keyword_plan_network.KeywordPlanNetworkEnum.KeywordPlanNetwork = proto.Field( proto.ENUM, @@ -99,10 +110,14 @@ class KeywordPlanCampaign(proto.Message): enum=gage_keyword_plan_network.KeywordPlanNetworkEnum.KeywordPlanNetwork, ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, ) geo_targets: MutableSequence["KeywordPlanGeoTarget"] = proto.RepeatedField( - proto.MESSAGE, number=8, message="KeywordPlanGeoTarget", + proto.MESSAGE, + number=8, + message="KeywordPlanGeoTarget", ) @@ -119,7 +134,9 @@ class KeywordPlanGeoTarget(proto.Message): """ geo_target_constant: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_plan_campaign_keyword.py b/google/ads/googleads/v14/resources/types/keyword_plan_campaign_keyword.py index c57fd26e7..14c3968aa 100644 --- a/google/ads/googleads/v14/resources/types/keyword_plan_campaign_keyword.py +++ b/google/ads/googleads/v14/resources/types/keyword_plan_campaign_keyword.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordPlanCampaignKeyword",}, + manifest={ + "KeywordPlanCampaignKeyword", + }, ) @@ -66,24 +68,35 @@ class KeywordPlanCampaignKeyword(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) keyword_plan_campaign: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) id: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) text: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) - match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = proto.Field( - proto.ENUM, - number=5, - enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = ( + proto.Field( + proto.ENUM, + number=5, + enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + ) ) negative: bool = proto.Field( - proto.BOOL, number=11, optional=True, + proto.BOOL, + number=11, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_theme_constant.py b/google/ads/googleads/v14/resources/types/keyword_theme_constant.py index 42864e40c..891672df3 100644 --- a/google/ads/googleads/v14/resources/types/keyword_theme_constant.py +++ b/google/ads/googleads/v14/resources/types/keyword_theme_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordThemeConstant",}, + manifest={ + "KeywordThemeConstant", + }, ) @@ -59,16 +61,23 @@ class KeywordThemeConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) country_code: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) language_code: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) display_name: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/keyword_view.py b/google/ads/googleads/v14/resources/types/keyword_view.py index 9673a8ab4..20d877459 100644 --- a/google/ads/googleads/v14/resources/types/keyword_view.py +++ b/google/ads/googleads/v14/resources/types/keyword_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"KeywordView",}, + manifest={ + "KeywordView", + }, ) @@ -37,7 +39,8 @@ class KeywordView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/label.py b/google/ads/googleads/v14/resources/types/label.py index 73078d0cd..cce5175e8 100644 --- a/google/ads/googleads/v14/resources/types/label.py +++ b/google/ads/googleads/v14/resources/types/label.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Label",}, + manifest={ + "Label", + }, ) @@ -57,19 +59,28 @@ class Label(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) status: label_status.LabelStatusEnum.LabelStatus = proto.Field( - proto.ENUM, number=4, enum=label_status.LabelStatusEnum.LabelStatus, + proto.ENUM, + number=4, + enum=label_status.LabelStatusEnum.LabelStatus, ) text_label: gagc_text_label.TextLabel = proto.Field( - proto.MESSAGE, number=5, message=gagc_text_label.TextLabel, + proto.MESSAGE, + number=5, + message=gagc_text_label.TextLabel, ) diff --git a/google/ads/googleads/v14/resources/types/landing_page_view.py b/google/ads/googleads/v14/resources/types/landing_page_view.py index eb9f6e05d..7e33357d2 100644 --- a/google/ads/googleads/v14/resources/types/landing_page_view.py +++ b/google/ads/googleads/v14/resources/types/landing_page_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"LandingPageView",}, + manifest={ + "LandingPageView", + }, ) @@ -46,10 +48,13 @@ class LandingPageView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) unexpanded_final_url: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/language_constant.py b/google/ads/googleads/v14/resources/types/language_constant.py index a71952b86..6380629a7 100644 --- a/google/ads/googleads/v14/resources/types/language_constant.py +++ b/google/ads/googleads/v14/resources/types/language_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"LanguageConstant",}, + manifest={ + "LanguageConstant", + }, ) @@ -59,19 +61,28 @@ class LanguageConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) code: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) name: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) targetable: bool = proto.Field( - proto.BOOL, number=9, optional=True, + proto.BOOL, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/lead_form_submission_data.py b/google/ads/googleads/v14/resources/types/lead_form_submission_data.py index 0005afdf0..5355663cf 100644 --- a/google/ads/googleads/v14/resources/types/lead_form_submission_data.py +++ b/google/ads/googleads/v14/resources/types/lead_form_submission_data.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -72,38 +72,50 @@ class LeadFormSubmissionData(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) asset: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) campaign: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) lead_form_submission_fields: MutableSequence[ "LeadFormSubmissionField" ] = proto.RepeatedField( - proto.MESSAGE, number=5, message="LeadFormSubmissionField", + proto.MESSAGE, + number=5, + message="LeadFormSubmissionField", ) custom_lead_form_submission_fields: MutableSequence[ "CustomLeadFormSubmissionField" ] = proto.RepeatedField( - proto.MESSAGE, number=10, message="CustomLeadFormSubmissionField", + proto.MESSAGE, + number=10, + message="CustomLeadFormSubmissionField", ) ad_group: str = proto.Field( - proto.STRING, number=6, + proto.STRING, + number=6, ) ad_group_ad: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) gclid: str = proto.Field( - proto.STRING, number=8, + proto.STRING, + number=8, ) submission_date_time: str = proto.Field( - proto.STRING, number=9, + proto.STRING, + number=9, ) @@ -123,7 +135,8 @@ class LeadFormSubmissionField(proto.Message): enum=lead_form_field_user_input_type.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType, ) field_value: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -139,10 +152,12 @@ class CustomLeadFormSubmissionField(proto.Message): """ question_text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) field_value: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) diff --git a/google/ads/googleads/v14/resources/types/life_event.py b/google/ads/googleads/v14/resources/types/life_event.py index cb8d4b43c..a0befbb13 100644 --- a/google/ads/googleads/v14/resources/types/life_event.py +++ b/google/ads/googleads/v14/resources/types/life_event.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -27,14 +27,16 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"LifeEvent",}, + manifest={ + "LifeEvent", + }, ) class LifeEvent(proto.Message): r"""A life event: a particular interest-based vertical to be - targeted to reach users when they are in the midst of important - life milestones. + targeted to reach + users when they are in the midst of important life milestones. Attributes: resource_name (str): @@ -58,19 +60,24 @@ class LifeEvent(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) parent: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) launched_to_all: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) availabilities: MutableSequence[ criterion_category_availability.CriterionCategoryAvailability diff --git a/google/ads/googleads/v14/resources/types/location_view.py b/google/ads/googleads/v14/resources/types/location_view.py index ba79a1d17..7176da84e 100644 --- a/google/ads/googleads/v14/resources/types/location_view.py +++ b/google/ads/googleads/v14/resources/types/location_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"LocationView",}, + manifest={ + "LocationView", + }, ) @@ -39,7 +41,8 @@ class LocationView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/managed_placement_view.py b/google/ads/googleads/v14/resources/types/managed_placement_view.py index b894c4ef3..c42aea9f9 100644 --- a/google/ads/googleads/v14/resources/types/managed_placement_view.py +++ b/google/ads/googleads/v14/resources/types/managed_placement_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ManagedPlacementView",}, + manifest={ + "ManagedPlacementView", + }, ) @@ -37,7 +39,8 @@ class ManagedPlacementView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/media_file.py b/google/ads/googleads/v14/resources/types/media_file.py index df1ecb836..8312f9477 100644 --- a/google/ads/googleads/v14/resources/types/media_file.py +++ b/google/ads/googleads/v14/resources/types/media_file.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -95,37 +95,62 @@ class MediaFile(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) type_: media_type.MediaTypeEnum.MediaType = proto.Field( - proto.ENUM, number=5, enum=media_type.MediaTypeEnum.MediaType, + proto.ENUM, + number=5, + enum=media_type.MediaTypeEnum.MediaType, ) mime_type: gage_mime_type.MimeTypeEnum.MimeType = proto.Field( - proto.ENUM, number=6, enum=gage_mime_type.MimeTypeEnum.MimeType, + proto.ENUM, + number=6, + enum=gage_mime_type.MimeTypeEnum.MimeType, ) source_url: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) name: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) file_size: int = proto.Field( - proto.INT64, number=15, optional=True, + proto.INT64, + number=15, + optional=True, ) image: "MediaImage" = proto.Field( - proto.MESSAGE, number=3, oneof="mediatype", message="MediaImage", + proto.MESSAGE, + number=3, + oneof="mediatype", + message="MediaImage", ) media_bundle: "MediaBundle" = proto.Field( - proto.MESSAGE, number=4, oneof="mediatype", message="MediaBundle", + proto.MESSAGE, + number=4, + oneof="mediatype", + message="MediaBundle", ) audio: "MediaAudio" = proto.Field( - proto.MESSAGE, number=10, oneof="mediatype", message="MediaAudio", + proto.MESSAGE, + number=10, + oneof="mediatype", + message="MediaAudio", ) video: "MediaVideo" = proto.Field( - proto.MESSAGE, number=11, oneof="mediatype", message="MediaVideo", + proto.MESSAGE, + number=11, + oneof="mediatype", + message="MediaVideo", ) @@ -151,13 +176,19 @@ class MediaImage(proto.Message): """ data: bytes = proto.Field( - proto.BYTES, number=4, optional=True, + proto.BYTES, + number=4, + optional=True, ) full_size_image_url: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) preview_size_image_url: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) @@ -182,10 +213,14 @@ class MediaBundle(proto.Message): """ data: bytes = proto.Field( - proto.BYTES, number=3, optional=True, + proto.BYTES, + number=3, + optional=True, ) url: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -202,7 +237,9 @@ class MediaAudio(proto.Message): """ ad_duration_millis: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -241,16 +278,24 @@ class MediaVideo(proto.Message): """ ad_duration_millis: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) youtube_video_id: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) advertising_id_code: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) isci_code: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/merchant_center_link.py b/google/ads/googleads/v14/resources/types/merchant_center_link.py index 60f4ef468..a1e89a2c3 100644 --- a/google/ads/googleads/v14/resources/types/merchant_center_link.py +++ b/google/ads/googleads/v14/resources/types/merchant_center_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"MerchantCenterLink",}, + manifest={ + "MerchantCenterLink", + }, ) @@ -55,13 +57,18 @@ class MerchantCenterLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) merchant_center_account_name: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) status: merchant_center_link_status.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/mobile_app_category_constant.py b/google/ads/googleads/v14/resources/types/mobile_app_category_constant.py index 259f783ac..f193f978d 100644 --- a/google/ads/googleads/v14/resources/types/mobile_app_category_constant.py +++ b/google/ads/googleads/v14/resources/types/mobile_app_category_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"MobileAppCategoryConstant",}, + manifest={ + "MobileAppCategoryConstant", + }, ) @@ -49,13 +51,18 @@ class MobileAppCategoryConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT32, number=4, optional=True, + proto.INT32, + number=4, + optional=True, ) name: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/mobile_device_constant.py b/google/ads/googleads/v14/resources/types/mobile_device_constant.py index c471060bf..121789784 100644 --- a/google/ads/googleads/v14/resources/types/mobile_device_constant.py +++ b/google/ads/googleads/v14/resources/types/mobile_device_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"MobileDeviceConstant",}, + manifest={ + "MobileDeviceConstant", + }, ) @@ -63,24 +65,35 @@ class MobileDeviceConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) name: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) manufacturer_name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) operating_system_name: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) - type_: mobile_device_type.MobileDeviceTypeEnum.MobileDeviceType = proto.Field( - proto.ENUM, - number=6, - enum=mobile_device_type.MobileDeviceTypeEnum.MobileDeviceType, + type_: mobile_device_type.MobileDeviceTypeEnum.MobileDeviceType = ( + proto.Field( + proto.ENUM, + number=6, + enum=mobile_device_type.MobileDeviceTypeEnum.MobileDeviceType, + ) ) diff --git a/google/ads/googleads/v14/resources/types/offline_user_data_job.py b/google/ads/googleads/v14/resources/types/offline_user_data_job.py index 6fc04ddb9..b37ecf078 100644 --- a/google/ads/googleads/v14/resources/types/offline_user_data_job.py +++ b/google/ads/googleads/v14/resources/types/offline_user_data_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"OfflineUserDataJob", "OfflineUserDataJobMetadata",}, + manifest={ + "OfflineUserDataJob", + "OfflineUserDataJobMetadata", + }, ) @@ -87,13 +90,18 @@ class OfflineUserDataJob(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) external_id: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) type_: offline_user_data_job_type.OfflineUserDataJobTypeEnum.OfflineUserDataJobType = proto.Field( proto.ENUM, @@ -111,7 +119,9 @@ class OfflineUserDataJob(proto.Message): enum=offline_user_data_job_failure_reason.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason, ) operation_metadata: "OfflineUserDataJobMetadata" = proto.Field( - proto.MESSAGE, number=11, message="OfflineUserDataJobMetadata", + proto.MESSAGE, + number=11, + message="OfflineUserDataJobMetadata", ) customer_match_user_list_metadata: offline_user_data.CustomerMatchUserListMetadata = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/operating_system_version_constant.py b/google/ads/googleads/v14/resources/types/operating_system_version_constant.py index 7a21083f6..ed2ae11cc 100644 --- a/google/ads/googleads/v14/resources/types/operating_system_version_constant.py +++ b/google/ads/googleads/v14/resources/types/operating_system_version_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"OperatingSystemVersionConstant",}, + manifest={ + "OperatingSystemVersionConstant", + }, ) @@ -68,19 +70,28 @@ class OperatingSystemVersionConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) name: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) os_major_version: int = proto.Field( - proto.INT32, number=9, optional=True, + proto.INT32, + number=9, + optional=True, ) os_minor_version: int = proto.Field( - proto.INT32, number=10, optional=True, + proto.INT32, + number=10, + optional=True, ) operator_type: operating_system_version_operator_type.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/paid_organic_search_term_view.py b/google/ads/googleads/v14/resources/types/paid_organic_search_term_view.py index 18818167b..f7b242f4c 100644 --- a/google/ads/googleads/v14/resources/types/paid_organic_search_term_view.py +++ b/google/ads/googleads/v14/resources/types/paid_organic_search_term_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"PaidOrganicSearchTermView",}, + manifest={ + "PaidOrganicSearchTermView", + }, ) @@ -46,10 +48,13 @@ class PaidOrganicSearchTermView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) search_term: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/parental_status_view.py b/google/ads/googleads/v14/resources/types/parental_status_view.py index 1250a8f33..5a366e166 100644 --- a/google/ads/googleads/v14/resources/types/parental_status_view.py +++ b/google/ads/googleads/v14/resources/types/parental_status_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ParentalStatusView",}, + manifest={ + "ParentalStatusView", + }, ) @@ -37,7 +39,8 @@ class ParentalStatusView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/payments_account.py b/google/ads/googleads/v14/resources/types/payments_account.py index 7298b5858..7171943ad 100644 --- a/google/ads/googleads/v14/resources/types/payments_account.py +++ b/google/ads/googleads/v14/resources/types/payments_account.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"PaymentsAccount",}, + manifest={ + "PaymentsAccount", + }, ) @@ -75,25 +77,38 @@ class PaymentsAccount(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) payments_account_id: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) currency_code: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) payments_profile_id: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) secondary_payments_profile_id: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) paying_manager_customer: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/per_store_view.py b/google/ads/googleads/v14/resources/types/per_store_view.py index 881fe2e2c..79d25bf3b 100644 --- a/google/ads/googleads/v14/resources/types/per_store_view.py +++ b/google/ads/googleads/v14/resources/types/per_store_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"PerStoreView",}, + manifest={ + "PerStoreView", + }, ) @@ -43,10 +45,12 @@ class PerStoreView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) place_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) diff --git a/google/ads/googleads/v14/resources/types/product_bidding_category_constant.py b/google/ads/googleads/v14/resources/types/product_bidding_category_constant.py index 2e82bca8f..ad278f879 100644 --- a/google/ads/googleads/v14/resources/types/product_bidding_category_constant.py +++ b/google/ads/googleads/v14/resources/types/product_bidding_category_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ProductBiddingCategoryConstant",}, + manifest={ + "ProductBiddingCategoryConstant", + }, ) @@ -77,16 +79,23 @@ class ProductBiddingCategoryConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=11, optional=True, + proto.STRING, + number=11, + optional=True, ) product_bidding_category_constant_parent: str = proto.Field( - proto.STRING, number=12, optional=True, + proto.STRING, + number=12, + optional=True, ) level: product_bidding_category_level.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel = proto.Field( proto.ENUM, @@ -99,10 +108,14 @@ class ProductBiddingCategoryConstant(proto.Message): enum=product_bidding_category_status.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus, ) language_code: str = proto.Field( - proto.STRING, number=13, optional=True, + proto.STRING, + number=13, + optional=True, ) localized_name: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/product_group_view.py b/google/ads/googleads/v14/resources/types/product_group_view.py index d6b0c51d7..af660fad6 100644 --- a/google/ads/googleads/v14/resources/types/product_group_view.py +++ b/google/ads/googleads/v14/resources/types/product_group_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ProductGroupView",}, + manifest={ + "ProductGroupView", + }, ) @@ -37,7 +39,8 @@ class ProductGroupView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/product_link.py b/google/ads/googleads/v14/resources/types/product_link.py index 6f3a379a8..cbd599718 100644 --- a/google/ads/googleads/v14/resources/types/product_link.py +++ b/google/ads/googleads/v14/resources/types/product_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,11 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ProductLink", "DataPartnerIdentifier", "GoogleAdsIdentifier",}, + manifest={ + "ProductLink", + "DataPartnerIdentifier", + "GoogleAdsIdentifier", + }, ) @@ -63,15 +67,20 @@ class ProductLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) product_link_id: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) - type_: linked_product_type.LinkedProductTypeEnum.LinkedProductType = proto.Field( - proto.ENUM, - number=3, - enum=linked_product_type.LinkedProductTypeEnum.LinkedProductType, + type_: linked_product_type.LinkedProductTypeEnum.LinkedProductType = ( + proto.Field( + proto.ENUM, + number=3, + enum=linked_product_type.LinkedProductTypeEnum.LinkedProductType, + ) ) data_partner: "DataPartnerIdentifier" = proto.Field( proto.MESSAGE, @@ -103,7 +112,9 @@ class DataPartnerIdentifier(proto.Message): """ data_partner_id: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) @@ -123,7 +134,9 @@ class GoogleAdsIdentifier(proto.Message): """ customer: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/qualifying_question.py b/google/ads/googleads/v14/resources/types/qualifying_question.py index ee08fa1a5..6cbf9519a 100644 --- a/google/ads/googleads/v14/resources/types/qualifying_question.py +++ b/google/ads/googleads/v14/resources/types/qualifying_question.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"QualifyingQuestion",}, + manifest={ + "QualifyingQuestion", + }, ) @@ -44,16 +46,20 @@ class QualifyingQuestion(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) qualifying_question_id: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) locale: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) text: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) diff --git a/google/ads/googleads/v14/resources/types/recommendation.py b/google/ads/googleads/v14/resources/types/recommendation.py index decbb77f4..1b15eda01 100644 --- a/google/ads/googleads/v14/resources/types/recommendation.py +++ b/google/ads/googleads/v14/resources/types/recommendation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -87,16 +87,16 @@ class Recommendation(proto.Message): RESPONSIVE_SEARCH_AD_ASSET, SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD, - UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX , - RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS + UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX, + RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS, SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER, SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS, SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS, - SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX + SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX, DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, - LOWER_TARGET_ROAS + LOWER_TARGET_ROAS, This field is a member of `oneof`_ ``_campaign``. ad_group (str): @@ -326,6 +326,21 @@ class Recommendation(proto.Message): Output only. Recommendation to lower Target ROAS. + This field is a member of `oneof`_ ``recommendation``. + performance_max_opt_in_recommendation (google.ads.googleads.v14.resources.types.Recommendation.PerformanceMaxOptInRecommendation): + Output only. The Performance Max Opt In + recommendation. + + This field is a member of `oneof`_ ``recommendation``. + improve_performance_max_ad_strength_recommendation (google.ads.googleads.v14.resources.types.Recommendation.ImprovePerformanceMaxAdStrengthRecommendation): + Output only. The improve Performance Max ad + strength recommendation. + + This field is a member of `oneof`_ ``recommendation``. + migrate_dynamic_search_ads_campaign_to_performance_max_recommendation (google.ads.googleads.v14.resources.types.Recommendation.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation): + Output only. The Dynamic Search Ads to + Performance Max migration recommendation. + This field is a member of `oneof`_ ``recommendation``. """ @@ -511,6 +526,10 @@ class KeywordRecommendation(proto.Message): Attributes: keyword (google.ads.googleads.v14.common.types.KeywordInfo): Output only. The recommended keyword. + search_terms (MutableSequence[google.ads.googleads.v14.resources.types.Recommendation.KeywordRecommendation.SearchTerm]): + Output only. A list of search terms this + keyword matches. The same search term may be + repeated for multiple keywords. recommended_cpc_bid_micros (int): Output only. The recommended CPC (cost-per-click) bid. @@ -518,11 +537,39 @@ class KeywordRecommendation(proto.Message): This field is a member of `oneof`_ ``_recommended_cpc_bid_micros``. """ + class SearchTerm(proto.Message): + r"""Information about a search term as related to a keyword + recommendation. + + Attributes: + text (str): + Output only. The text of the search term. + estimated_weekly_search_count (int): + Output only. Estimated number of historical + weekly searches for this search term. + """ + + text: str = proto.Field( + proto.STRING, + number=1, + ) + estimated_weekly_search_count: int = proto.Field( + proto.INT64, + number=2, + ) + keyword: criteria.KeywordInfo = proto.Field( proto.MESSAGE, number=1, message=criteria.KeywordInfo, ) + search_terms: MutableSequence[ + "Recommendation.KeywordRecommendation.SearchTerm" + ] = proto.RepeatedField( + proto.MESSAGE, + number=4, + message="Recommendation.KeywordRecommendation.SearchTerm", + ) recommended_cpc_bid_micros: int = proto.Field( proto.INT64, number=3, @@ -1279,8 +1326,8 @@ class CampaignBudget(proto.Message): new_start_date (str): Output only. The date when the new budget would start being used. This field will be set for the following - recommendation types: FORECASTING_SET_TARGET_ROAS. - YYYY-MM-DD format, for example, 2018-04-17. + recommendation types: FORECASTING_SET_TARGET_ROAS YYYY-MM-DD + format, for example, 2018-04-17. """ current_amount_micros: int = proto.Field( @@ -1296,6 +1343,41 @@ class CampaignBudget(proto.Message): number=3, ) + class PerformanceMaxOptInRecommendation(proto.Message): + r"""The Performance Max Opt In recommendation.""" + + class ImprovePerformanceMaxAdStrengthRecommendation(proto.Message): + r"""Recommendation to improve the asset group strength of a + Performance Max campaign to an "Excellent" rating. + + Attributes: + asset_group (str): + Output only. The asset group resource name. + """ + + asset_group: str = proto.Field( + proto.STRING, + number=1, + ) + + class MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation( + proto.Message + ): + r"""The Dynamic Search Ads to Performance Max migration + recommendation. + + Attributes: + apply_link (str): + Output only. A link to the Google Ads UI + where the customer can manually apply the + recommendation. + """ + + apply_link: str = proto.Field( + proto.STRING, + number=1, + ) + resource_name: str = proto.Field( proto.STRING, number=1, @@ -1612,6 +1694,26 @@ class CampaignBudget(proto.Message): message=LowerTargetRoasRecommendation, ) ) + performance_max_opt_in_recommendation: PerformanceMaxOptInRecommendation = ( + proto.Field( + proto.MESSAGE, + number=57, + oneof="recommendation", + message=PerformanceMaxOptInRecommendation, + ) + ) + improve_performance_max_ad_strength_recommendation: ImprovePerformanceMaxAdStrengthRecommendation = proto.Field( + proto.MESSAGE, + number=58, + oneof="recommendation", + message=ImprovePerformanceMaxAdStrengthRecommendation, + ) + migrate_dynamic_search_ads_campaign_to_performance_max_recommendation: MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = proto.Field( + proto.MESSAGE, + number=59, + oneof="recommendation", + message=MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation, + ) __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/ads/googleads/v14/resources/types/remarketing_action.py b/google/ads/googleads/v14/resources/types/remarketing_action.py index a99ae7c76..5b5766d9d 100644 --- a/google/ads/googleads/v14/resources/types/remarketing_action.py +++ b/google/ads/googleads/v14/resources/types/remarketing_action.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"RemarketingAction",}, + manifest={ + "RemarketingAction", + }, ) @@ -59,16 +61,23 @@ class RemarketingAction(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) name: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) tag_snippets: MutableSequence[tag_snippet.TagSnippet] = proto.RepeatedField( - proto.MESSAGE, number=4, message=tag_snippet.TagSnippet, + proto.MESSAGE, + number=4, + message=tag_snippet.TagSnippet, ) diff --git a/google/ads/googleads/v14/resources/types/search_term_view.py b/google/ads/googleads/v14/resources/types/search_term_view.py index 3e571809a..31875e21d 100644 --- a/google/ads/googleads/v14/resources/types/search_term_view.py +++ b/google/ads/googleads/v14/resources/types/search_term_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,7 +24,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"SearchTermView",}, + manifest={ + "SearchTermView", + }, ) @@ -56,13 +58,18 @@ class SearchTermView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) search_term: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) ad_group: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) status: search_term_targeting_status.SearchTermTargetingStatusEnum.SearchTermTargetingStatus = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/shared_criterion.py b/google/ads/googleads/v14/resources/types/shared_criterion.py index 80dd5c8d9..8d800fa64 100644 --- a/google/ads/googleads/v14/resources/types/shared_criterion.py +++ b/google/ads/googleads/v14/resources/types/shared_criterion.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"SharedCriterion",}, + manifest={ + "SharedCriterion", + }, ) @@ -83,13 +85,18 @@ class SharedCriterion(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) shared_set: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) criterion_id: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) type_: criterion_type.CriterionTypeEnum.CriterionType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/resources/types/shared_set.py b/google/ads/googleads/v14/resources/types/shared_set.py index 1ea83d78f..788f865d1 100644 --- a/google/ads/googleads/v14/resources/types/shared_set.py +++ b/google/ads/googleads/v14/resources/types/shared_set.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"SharedSet",}, + manifest={ + "SharedSet", + }, ) @@ -48,8 +50,8 @@ class SharedSet(proto.Message): This field is a member of `oneof`_ ``_id``. type_ (google.ads.googleads.v14.enums.types.SharedSetTypeEnum.SharedSetType): Immutable. The type of this shared set: each - shared set holds only a single kind of resource. - Required. Immutable. + shared set holds only a single + kind of resource. Required. Immutable. name (str): The name of this shared set. Required. Shared Sets must have names that are unique @@ -74,10 +76,13 @@ class SharedSet(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) type_: shared_set_type.SharedSetTypeEnum.SharedSetType = proto.Field( proto.ENUM, @@ -85,7 +90,9 @@ class SharedSet(proto.Message): enum=shared_set_type.SharedSetTypeEnum.SharedSetType, ) name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) status: shared_set_status.SharedSetStatusEnum.SharedSetStatus = proto.Field( proto.ENUM, @@ -93,10 +100,14 @@ class SharedSet(proto.Message): enum=shared_set_status.SharedSetStatusEnum.SharedSetStatus, ) member_count: int = proto.Field( - proto.INT64, number=10, optional=True, + proto.INT64, + number=10, + optional=True, ) reference_count: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/shopping_performance_view.py b/google/ads/googleads/v14/resources/types/shopping_performance_view.py index 77bef1a01..01fc0a363 100644 --- a/google/ads/googleads/v14/resources/types/shopping_performance_view.py +++ b/google/ads/googleads/v14/resources/types/shopping_performance_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ShoppingPerformanceView",}, + manifest={ + "ShoppingPerformanceView", + }, ) @@ -43,7 +45,8 @@ class ShoppingPerformanceView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/smart_campaign_search_term_view.py b/google/ads/googleads/v14/resources/types/smart_campaign_search_term_view.py index a740db834..7a249d9c4 100644 --- a/google/ads/googleads/v14/resources/types/smart_campaign_search_term_view.py +++ b/google/ads/googleads/v14/resources/types/smart_campaign_search_term_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"SmartCampaignSearchTermView",}, + manifest={ + "SmartCampaignSearchTermView", + }, ) @@ -43,13 +45,16 @@ class SmartCampaignSearchTermView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) search_term: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) campaign: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) diff --git a/google/ads/googleads/v14/resources/types/smart_campaign_setting.py b/google/ads/googleads/v14/resources/types/smart_campaign_setting.py index 26b71a4f8..b084c9b4f 100644 --- a/google/ads/googleads/v14/resources/types/smart_campaign_setting.py +++ b/google/ads/googleads/v14/resources/types/smart_campaign_setting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"SmartCampaignSetting",}, + manifest={ + "SmartCampaignSetting", + }, ) @@ -98,10 +100,14 @@ class PhoneNumber(proto.Message): """ phone_number: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) class AdOptimizedBusinessProfileSetting(proto.Message): @@ -121,35 +127,50 @@ class AdOptimizedBusinessProfileSetting(proto.Message): """ include_lead_form: bool = proto.Field( - proto.BOOL, number=1, optional=True, + proto.BOOL, + number=1, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) phone_number: PhoneNumber = proto.Field( - proto.MESSAGE, number=3, message=PhoneNumber, + proto.MESSAGE, + number=3, + message=PhoneNumber, ) advertising_language_code: str = proto.Field( - proto.STRING, number=7, + proto.STRING, + number=7, ) final_url: str = proto.Field( - proto.STRING, number=8, oneof="landing_page", - ) - ad_optimized_business_profile_setting: AdOptimizedBusinessProfileSetting = proto.Field( - proto.MESSAGE, - number=9, + proto.STRING, + number=8, oneof="landing_page", - message=AdOptimizedBusinessProfileSetting, + ) + ad_optimized_business_profile_setting: AdOptimizedBusinessProfileSetting = ( + proto.Field( + proto.MESSAGE, + number=9, + oneof="landing_page", + message=AdOptimizedBusinessProfileSetting, + ) ) business_name: str = proto.Field( - proto.STRING, number=5, oneof="business_setting", + proto.STRING, + number=5, + oneof="business_setting", ) business_profile_location: str = proto.Field( - proto.STRING, number=10, oneof="business_setting", + proto.STRING, + number=10, + oneof="business_setting", ) diff --git a/google/ads/googleads/v14/resources/types/third_party_app_analytics_link.py b/google/ads/googleads/v14/resources/types/third_party_app_analytics_link.py index 9d85c13dc..9f8d18b7d 100644 --- a/google/ads/googleads/v14/resources/types/third_party_app_analytics_link.py +++ b/google/ads/googleads/v14/resources/types/third_party_app_analytics_link.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"ThirdPartyAppAnalyticsLink",}, + manifest={ + "ThirdPartyAppAnalyticsLink", + }, ) @@ -50,10 +52,13 @@ class ThirdPartyAppAnalyticsLink(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) shareable_link_id: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/topic_constant.py b/google/ads/googleads/v14/resources/types/topic_constant.py index 322629924..f6300df06 100644 --- a/google/ads/googleads/v14/resources/types/topic_constant.py +++ b/google/ads/googleads/v14/resources/types/topic_constant.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,7 +23,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"TopicConstant",}, + manifest={ + "TopicConstant", + }, ) @@ -60,16 +62,22 @@ class TopicConstant(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) topic_constant_parent: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) path: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=7, + proto.STRING, + number=7, ) diff --git a/google/ads/googleads/v14/resources/types/topic_view.py b/google/ads/googleads/v14/resources/types/topic_view.py index ca36d059d..f09bfd416 100644 --- a/google/ads/googleads/v14/resources/types/topic_view.py +++ b/google/ads/googleads/v14/resources/types/topic_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"TopicView",}, + manifest={ + "TopicView", + }, ) @@ -37,7 +39,8 @@ class TopicView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/travel_activity_group_view.py b/google/ads/googleads/v14/resources/types/travel_activity_group_view.py index 35d8629e6..d2dc52566 100644 --- a/google/ads/googleads/v14/resources/types/travel_activity_group_view.py +++ b/google/ads/googleads/v14/resources/types/travel_activity_group_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"TravelActivityGroupView",}, + manifest={ + "TravelActivityGroupView", + }, ) @@ -38,7 +40,8 @@ class TravelActivityGroupView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/travel_activity_performance_view.py b/google/ads/googleads/v14/resources/types/travel_activity_performance_view.py index 255a95222..01ce14930 100644 --- a/google/ads/googleads/v14/resources/types/travel_activity_performance_view.py +++ b/google/ads/googleads/v14/resources/types/travel_activity_performance_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"TravelActivityPerformanceView",}, + manifest={ + "TravelActivityPerformanceView", + }, ) @@ -38,7 +40,8 @@ class TravelActivityPerformanceView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/resources/types/user_interest.py b/google/ads/googleads/v14/resources/types/user_interest.py index c69904a31..bb0982207 100644 --- a/google/ads/googleads/v14/resources/types/user_interest.py +++ b/google/ads/googleads/v14/resources/types/user_interest.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"UserInterest",}, + manifest={ + "UserInterest", + }, ) @@ -70,7 +72,8 @@ class UserInterest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) taxonomy_type: user_interest_taxonomy_type.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType = proto.Field( proto.ENUM, @@ -78,16 +81,24 @@ class UserInterest(proto.Message): enum=user_interest_taxonomy_type.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType, ) user_interest_id: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) name: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) user_interest_parent: str = proto.Field( - proto.STRING, number=10, optional=True, + proto.STRING, + number=10, + optional=True, ) launched_to_all: bool = proto.Field( - proto.BOOL, number=11, optional=True, + proto.BOOL, + number=11, + optional=True, ) availabilities: MutableSequence[ criterion_category_availability.CriterionCategoryAvailability diff --git a/google/ads/googleads/v14/resources/types/user_list.py b/google/ads/googleads/v14/resources/types/user_list.py index dcfbd590a..00888be10 100644 --- a/google/ads/googleads/v14/resources/types/user_list.py +++ b/google/ads/googleads/v14/resources/types/user_list.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"UserList",}, + manifest={ + "UserList", + }, ) @@ -194,19 +196,28 @@ class UserList(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: int = proto.Field( - proto.INT64, number=25, optional=True, + proto.INT64, + number=25, + optional=True, ) read_only: bool = proto.Field( - proto.BOOL, number=26, optional=True, + proto.BOOL, + number=26, + optional=True, ) name: str = proto.Field( - proto.STRING, number=27, optional=True, + proto.STRING, + number=27, + optional=True, ) description: str = proto.Field( - proto.STRING, number=28, optional=True, + proto.STRING, + number=28, + optional=True, ) membership_status: user_list_membership_status.UserListMembershipStatusEnum.UserListMembershipStatus = proto.Field( proto.ENUM, @@ -214,13 +225,19 @@ class UserList(proto.Message): enum=user_list_membership_status.UserListMembershipStatusEnum.UserListMembershipStatus, ) integration_code: str = proto.Field( - proto.STRING, number=29, optional=True, + proto.STRING, + number=29, + optional=True, ) membership_life_span: int = proto.Field( - proto.INT64, number=30, optional=True, + proto.INT64, + number=30, + optional=True, ) size_for_display: int = proto.Field( - proto.INT64, number=31, optional=True, + proto.INT64, + number=31, + optional=True, ) size_range_for_display: user_list_size_range.UserListSizeRangeEnum.UserListSizeRange = proto.Field( proto.ENUM, @@ -228,7 +245,9 @@ class UserList(proto.Message): enum=user_list_size_range.UserListSizeRangeEnum.UserListSizeRange, ) size_for_search: int = proto.Field( - proto.INT64, number=32, optional=True, + proto.INT64, + number=32, + optional=True, ) size_range_for_search: user_list_size_range.UserListSizeRangeEnum.UserListSizeRange = proto.Field( proto.ENUM, @@ -245,10 +264,12 @@ class UserList(proto.Message): number=14, enum=user_list_closing_reason.UserListClosingReasonEnum.UserListClosingReason, ) - access_reason: gage_access_reason.AccessReasonEnum.AccessReason = proto.Field( - proto.ENUM, - number=15, - enum=gage_access_reason.AccessReasonEnum.AccessReason, + access_reason: gage_access_reason.AccessReasonEnum.AccessReason = ( + proto.Field( + proto.ENUM, + number=15, + enum=gage_access_reason.AccessReasonEnum.AccessReason, + ) ) account_user_list_status: user_list_access_status.UserListAccessStatusEnum.UserListAccessStatus = proto.Field( proto.ENUM, @@ -256,13 +277,19 @@ class UserList(proto.Message): enum=user_list_access_status.UserListAccessStatusEnum.UserListAccessStatus, ) eligible_for_search: bool = proto.Field( - proto.BOOL, number=33, optional=True, + proto.BOOL, + number=33, + optional=True, ) eligible_for_display: bool = proto.Field( - proto.BOOL, number=34, optional=True, + proto.BOOL, + number=34, + optional=True, ) match_rate_percentage: int = proto.Field( - proto.INT32, number=24, optional=True, + proto.INT32, + number=24, + optional=True, ) crm_based_user_list: user_lists.CrmBasedUserListInfo = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/resources/types/user_location_view.py b/google/ads/googleads/v14/resources/types/user_location_view.py index fd6598971..bd2a4674a 100644 --- a/google/ads/googleads/v14/resources/types/user_location_view.py +++ b/google/ads/googleads/v14/resources/types/user_location_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"UserLocationView",}, + manifest={ + "UserLocationView", + }, ) @@ -54,13 +56,18 @@ class UserLocationView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) country_criterion_id: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) targeting_location: bool = proto.Field( - proto.BOOL, number=5, optional=True, + proto.BOOL, + number=5, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/video.py b/google/ads/googleads/v14/resources/types/video.py index 6c2ea0133..eef4f1740 100644 --- a/google/ads/googleads/v14/resources/types/video.py +++ b/google/ads/googleads/v14/resources/types/video.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"Video",}, + manifest={ + "Video", + }, ) @@ -57,19 +59,28 @@ class Video(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) id: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) channel_id: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) duration_millis: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) title: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) diff --git a/google/ads/googleads/v14/resources/types/webpage_view.py b/google/ads/googleads/v14/resources/types/webpage_view.py index 6c9b08040..120134d7a 100644 --- a/google/ads/googleads/v14/resources/types/webpage_view.py +++ b/google/ads/googleads/v14/resources/types/webpage_view.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.resources", marshal="google.ads.googleads.v14", - manifest={"WebpageView",}, + manifest={ + "WebpageView", + }, ) @@ -37,7 +39,8 @@ class WebpageView(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/__init__.py b/google/ads/googleads/v14/services/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/services/__init__.py +++ b/google/ads/googleads/v14/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/__init__.py b/google/ads/googleads/v14/services/services/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/services/services/__init__.py +++ b/google/ads/googleads/v14/services/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/account_budget_proposal_service/__init__.py b/google/ads/googleads/v14/services/services/account_budget_proposal_service/__init__.py index 9c82b1171..ead39c0cd 100644 --- a/google/ads/googleads/v14/services/services/account_budget_proposal_service/__init__.py +++ b/google/ads/googleads/v14/services/services/account_budget_proposal_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/account_budget_proposal_service/client.py b/google/ads/googleads/v14/services/services/account_budget_proposal_service/client.py index 781aa888b..e6f638a4d 100644 --- a/google/ads/googleads/v14/services/services/account_budget_proposal_service/client.py +++ b/google/ads/googleads/v14/services/services/account_budget_proposal_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,8 @@ class AccountBudgetProposalServiceClientMeta(type): _transport_registry["grpc"] = AccountBudgetProposalServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AccountBudgetProposalServiceTransport]: """Returns an appropriate transport class. @@ -86,6 +87,7 @@ class AccountBudgetProposalServiceClient( to an existing one. Mutates: + The CREATE operation creates a new proposal. UPDATE operations aren't supported. The REMOVE operation cancels a pending proposal. @@ -191,10 +193,16 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def account_budget_path(customer_id: str, account_budget_id: str,) -> str: + def account_budget_path( + customer_id: str, + account_budget_id: str, + ) -> str: """Returns a fully-qualified account_budget string.""" - return "customers/{customer_id}/accountBudgets/{account_budget_id}".format( - customer_id=customer_id, account_budget_id=account_budget_id, + return ( + "customers/{customer_id}/accountBudgets/{account_budget_id}".format( + customer_id=customer_id, + account_budget_id=account_budget_id, + ) ) @staticmethod @@ -208,7 +216,8 @@ def parse_account_budget_path(path: str) -> Dict[str, str]: @staticmethod def account_budget_proposal_path( - customer_id: str, account_budget_proposal_id: str, + customer_id: str, + account_budget_proposal_id: str, ) -> str: """Returns a fully-qualified account_budget_proposal string.""" return "customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}".format( @@ -226,10 +235,16 @@ def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def billing_setup_path(customer_id: str, billing_setup_id: str,) -> str: + def billing_setup_path( + customer_id: str, + billing_setup_id: str, + ) -> str: """Returns a fully-qualified billing_setup string.""" - return "customers/{customer_id}/billingSetups/{billing_setup_id}".format( - customer_id=customer_id, billing_setup_id=billing_setup_id, + return ( + "customers/{customer_id}/billingSetups/{billing_setup_id}".format( + customer_id=customer_id, + billing_setup_id=billing_setup_id, + ) ) @staticmethod @@ -242,7 +257,9 @@ def parse_billing_setup_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -255,9 +272,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -266,9 +287,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -277,9 +302,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -288,10 +317,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -532,7 +565,10 @@ def mutate_account_budget_proposal( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -541,7 +577,9 @@ def mutate_account_budget_proposal( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/__init__.py b/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/__init__.py index 64f9443ee..63618a7ac 100644 --- a/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.py b/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.py index fcd8a0493..19cab4a33 100644 --- a/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.py b/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.py index 92ad86eea..75ca272a0 100644 --- a/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ class AccountBudgetProposalServiceGrpcTransport( to an existing one. Mutates: + The CREATE operation creates a new proposal. UPDATE operations aren't supported. The REMOVE operation cancels a pending proposal. @@ -147,8 +148,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -158,8 +161,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -242,8 +247,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/account_link_service/__init__.py b/google/ads/googleads/v14/services/services/account_link_service/__init__.py index 3165e8d06..bb912a5e3 100644 --- a/google/ads/googleads/v14/services/services/account_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/account_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/account_link_service/client.py b/google/ads/googleads/v14/services/services/account_link_service/client.py index 8213396a3..c8ac284bd 100644 --- a/google/ads/googleads/v14/services/services/account_link_service/client.py +++ b/google/ads/googleads/v14/services/services/account_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,8 @@ class AccountLinkServiceClientMeta(type): _transport_registry["grpc"] = AccountLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AccountLinkServiceTransport]: """Returns an appropriate transport class. @@ -181,10 +182,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def account_link_path(customer_id: str, account_link_id: str,) -> str: + def account_link_path( + customer_id: str, + account_link_id: str, + ) -> str: """Returns a fully-qualified account_link string.""" return "customers/{customer_id}/accountLinks/{account_link_id}".format( - customer_id=customer_id, account_link_id=account_link_id, + customer_id=customer_id, + account_link_id=account_link_id, ) @staticmethod @@ -197,9 +202,13 @@ def parse_account_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -208,7 +217,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -221,9 +232,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -232,9 +247,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -243,9 +262,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -254,10 +277,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -487,7 +514,10 @@ def create_account_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -585,7 +615,10 @@ def mutate_account_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -594,7 +627,9 @@ def mutate_account_link( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/account_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/account_link_service/transports/__init__.py index 99a06aedf..7b7c399a3 100644 --- a/google/ads/googleads/v14/services/services/account_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/account_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/account_link_service/transports/base.py b/google/ads/googleads/v14/services/services/account_link_service/transports/base.py index b98f22883..5e2189edd 100644 --- a/google/ads/googleads/v14/services/services/account_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/account_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -137,9 +139,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/account_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/account_link_service/transports/grpc.py index 7154e7a2a..e8d8f3bf1 100644 --- a/google/ads/googleads/v14/services/services/account_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/account_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -136,8 +136,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -147,8 +149,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -231,8 +235,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/__init__.py index d5502544e..238ede6c0 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/client.py b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/client.py index c28bd0567..59061168d 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdGroupAdLabelServiceClientMeta(type): _transport_registry["grpc"] = AdGroupAdLabelServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupAdLabelServiceTransport]: """Returns an appropriate transport class. @@ -186,11 +187,17 @@ def __exit__(self, type, value, traceback): @staticmethod def ad_group_ad_path( - customer_id: str, ad_group_id: str, ad_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, ) -> str: """Returns a fully-qualified ad_group_ad string.""" - return "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, ad_id=ad_id, + return ( + "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( + customer_id=customer_id, + ad_group_id=ad_group_id, + ad_id=ad_id, + ) ) @staticmethod @@ -204,7 +211,10 @@ def parse_ad_group_ad_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_label_path( - customer_id: str, ad_group_id: str, ad_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_ad_label string.""" return "customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}".format( @@ -224,10 +234,14 @@ def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -239,7 +253,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -252,9 +268,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -263,9 +283,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -274,9 +298,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -285,10 +313,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -523,7 +555,10 @@ def mutate_ad_group_ad_labels( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -532,7 +567,9 @@ def mutate_ad_group_ad_labels( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/__init__.py index 5017cf649..0d5b22ba7 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.py index 400e5aafa..2e45c3381 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.py index 90956ffd7..96c0af9fe 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_ad_service/__init__.py index 55aa7ee02..0e8c28f55 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_service/client.py b/google/ads/googleads/v14/services/services/ad_group_ad_service/client.py index 38d377e73..013a6736e 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdGroupAdServiceClientMeta(type): _transport_registry["grpc"] = AdGroupAdServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupAdServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_path(customer_id: str, ad_id: str,) -> str: + def ad_path( + customer_id: str, + ad_id: str, + ) -> str: """Returns a fully-qualified ad string.""" return "customers/{customer_id}/ads/{ad_id}".format( - customer_id=customer_id, ad_id=ad_id, + customer_id=customer_id, + ad_id=ad_id, ) @staticmethod @@ -200,10 +205,14 @@ def parse_ad_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -217,11 +226,17 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_path( - customer_id: str, ad_group_id: str, ad_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, ) -> str: """Returns a fully-qualified ad_group_ad string.""" - return "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, ad_id=ad_id, + return ( + "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( + customer_id=customer_id, + ad_group_id=ad_group_id, + ad_id=ad_id, + ) ) @staticmethod @@ -235,7 +250,10 @@ def parse_ad_group_ad_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_label_path( - customer_id: str, ad_group_id: str, ad_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_ad_label string.""" return "customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}".format( @@ -255,7 +273,9 @@ def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -268,9 +288,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -279,9 +303,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -290,9 +318,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -301,10 +333,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -549,7 +585,10 @@ def mutate_ad_group_ads( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -558,7 +597,9 @@ def mutate_ad_group_ads( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/__init__.py index f4ea5caf9..7838c072d 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.py index 400a0a8bd..d929b1401 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.py index af60d07c3..3cb885e61 100644 --- a/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_asset_service/__init__.py index fd44e9775..5c91600c9 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_service/client.py b/google/ads/googleads/v14/services/services/ad_group_asset_service/client.py index b31e94804..3cd5354a6 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdGroupAssetServiceClientMeta(type): _transport_registry["grpc"] = AdGroupAssetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupAssetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -202,7 +207,10 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_asset_path( - customer_id: str, ad_group_id: str, asset_id: str, field_type: str, + customer_id: str, + ad_group_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified ad_group_asset string.""" return "customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}".format( @@ -222,10 +230,14 @@ def parse_ad_group_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -237,7 +249,9 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -250,9 +264,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -261,9 +279,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -272,9 +294,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -283,10 +309,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -520,7 +550,10 @@ def mutate_ad_group_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -529,7 +562,9 @@ def mutate_ad_group_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/__init__.py index d642d1d6a..291a2bf5f 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.py index 74453ade9..e1de45519 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.py index 41300bbfe..40e1ce4cc 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/__init__.py index 55a5ebc43..0c2c670dd 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/client.py b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/client.py index 5e562f4e7..efa2b2190 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class AdGroupAssetSetServiceClientMeta(type): _transport_registry["grpc"] = AdGroupAssetSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupAssetSetServiceTransport]: """Returns an appropriate transport class. @@ -188,10 +189,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -205,7 +210,9 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_asset_set_path( - customer_id: str, ad_group_id: str, asset_set_id: str, + customer_id: str, + ad_group_id: str, + asset_set_id: str, ) -> str: """Returns a fully-qualified ad_group_asset_set string.""" return "customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}".format( @@ -224,10 +231,14 @@ def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -240,7 +251,9 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -253,9 +266,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -264,9 +281,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -275,9 +296,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -286,10 +311,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -522,7 +551,10 @@ def mutate_ad_group_asset_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -531,7 +563,9 @@ def mutate_ad_group_asset_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/__init__.py index 3e78435fb..b0af106bb 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.py index 7769c7378..c480b5801 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.py index f7c0bb718..c8ca2be6e 100644 --- a/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/__init__.py index 96416cbda..47573ddbb 100644 --- a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.py b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.py index b8dac3c45..db78eedf9 100644 --- a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class AdGroupBidModifierServiceClientMeta(type): _transport_registry["grpc"] = AdGroupBidModifierServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupBidModifierServiceTransport]: """Returns an appropriate transport class. @@ -192,10 +193,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -209,7 +214,9 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_bid_modifier_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_bid_modifier string.""" return "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}".format( @@ -228,7 +235,9 @@ def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -241,9 +250,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -252,9 +265,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -263,9 +280,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -274,10 +295,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -500,8 +525,10 @@ def mutate_ad_group_bid_modifiers( request, ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest, ): - request = ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest( - request + request = ( + ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -526,7 +553,10 @@ def mutate_ad_group_bid_modifiers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -535,7 +565,9 @@ def mutate_ad_group_bid_modifiers( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/__init__.py index 0b5dd912b..2a601ab15 100644 --- a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.py index 1df8fc6ab..8987ae7e3 100644 --- a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.py index ee0c28be8..104612202 100644 --- a/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/__init__.py index 096b3647b..34fa2f6a6 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.py b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.py index 5c06df19f..c05f260c2 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class AdGroupCriterionCustomizerServiceClientMeta(type): _transport_registry["grpc"] = AdGroupCriterionCustomizerServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupCriterionCustomizerServiceTransport]: """Returns an appropriate transport class. @@ -193,7 +194,9 @@ def __exit__(self, type, value, traceback): @staticmethod def ad_group_criterion_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion string.""" return "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( @@ -237,7 +240,8 @@ def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -255,7 +259,9 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -268,9 +274,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -279,9 +289,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -290,9 +304,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -301,10 +319,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -543,7 +565,10 @@ def mutate_ad_group_criterion_customizers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -552,7 +577,9 @@ def mutate_ad_group_criterion_customizers( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/__init__.py index 345936cf5..d91ceb3dc 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.py index 934261741..fc6437e24 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.py index c47fc89fb..92185713c 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/__init__.py index c1add723c..ea075ede0 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.py b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.py index 3e8a8e521..561b3d8ad 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class AdGroupCriterionLabelServiceClientMeta(type): _transport_registry["grpc"] = AdGroupCriterionLabelServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupCriterionLabelServiceTransport]: """Returns an appropriate transport class. @@ -193,7 +194,9 @@ def __exit__(self, type, value, traceback): @staticmethod def ad_group_criterion_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion string.""" return "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( @@ -213,7 +216,10 @@ def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_label_path( - customer_id: str, ad_group_id: str, criterion_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion_label string.""" return "customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}".format( @@ -233,10 +239,14 @@ def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -248,7 +258,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -261,9 +273,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -272,9 +288,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -283,9 +303,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -294,10 +318,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -540,7 +568,10 @@ def mutate_ad_group_criterion_labels( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -549,7 +580,9 @@ def mutate_ad_group_criterion_labels( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/__init__.py index f21fc1d33..3cfb8383d 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.py index ffab9326d..5759733f7 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.py index ac1ff1b37..8b7be5a69 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_criterion_service/__init__.py index dae8637e6..dd70b46ea 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_service/client.py b/google/ads/googleads/v14/services/services/ad_group_criterion_service/client.py index 52199ada2..23a50b77d 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class AdGroupCriterionServiceClientMeta(type): _transport_registry["grpc"] = AdGroupCriterionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupCriterionServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -207,7 +212,9 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion string.""" return "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( @@ -227,7 +234,10 @@ def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_label_path( - customer_id: str, ad_group_id: str, criterion_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion_label string.""" return "customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}".format( @@ -247,7 +257,9 @@ def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -260,9 +272,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -271,9 +287,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -282,9 +302,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -293,10 +317,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -545,7 +573,10 @@ def mutate_ad_group_criteria( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -554,7 +585,9 @@ def mutate_ad_group_criteria( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/__init__.py index 0fb3e713f..fd4a35af5 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.py index ef4289aff..aa1b17519 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.py index 343b78eb1..5d4e67f9a 100644 --- a/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_customizer_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_customizer_service/__init__.py index 92ff6d237..83d64799c 100644 --- a/google/ads/googleads/v14/services/services/ad_group_customizer_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_customizer_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_customizer_service/client.py b/google/ads/googleads/v14/services/services/ad_group_customizer_service/client.py index 43480e0b8..0e0d182a4 100644 --- a/google/ads/googleads/v14/services/services/ad_group_customizer_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_customizer_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class AdGroupCustomizerServiceClientMeta(type): _transport_registry["grpc"] = AdGroupCustomizerServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupCustomizerServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -207,7 +212,9 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_customizer_path( - customer_id: str, ad_group_id: str, customizer_attribute_id: str, + customer_id: str, + ad_group_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified ad_group_customizer string.""" return "customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}".format( @@ -227,7 +234,8 @@ def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -245,7 +253,9 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -258,9 +268,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -269,9 +283,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -280,9 +298,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -291,10 +313,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -506,8 +532,10 @@ def mutate_ad_group_customizers( if not isinstance( request, ad_group_customizer_service.MutateAdGroupCustomizersRequest ): - request = ad_group_customizer_service.MutateAdGroupCustomizersRequest( - request + request = ( + ad_group_customizer_service.MutateAdGroupCustomizersRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -532,7 +560,10 @@ def mutate_ad_group_customizers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -541,7 +572,9 @@ def mutate_ad_group_customizers( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/__init__.py index d6c918458..6bdadc71c 100644 --- a/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.py index b1f256bd0..6fd8e242b 100644 --- a/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.py index a640156c0..9cd28827b 100644 --- a/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/__init__.py index 98389130e..70b8f1fc7 100644 --- a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.py b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.py index b9e28f91d..8e1bc0e99 100644 --- a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class AdGroupExtensionSettingServiceClientMeta(type): _transport_registry["grpc"] = AdGroupExtensionSettingServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupExtensionSettingServiceTransport]: """Returns an appropriate transport class. @@ -192,10 +193,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -209,7 +214,9 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_extension_setting_path( - customer_id: str, ad_group_id: str, extension_type: str, + customer_id: str, + ad_group_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified ad_group_extension_setting string.""" return "customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}".format( @@ -228,10 +235,16 @@ def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def extension_feed_item_path(customer_id: str, feed_item_id: str,) -> str: + def extension_feed_item_path( + customer_id: str, + feed_item_id: str, + ) -> str: """Returns a fully-qualified extension_feed_item string.""" - return "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( - customer_id=customer_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( + customer_id=customer_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -244,7 +257,9 @@ def parse_extension_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -257,9 +272,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -268,9 +287,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -279,9 +302,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -290,10 +317,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -546,7 +577,10 @@ def mutate_ad_group_extension_settings( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -555,7 +589,9 @@ def mutate_ad_group_extension_settings( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/__init__.py index e4ef0d6b3..71cad8b9c 100644 --- a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.py index 68f67853c..1aff349b6 100644 --- a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.py index cdb8fc06a..b1342fbd8 100644 --- a/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_feed_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_feed_service/__init__.py index ecfbd0029..1b3f803c7 100644 --- a/google/ads/googleads/v14/services/services/ad_group_feed_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_feed_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_feed_service/client.py b/google/ads/googleads/v14/services/services/ad_group_feed_service/client.py index 181f563ce..fd815cecf 100644 --- a/google/ads/googleads/v14/services/services/ad_group_feed_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_feed_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdGroupFeedServiceClientMeta(type): _transport_registry["grpc"] = AdGroupFeedServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupFeedServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -202,11 +207,15 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_feed_path( - customer_id: str, ad_group_id: str, feed_id: str, + customer_id: str, + ad_group_id: str, + feed_id: str, ) -> str: """Returns a fully-qualified ad_group_feed string.""" return "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, feed_id=feed_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + feed_id=feed_id, ) @staticmethod @@ -219,10 +228,14 @@ def parse_ad_group_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -234,7 +247,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -247,9 +262,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -258,9 +277,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -269,9 +292,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -280,10 +307,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -520,7 +551,10 @@ def mutate_ad_group_feeds( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -529,7 +563,9 @@ def mutate_ad_group_feeds( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/__init__.py index 577dc07dd..3c4b5ce9a 100644 --- a/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.py index f3aa38491..a68c0d7ad 100644 --- a/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.py index d66d506c2..dbf82e3b7 100644 --- a/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_label_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_label_service/__init__.py index c790d9e7f..654d87bd1 100644 --- a/google/ads/googleads/v14/services/services/ad_group_label_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_label_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_label_service/client.py b/google/ads/googleads/v14/services/services/ad_group_label_service/client.py index cf525fc03..17aefa49b 100644 --- a/google/ads/googleads/v14/services/services/ad_group_label_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_label_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdGroupLabelServiceClientMeta(type): _transport_registry["grpc"] = AdGroupLabelServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupLabelServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -202,11 +207,15 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_label_path( - customer_id: str, ad_group_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_label string.""" return "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, label_id=label_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + label_id=label_id, ) @staticmethod @@ -219,10 +228,14 @@ def parse_ad_group_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -234,7 +247,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -247,9 +262,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -258,9 +277,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -269,9 +292,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -280,10 +307,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -516,7 +547,10 @@ def mutate_ad_group_labels( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -525,7 +559,9 @@ def mutate_ad_group_labels( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_label_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_label_service/transports/__init__.py index 44b8ecca6..f9e7e1d8b 100644 --- a/google/ads/googleads/v14/services/services/ad_group_label_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_label_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_label_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_label_service/transports/base.py index 1cf7ea735..a2873b4cc 100644 --- a/google/ads/googleads/v14/services/services/ad_group_label_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_label_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.py index dde80419c..8967e29dc 100644 --- a/google/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_group_service/__init__.py b/google/ads/googleads/v14/services/services/ad_group_service/__init__.py index ae3a0b219..e65109908 100644 --- a/google/ads/googleads/v14/services/services/ad_group_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_service/client.py b/google/ads/googleads/v14/services/services/ad_group_service/client.py index ad8ce70fd..f947a99ac 100644 --- a/google/ads/googleads/v14/services/services/ad_group_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_group_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdGroupServiceClientMeta(type): _transport_registry["grpc"] = AdGroupServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdGroupServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -202,11 +207,15 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_label_path( - customer_id: str, ad_group_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_label string.""" return "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, label_id=label_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + label_id=label_id, ) @staticmethod @@ -219,10 +228,14 @@ def parse_ad_group_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -235,7 +248,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -248,9 +263,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -259,9 +278,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -270,9 +293,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -281,10 +308,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -522,7 +553,10 @@ def mutate_ad_groups( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -531,7 +565,9 @@ def mutate_ad_groups( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_group_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_group_service/transports/__init__.py index ee68bce39..2068e683d 100644 --- a/google/ads/googleads/v14/services/services/ad_group_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_group_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_group_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_group_service/transports/base.py index dbaa74529..38c6499a7 100644 --- a/google/ads/googleads/v14/services/services/ad_group_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_group_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_group_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_group_service/transports/grpc.py index 5e5916aa2..60cd115eb 100644 --- a/google/ads/googleads/v14/services/services/ad_group_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_group_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_parameter_service/__init__.py b/google/ads/googleads/v14/services/services/ad_parameter_service/__init__.py index 1d0f08d29..d0e091909 100644 --- a/google/ads/googleads/v14/services/services/ad_parameter_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_parameter_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_parameter_service/client.py b/google/ads/googleads/v14/services/services/ad_parameter_service/client.py index a1eacf574..2551e2ccf 100644 --- a/google/ads/googleads/v14/services/services/ad_parameter_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_parameter_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AdParameterServiceClientMeta(type): _transport_registry["grpc"] = AdParameterServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdParameterServiceTransport]: """Returns an appropriate transport class. @@ -186,7 +187,9 @@ def __exit__(self, type, value, traceback): @staticmethod def ad_group_criterion_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion string.""" return "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( @@ -229,7 +232,9 @@ def parse_ad_parameter_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -242,9 +247,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -253,9 +262,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -264,9 +277,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -275,10 +292,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -511,7 +532,10 @@ def mutate_ad_parameters( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -520,7 +544,9 @@ def mutate_ad_parameters( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_parameter_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_parameter_service/transports/__init__.py index 10d422980..d13260be5 100644 --- a/google/ads/googleads/v14/services/services/ad_parameter_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_parameter_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_parameter_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_parameter_service/transports/base.py index 57fe38d03..01ba463fc 100644 --- a/google/ads/googleads/v14/services/services/ad_parameter_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_parameter_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.py index e22b029bb..96bebbc46 100644 --- a/google/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/ad_service/__init__.py b/google/ads/googleads/v14/services/services/ad_service/__init__.py index 7880d3db9..ffe0a831e 100644 --- a/google/ads/googleads/v14/services/services/ad_service/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_service/client.py b/google/ads/googleads/v14/services/services/ad_service/client.py index 09a614fd6..62e200e2e 100644 --- a/google/ads/googleads/v14/services/services/ad_service/client.py +++ b/google/ads/googleads/v14/services/services/ad_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -63,7 +63,8 @@ class AdServiceClientMeta(type): _transport_registry["grpc"] = AdServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AdServiceTransport]: """Returns an appropriate transport class. @@ -186,10 +187,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_path(customer_id: str, ad_id: str,) -> str: + def ad_path( + customer_id: str, + ad_id: str, + ) -> str: """Returns a fully-qualified ad string.""" return "customers/{customer_id}/ads/{ad_id}".format( - customer_id=customer_id, ad_id=ad_id, + customer_id=customer_id, + ad_id=ad_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_ad_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -460,7 +483,10 @@ def get_ad( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -562,7 +588,10 @@ def mutate_ads( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -571,7 +600,9 @@ def mutate_ads( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/ad_service/transports/__init__.py b/google/ads/googleads/v14/services/services/ad_service/transports/__init__.py index 99a438191..1745572dc 100644 --- a/google/ads/googleads/v14/services/services/ad_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/ad_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/ad_service/transports/base.py b/google/ads/googleads/v14/services/services/ad_service/transports/base.py index 4022c5532..4ec4ab1bb 100644 --- a/google/ads/googleads/v14/services/services/ad_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/ad_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -124,19 +126,23 @@ def _prep_wrapped_messages(self, client_info): # Precompute the wrapped methods. self._wrapped_methods = { self.get_ad: gapic_v1.method.wrap_method( - self.get_ad, default_timeout=None, client_info=client_info, + self.get_ad, + default_timeout=None, + client_info=client_info, ), self.mutate_ads: gapic_v1.method.wrap_method( - self.mutate_ads, default_timeout=None, client_info=client_info, + self.mutate_ads, + default_timeout=None, + client_info=client_info, ), } def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/ad_service/transports/grpc.py b/google/ads/googleads/v14/services/services/ad_service/transports/grpc.py index e7053d1fa..93d95e896 100644 --- a/google/ads/googleads/v14/services/services/ad_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/ad_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -136,8 +136,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -147,8 +149,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -231,8 +235,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_group_asset_service/__init__.py b/google/ads/googleads/v14/services/services/asset_group_asset_service/__init__.py index 0a6f0c54b..acdc36cb4 100644 --- a/google/ads/googleads/v14/services/services/asset_group_asset_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_asset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_asset_service/client.py b/google/ads/googleads/v14/services/services/asset_group_asset_service/client.py index 62ed02a23..47567d57d 100644 --- a/google/ads/googleads/v14/services/services/asset_group_asset_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_group_asset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class AssetGroupAssetServiceClientMeta(type): _transport_registry["grpc"] = AssetGroupAssetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetGroupAssetServiceTransport]: """Returns an appropriate transport class. @@ -188,10 +189,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -203,10 +208,14 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_group_path(customer_id: str, asset_group_id: str,) -> str: + def asset_group_path( + customer_id: str, + asset_group_id: str, + ) -> str: """Returns a fully-qualified asset_group string.""" return "customers/{customer_id}/assetGroups/{asset_group_id}".format( - customer_id=customer_id, asset_group_id=asset_group_id, + customer_id=customer_id, + asset_group_id=asset_group_id, ) @staticmethod @@ -220,7 +229,10 @@ def parse_asset_group_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_asset_path( - customer_id: str, asset_group_id: str, asset_id: str, field_type: str, + customer_id: str, + asset_group_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified asset_group_asset string.""" return "customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}".format( @@ -240,7 +252,9 @@ def parse_asset_group_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -253,9 +267,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -264,9 +282,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -275,9 +297,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -286,10 +312,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -520,7 +550,10 @@ def mutate_asset_group_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -529,7 +562,9 @@ def mutate_asset_group_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/__init__.py index 3e295df66..29585dda3 100644 --- a/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.py index db8056e93..b5586c70a 100644 --- a/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.py index 912fc681c..26a80b38f 100644 --- a/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/__init__.py b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/__init__.py index c53f3f49f..ad6590c82 100644 --- a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.py b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.py index 6f5be57a8..023209741 100644 --- a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,7 +68,8 @@ class AssetGroupListingGroupFilterServiceClientMeta(type): ] = AssetGroupListingGroupFilterServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetGroupListingGroupFilterServiceTransport]: """Returns an appropriate transport class. @@ -193,10 +194,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_group_path(customer_id: str, asset_group_id: str,) -> str: + def asset_group_path( + customer_id: str, + asset_group_id: str, + ) -> str: """Returns a fully-qualified asset_group string.""" return "customers/{customer_id}/assetGroups/{asset_group_id}".format( - customer_id=customer_id, asset_group_id=asset_group_id, + customer_id=customer_id, + asset_group_id=asset_group_id, ) @staticmethod @@ -210,7 +215,9 @@ def parse_asset_group_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_listing_group_filter_path( - customer_id: str, asset_group_id: str, listing_group_filter_id: str, + customer_id: str, + asset_group_id: str, + listing_group_filter_id: str, ) -> str: """Returns a fully-qualified asset_group_listing_group_filter string.""" return "customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}".format( @@ -231,7 +238,9 @@ def parse_asset_group_listing_group_filter_path( return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -244,9 +253,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -255,9 +268,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -266,9 +283,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -277,10 +298,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -521,7 +546,10 @@ def mutate_asset_group_listing_group_filters( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -530,7 +558,9 @@ def mutate_asset_group_listing_group_filters( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/__init__.py index 666429e63..470d8bb97 100644 --- a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.py index 7d16c872f..311b75a9c 100644 --- a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.py index 85fea9e2c..a15e89643 100644 --- a/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_group_service/__init__.py b/google/ads/googleads/v14/services/services/asset_group_service/__init__.py index df6bf85e5..f7af182f5 100644 --- a/google/ads/googleads/v14/services/services/asset_group_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_service/client.py b/google/ads/googleads/v14/services/services/asset_group_service/client.py index 0c3905313..8f66c8c56 100644 --- a/google/ads/googleads/v14/services/services/asset_group_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_group_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AssetGroupServiceClientMeta(type): _transport_registry["grpc"] = AssetGroupServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetGroupServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_group_path(customer_id: str, asset_group_id: str,) -> str: + def asset_group_path( + customer_id: str, + asset_group_id: str, + ) -> str: """Returns a fully-qualified asset_group string.""" return "customers/{customer_id}/assetGroups/{asset_group_id}".format( - customer_id=customer_id, asset_group_id=asset_group_id, + customer_id=customer_id, + asset_group_id=asset_group_id, ) @staticmethod @@ -201,10 +206,14 @@ def parse_asset_group_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -217,7 +226,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -230,9 +241,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -241,9 +256,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -252,9 +271,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -263,10 +286,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -493,7 +520,10 @@ def mutate_asset_groups( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -502,7 +532,9 @@ def mutate_asset_groups( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_group_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_group_service/transports/__init__.py index c15d91539..6e19ea416 100644 --- a/google/ads/googleads/v14/services/services/asset_group_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_group_service/transports/base.py index aef5e0e0d..e88bfe983 100644 --- a/google/ads/googleads/v14/services/services/asset_group_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_group_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_group_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_group_service/transports/grpc.py index 4324ef6f7..53e7336ce 100644 --- a/google/ads/googleads/v14/services/services/asset_group_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_group_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_group_signal_service/__init__.py b/google/ads/googleads/v14/services/services/asset_group_signal_service/__init__.py index 99a25329d..9f92996eb 100644 --- a/google/ads/googleads/v14/services/services/asset_group_signal_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_signal_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_signal_service/client.py b/google/ads/googleads/v14/services/services/asset_group_signal_service/client.py index 1e82b6f71..b45c1da62 100644 --- a/google/ads/googleads/v14/services/services/asset_group_signal_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_group_signal_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class AssetGroupSignalServiceClientMeta(type): _transport_registry["grpc"] = AssetGroupSignalServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetGroupSignalServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_group_path(customer_id: str, asset_group_id: str,) -> str: + def asset_group_path( + customer_id: str, + asset_group_id: str, + ) -> str: """Returns a fully-qualified asset_group string.""" return "customers/{customer_id}/assetGroups/{asset_group_id}".format( - customer_id=customer_id, asset_group_id=asset_group_id, + customer_id=customer_id, + asset_group_id=asset_group_id, ) @staticmethod @@ -207,7 +212,9 @@ def parse_asset_group_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_signal_path( - customer_id: str, asset_group_id: str, criterion_id: str, + customer_id: str, + asset_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified asset_group_signal string.""" return "customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}".format( @@ -226,7 +233,9 @@ def parse_asset_group_signal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -239,9 +248,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -250,9 +263,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -261,9 +278,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -272,10 +293,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -512,7 +537,10 @@ def mutate_asset_group_signals( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -521,7 +549,9 @@ def mutate_asset_group_signals( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/__init__.py index 2daf5c03e..36ced0aec 100644 --- a/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.py index e22d13e93..76ecae313 100644 --- a/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.py index 95491aafe..f79071954 100644 --- a/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_service/__init__.py b/google/ads/googleads/v14/services/services/asset_service/__init__.py index e302d8c39..690028f5d 100644 --- a/google/ads/googleads/v14/services/services/asset_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_service/client.py b/google/ads/googleads/v14/services/services/asset_service/client.py index 3e359a16f..498817e77 100644 --- a/google/ads/googleads/v14/services/services/asset_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AssetServiceClientMeta(type): _transport_registry["grpc"] = AssetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetServiceTransport]: """Returns an appropriate transport class. @@ -188,10 +189,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -204,11 +209,13 @@ def parse_asset_path(path: str) -> Dict[str, str]: @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -221,7 +228,9 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -234,9 +243,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -245,9 +258,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -256,9 +273,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -267,10 +288,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -503,7 +528,10 @@ def mutate_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -512,7 +540,9 @@ def mutate_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_service/transports/__init__.py index 34d952a46..d495d4aa2 100644 --- a/google/ads/googleads/v14/services/services/asset_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_service/transports/base.py index 6f87b23ab..ecb9edb95 100644 --- a/google/ads/googleads/v14/services/services/asset_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_service/transports/grpc.py index c0d76a9e5..81b5585df 100644 --- a/google/ads/googleads/v14/services/services/asset_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -137,8 +137,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -148,8 +150,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -232,8 +236,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_set_asset_service/__init__.py b/google/ads/googleads/v14/services/services/asset_set_asset_service/__init__.py index 03550f56e..f18d29239 100644 --- a/google/ads/googleads/v14/services/services/asset_set_asset_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_set_asset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_set_asset_service/client.py b/google/ads/googleads/v14/services/services/asset_set_asset_service/client.py index b86ef4b8c..cb528e28b 100644 --- a/google/ads/googleads/v14/services/services/asset_set_asset_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_set_asset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AssetSetAssetServiceClientMeta(type): _transport_registry["grpc"] = AssetSetAssetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetSetAssetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -200,10 +205,14 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -217,7 +226,9 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def asset_set_asset_path( - customer_id: str, asset_set_id: str, asset_id: str, + customer_id: str, + asset_set_id: str, + asset_id: str, ) -> str: """Returns a fully-qualified asset_set_asset string.""" return "customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}".format( @@ -236,7 +247,9 @@ def parse_asset_set_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -249,9 +262,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -260,9 +277,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -271,9 +292,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -282,10 +307,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -515,7 +544,10 @@ def mutate_asset_set_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -524,7 +556,9 @@ def mutate_asset_set_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/__init__.py index 1b833e2b6..0213a82d9 100644 --- a/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.py index 9403f9442..50e742007 100644 --- a/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.py index 64c76faa3..23fe11180 100644 --- a/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/asset_set_service/__init__.py b/google/ads/googleads/v14/services/services/asset_set_service/__init__.py index 4fa8475b0..fa90506a2 100644 --- a/google/ads/googleads/v14/services/services/asset_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_set_service/client.py b/google/ads/googleads/v14/services/services/asset_set_service/client.py index 0c1adcdef..ab8ccdac5 100644 --- a/google/ads/googleads/v14/services/services/asset_set_service/client.py +++ b/google/ads/googleads/v14/services/services/asset_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AssetSetServiceClientMeta(type): _transport_registry["grpc"] = AssetSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AssetSetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -475,7 +498,10 @@ def mutate_asset_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -484,7 +510,9 @@ def mutate_asset_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/asset_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/asset_set_service/transports/__init__.py index 6833e4e73..1df350e01 100644 --- a/google/ads/googleads/v14/services/services/asset_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/asset_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/asset_set_service/transports/base.py b/google/ads/googleads/v14/services/services/asset_set_service/transports/base.py index 9263e3373..e0433e5e9 100644 --- a/google/ads/googleads/v14/services/services/asset_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/asset_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/asset_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/asset_set_service/transports/grpc.py index 99d562332..79bdedc56 100644 --- a/google/ads/googleads/v14/services/services/asset_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/asset_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/audience_insights_service/__init__.py b/google/ads/googleads/v14/services/services/audience_insights_service/__init__.py index d1aebe6fa..4ccc85027 100644 --- a/google/ads/googleads/v14/services/services/audience_insights_service/__init__.py +++ b/google/ads/googleads/v14/services/services/audience_insights_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/audience_insights_service/client.py b/google/ads/googleads/v14/services/services/audience_insights_service/client.py index 569a9ffef..ffdece14f 100644 --- a/google/ads/googleads/v14/services/services/audience_insights_service/client.py +++ b/google/ads/googleads/v14/services/services/audience_insights_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class AudienceInsightsServiceClientMeta(type): _transport_registry["grpc"] = AudienceInsightsServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AudienceInsightsServiceTransport]: """Returns an appropriate transport class. @@ -193,7 +194,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -206,9 +209,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -217,9 +224,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -228,9 +239,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -239,10 +254,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -472,8 +491,10 @@ def generate_insights_finder_report( request, audience_insights_service.GenerateInsightsFinderReportRequest, ): - request = audience_insights_service.GenerateInsightsFinderReportRequest( - request + request = ( + audience_insights_service.GenerateInsightsFinderReportRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -500,7 +521,10 @@ def generate_insights_finder_report( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -591,8 +615,10 @@ def list_audience_insights_attributes( request, audience_insights_service.ListAudienceInsightsAttributesRequest, ): - request = audience_insights_service.ListAudienceInsightsAttributesRequest( - request + request = ( + audience_insights_service.ListAudienceInsightsAttributesRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -619,7 +645,10 @@ def list_audience_insights_attributes( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -648,7 +677,7 @@ def list_insights_eligible_dates( Args: request (Union[google.ads.googleads.v14.services.types.ListInsightsEligibleDatesRequest, dict, None]): The request object. Request message for - [AudienceInsightsService.ListAudienceInsightsDates][]. + [AudienceInsightsService.ListInsightsEligibleDates][google.ads.googleads.v14.services.AudienceInsightsService.ListInsightsEligibleDates]. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -658,7 +687,7 @@ def list_insights_eligible_dates( Returns: google.ads.googleads.v14.services.types.ListInsightsEligibleDatesResponse: Response message for - [AudienceInsightsService.ListAudienceInsightsDates][]. + [AudienceInsightsService.ListInsightsEligibleDates][google.ads.googleads.v14.services.AudienceInsightsService.ListInsightsEligibleDates]. """ # Create or coerce a protobuf request object. @@ -669,8 +698,10 @@ def list_insights_eligible_dates( if not isinstance( request, audience_insights_service.ListInsightsEligibleDatesRequest ): - request = audience_insights_service.ListInsightsEligibleDatesRequest( - request + request = ( + audience_insights_service.ListInsightsEligibleDatesRequest( + request + ) ) # Wrap the RPC method; this adds retry and timeout information, @@ -681,7 +712,10 @@ def list_insights_eligible_dates( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -798,7 +832,10 @@ def generate_audience_composition_insights( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -807,7 +844,9 @@ def generate_audience_composition_insights( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/audience_insights_service/transports/__init__.py b/google/ads/googleads/v14/services/services/audience_insights_service/transports/__init__.py index f519dd870..eb9e6677e 100644 --- a/google/ads/googleads/v14/services/services/audience_insights_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/audience_insights_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/audience_insights_service/transports/base.py b/google/ads/googleads/v14/services/services/audience_insights_service/transports/base.py index 6da9189ed..207bf37b0 100644 --- a/google/ads/googleads/v14/services/services/audience_insights_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/audience_insights_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -147,9 +149,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.py b/google/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.py index caaeec281..05bf2bdbf 100644 --- a/google/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -137,8 +137,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -148,8 +150,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -232,8 +236,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/audience_service/__init__.py b/google/ads/googleads/v14/services/services/audience_service/__init__.py index 55250d5eb..fc83e7b04 100644 --- a/google/ads/googleads/v14/services/services/audience_service/__init__.py +++ b/google/ads/googleads/v14/services/services/audience_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/audience_service/client.py b/google/ads/googleads/v14/services/services/audience_service/client.py index 23e31a899..02b6a397b 100644 --- a/google/ads/googleads/v14/services/services/audience_service/client.py +++ b/google/ads/googleads/v14/services/services/audience_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class AudienceServiceClientMeta(type): _transport_registry["grpc"] = AudienceServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[AudienceServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def audience_path(customer_id: str, audience_id: str,) -> str: + def audience_path( + customer_id: str, + audience_id: str, + ) -> str: """Returns a fully-qualified audience string.""" return "customers/{customer_id}/audiences/{audience_id}".format( - customer_id=customer_id, audience_id=audience_id, + customer_id=customer_id, + audience_id=audience_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_audience_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -474,7 +497,10 @@ def mutate_audiences( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -483,7 +509,9 @@ def mutate_audiences( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/audience_service/transports/__init__.py b/google/ads/googleads/v14/services/services/audience_service/transports/__init__.py index 7cc78268b..184e9d823 100644 --- a/google/ads/googleads/v14/services/services/audience_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/audience_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/audience_service/transports/base.py b/google/ads/googleads/v14/services/services/audience_service/transports/base.py index 9c67cbcea..1c09ce82b 100644 --- a/google/ads/googleads/v14/services/services/audience_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/audience_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/audience_service/transports/grpc.py b/google/ads/googleads/v14/services/services/audience_service/transports/grpc.py index c1b5b820b..457c67960 100644 --- a/google/ads/googleads/v14/services/services/audience_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/audience_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/batch_job_service/__init__.py b/google/ads/googleads/v14/services/services/batch_job_service/__init__.py index 00ce4ce46..54782e108 100644 --- a/google/ads/googleads/v14/services/services/batch_job_service/__init__.py +++ b/google/ads/googleads/v14/services/services/batch_job_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/batch_job_service/client.py b/google/ads/googleads/v14/services/services/batch_job_service/client.py index 30425da44..c4213d3db 100644 --- a/google/ads/googleads/v14/services/services/batch_job_service/client.py +++ b/google/ads/googleads/v14/services/services/batch_job_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class BatchJobServiceClientMeta(type): _transport_registry["grpc"] = BatchJobServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[BatchJobServiceTransport]: """Returns an appropriate transport class. @@ -191,11 +192,13 @@ def __exit__(self, type, value, traceback): @staticmethod def accessible_bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified accessible_bidding_strategy string.""" return "customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -208,10 +211,14 @@ def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def ad_path(customer_id: str, ad_id: str,) -> str: + def ad_path( + customer_id: str, + ad_id: str, + ) -> str: """Returns a fully-qualified ad string.""" return "customers/{customer_id}/ads/{ad_id}".format( - customer_id=customer_id, ad_id=ad_id, + customer_id=customer_id, + ad_id=ad_id, ) @staticmethod @@ -223,10 +230,14 @@ def parse_ad_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -240,11 +251,17 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_path( - customer_id: str, ad_group_id: str, ad_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, ) -> str: """Returns a fully-qualified ad_group_ad string.""" - return "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, ad_id=ad_id, + return ( + "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( + customer_id=customer_id, + ad_group_id=ad_group_id, + ad_id=ad_id, + ) ) @staticmethod @@ -258,7 +275,10 @@ def parse_ad_group_ad_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_label_path( - customer_id: str, ad_group_id: str, ad_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_ad_label string.""" return "customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}".format( @@ -279,7 +299,10 @@ def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_asset_path( - customer_id: str, ad_group_id: str, asset_id: str, field_type: str, + customer_id: str, + ad_group_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified ad_group_asset string.""" return "customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}".format( @@ -300,7 +323,9 @@ def parse_ad_group_asset_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_bid_modifier_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_bid_modifier string.""" return "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}".format( @@ -320,7 +345,9 @@ def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion string.""" return "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( @@ -364,7 +391,10 @@ def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_label_path( - customer_id: str, ad_group_id: str, criterion_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion_label string.""" return "customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}".format( @@ -385,7 +415,9 @@ def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_customizer_path( - customer_id: str, ad_group_id: str, customizer_attribute_id: str, + customer_id: str, + ad_group_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified ad_group_customizer string.""" return "customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}".format( @@ -405,7 +437,9 @@ def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_extension_setting_path( - customer_id: str, ad_group_id: str, extension_type: str, + customer_id: str, + ad_group_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified ad_group_extension_setting string.""" return "customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}".format( @@ -425,11 +459,15 @@ def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_feed_path( - customer_id: str, ad_group_id: str, feed_id: str, + customer_id: str, + ad_group_id: str, + feed_id: str, ) -> str: """Returns a fully-qualified ad_group_feed string.""" return "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, feed_id=feed_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + feed_id=feed_id, ) @staticmethod @@ -443,11 +481,15 @@ def parse_ad_group_feed_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_label_path( - customer_id: str, ad_group_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_label string.""" return "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, label_id=label_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + label_id=label_id, ) @staticmethod @@ -484,10 +526,14 @@ def parse_ad_parameter_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -499,10 +545,14 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_group_path(customer_id: str, asset_group_id: str,) -> str: + def asset_group_path( + customer_id: str, + asset_group_id: str, + ) -> str: """Returns a fully-qualified asset_group string.""" return "customers/{customer_id}/assetGroups/{asset_group_id}".format( - customer_id=customer_id, asset_group_id=asset_group_id, + customer_id=customer_id, + asset_group_id=asset_group_id, ) @staticmethod @@ -516,7 +566,10 @@ def parse_asset_group_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_asset_path( - customer_id: str, asset_group_id: str, asset_id: str, field_type: str, + customer_id: str, + asset_group_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified asset_group_asset string.""" return "customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}".format( @@ -537,7 +590,9 @@ def parse_asset_group_asset_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_listing_group_filter_path( - customer_id: str, asset_group_id: str, listing_group_filter_id: str, + customer_id: str, + asset_group_id: str, + listing_group_filter_id: str, ) -> str: """Returns a fully-qualified asset_group_listing_group_filter string.""" return "customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}".format( @@ -559,7 +614,9 @@ def parse_asset_group_listing_group_filter_path( @staticmethod def asset_group_signal_path( - customer_id: str, asset_group_id: str, criterion_id: str, + customer_id: str, + asset_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified asset_group_signal string.""" return "customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}".format( @@ -578,10 +635,14 @@ def parse_asset_group_signal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -595,7 +656,9 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def asset_set_asset_path( - customer_id: str, asset_set_id: str, asset_id: str, + customer_id: str, + asset_set_id: str, + asset_id: str, ) -> str: """Returns a fully-qualified asset_set_asset string.""" return "customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}".format( @@ -614,10 +677,14 @@ def parse_asset_set_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def audience_path(customer_id: str, audience_id: str,) -> str: + def audience_path( + customer_id: str, + audience_id: str, + ) -> str: """Returns a fully-qualified audience string.""" return "customers/{customer_id}/audiences/{audience_id}".format( - customer_id=customer_id, audience_id=audience_id, + customer_id=customer_id, + audience_id=audience_id, ) @staticmethod @@ -630,10 +697,14 @@ def parse_audience_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def batch_job_path(customer_id: str, batch_job_id: str,) -> str: + def batch_job_path( + customer_id: str, + batch_job_id: str, + ) -> str: """Returns a fully-qualified batch_job string.""" return "customers/{customer_id}/batchJobs/{batch_job_id}".format( - customer_id=customer_id, batch_job_id=batch_job_id, + customer_id=customer_id, + batch_job_id=batch_job_id, ) @staticmethod @@ -647,11 +718,13 @@ def parse_batch_job_path(path: str) -> Dict[str, str]: @staticmethod def bidding_data_exclusion_path( - customer_id: str, seasonality_event_id: str, + customer_id: str, + seasonality_event_id: str, ) -> str: """Returns a fully-qualified bidding_data_exclusion string.""" return "customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}".format( - customer_id=customer_id, seasonality_event_id=seasonality_event_id, + customer_id=customer_id, + seasonality_event_id=seasonality_event_id, ) @staticmethod @@ -665,11 +738,13 @@ def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: @staticmethod def bidding_seasonality_adjustment_path( - customer_id: str, seasonality_event_id: str, + customer_id: str, + seasonality_event_id: str, ) -> str: """Returns a fully-qualified bidding_seasonality_adjustment string.""" return "customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}".format( - customer_id=customer_id, seasonality_event_id=seasonality_event_id, + customer_id=customer_id, + seasonality_event_id=seasonality_event_id, ) @staticmethod @@ -683,11 +758,13 @@ def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: @staticmethod def bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified bidding_strategy string.""" return "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -700,10 +777,14 @@ def parse_bidding_strategy_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -717,7 +798,10 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_asset_path( - customer_id: str, campaign_id: str, asset_id: str, field_type: str, + customer_id: str, + campaign_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified campaign_asset string.""" return "customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}".format( @@ -738,7 +822,9 @@ def parse_campaign_asset_path(path: str) -> Dict[str, str]: @staticmethod def campaign_asset_set_path( - customer_id: str, campaign_id: str, asset_set_id: str, + customer_id: str, + campaign_id: str, + asset_set_id: str, ) -> str: """Returns a fully-qualified campaign_asset_set string.""" return "customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}".format( @@ -758,7 +844,9 @@ def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def campaign_bid_modifier_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_bid_modifier string.""" return "customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}".format( @@ -777,10 +865,14 @@ def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_budget_path(customer_id: str, campaign_budget_id: str,) -> str: + def campaign_budget_path( + customer_id: str, + campaign_budget_id: str, + ) -> str: """Returns a fully-qualified campaign_budget string.""" return "customers/{customer_id}/campaignBudgets/{campaign_budget_id}".format( - customer_id=customer_id, campaign_budget_id=campaign_budget_id, + customer_id=customer_id, + campaign_budget_id=campaign_budget_id, ) @staticmethod @@ -794,7 +886,10 @@ def parse_campaign_budget_path(path: str) -> Dict[str, str]: @staticmethod def campaign_conversion_goal_path( - customer_id: str, campaign_id: str, category: str, source: str, + customer_id: str, + campaign_id: str, + category: str, + source: str, ) -> str: """Returns a fully-qualified campaign_conversion_goal string.""" return "customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}".format( @@ -815,7 +910,9 @@ def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: @staticmethod def campaign_criterion_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_criterion string.""" return "customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}".format( @@ -835,7 +932,9 @@ def parse_campaign_criterion_path(path: str) -> Dict[str, str]: @staticmethod def campaign_customizer_path( - customer_id: str, campaign_id: str, customizer_attribute_id: str, + customer_id: str, + campaign_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified campaign_customizer string.""" return "customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}".format( @@ -855,7 +954,9 @@ def parse_campaign_customizer_path(path: str) -> Dict[str, str]: @staticmethod def campaign_draft_path( - customer_id: str, base_campaign_id: str, draft_id: str, + customer_id: str, + base_campaign_id: str, + draft_id: str, ) -> str: """Returns a fully-qualified campaign_draft string.""" return "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}".format( @@ -875,7 +976,9 @@ def parse_campaign_draft_path(path: str) -> Dict[str, str]: @staticmethod def campaign_extension_setting_path( - customer_id: str, campaign_id: str, extension_type: str, + customer_id: str, + campaign_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified campaign_extension_setting string.""" return "customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}".format( @@ -895,11 +998,15 @@ def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: @staticmethod def campaign_feed_path( - customer_id: str, campaign_id: str, feed_id: str, + customer_id: str, + campaign_id: str, + feed_id: str, ) -> str: """Returns a fully-qualified campaign_feed string.""" return "customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}".format( - customer_id=customer_id, campaign_id=campaign_id, feed_id=feed_id, + customer_id=customer_id, + campaign_id=campaign_id, + feed_id=feed_id, ) @staticmethod @@ -912,10 +1019,16 @@ def parse_campaign_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_group_path(customer_id: str, campaign_group_id: str,) -> str: + def campaign_group_path( + customer_id: str, + campaign_group_id: str, + ) -> str: """Returns a fully-qualified campaign_group string.""" - return "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( - customer_id=customer_id, campaign_group_id=campaign_group_id, + return ( + "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( + customer_id=customer_id, + campaign_group_id=campaign_group_id, + ) ) @staticmethod @@ -929,11 +1042,15 @@ def parse_campaign_group_path(path: str) -> Dict[str, str]: @staticmethod def campaign_label_path( - customer_id: str, campaign_id: str, label_id: str, + customer_id: str, + campaign_id: str, + label_id: str, ) -> str: """Returns a fully-qualified campaign_label string.""" return "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}".format( - customer_id=customer_id, campaign_id=campaign_id, label_id=label_id, + customer_id=customer_id, + campaign_id=campaign_id, + label_id=label_id, ) @staticmethod @@ -947,7 +1064,9 @@ def parse_campaign_label_path(path: str) -> Dict[str, str]: @staticmethod def campaign_shared_set_path( - customer_id: str, campaign_id: str, shared_set_id: str, + customer_id: str, + campaign_id: str, + shared_set_id: str, ) -> str: """Returns a fully-qualified campaign_shared_set string.""" return "customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}".format( @@ -967,11 +1086,13 @@ def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -985,7 +1106,8 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: @staticmethod def conversion_custom_variable_path( - customer_id: str, conversion_custom_variable_id: str, + customer_id: str, + conversion_custom_variable_id: str, ) -> str: """Returns a fully-qualified conversion_custom_variable string.""" return "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}".format( @@ -1004,11 +1126,13 @@ def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: @staticmethod def conversion_goal_campaign_config_path( - customer_id: str, campaign_id: str, + customer_id: str, + campaign_id: str, ) -> str: """Returns a fully-qualified conversion_goal_campaign_config string.""" return "customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -1022,7 +1146,8 @@ def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: @staticmethod def conversion_value_rule_path( - customer_id: str, conversion_value_rule_id: str, + customer_id: str, + conversion_value_rule_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule string.""" return "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}".format( @@ -1041,7 +1166,8 @@ def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: @staticmethod def conversion_value_rule_set_path( - customer_id: str, conversion_value_rule_set_id: str, + customer_id: str, + conversion_value_rule_set_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule_set string.""" return "customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}".format( @@ -1059,10 +1185,14 @@ def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def custom_conversion_goal_path(customer_id: str, goal_id: str,) -> str: + def custom_conversion_goal_path( + customer_id: str, + goal_id: str, + ) -> str: """Returns a fully-qualified custom_conversion_goal string.""" return "customers/{customer_id}/customConversionGoals/{goal_id}".format( - customer_id=customer_id, goal_id=goal_id, + customer_id=customer_id, + goal_id=goal_id, ) @staticmethod @@ -1075,9 +1205,13 @@ def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -1087,11 +1221,15 @@ def parse_customer_path(path: str) -> Dict[str, str]: @staticmethod def customer_asset_path( - customer_id: str, asset_id: str, field_type: str, + customer_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified customer_asset string.""" return "customers/{customer_id}/customerAssets/{asset_id}~{field_type}".format( - customer_id=customer_id, asset_id=asset_id, field_type=field_type, + customer_id=customer_id, + asset_id=asset_id, + field_type=field_type, ) @staticmethod @@ -1105,11 +1243,15 @@ def parse_customer_asset_path(path: str) -> Dict[str, str]: @staticmethod def customer_conversion_goal_path( - customer_id: str, category: str, source: str, + customer_id: str, + category: str, + source: str, ) -> str: """Returns a fully-qualified customer_conversion_goal string.""" return "customers/{customer_id}/customerConversionGoals/{category}~{source}".format( - customer_id=customer_id, category=category, source=source, + customer_id=customer_id, + category=category, + source=source, ) @staticmethod @@ -1123,7 +1265,8 @@ def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: @staticmethod def customer_customizer_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customer_customizer string.""" return "customers/{customer_id}/customerCustomizers/{customizer_attribute_id}".format( @@ -1142,11 +1285,13 @@ def parse_customer_customizer_path(path: str) -> Dict[str, str]: @staticmethod def customer_extension_setting_path( - customer_id: str, extension_type: str, + customer_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified customer_extension_setting string.""" return "customers/{customer_id}/customerExtensionSettings/{extension_type}".format( - customer_id=customer_id, extension_type=extension_type, + customer_id=customer_id, + extension_type=extension_type, ) @staticmethod @@ -1159,10 +1304,14 @@ def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_feed_path(customer_id: str, feed_id: str,) -> str: + def customer_feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified customer_feed string.""" return "customers/{customer_id}/customerFeeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -1175,10 +1324,14 @@ def parse_customer_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_label_path(customer_id: str, label_id: str,) -> str: + def customer_label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified customer_label string.""" return "customers/{customer_id}/customerLabels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -1192,11 +1345,13 @@ def parse_customer_label_path(path: str) -> Dict[str, str]: @staticmethod def customer_negative_criterion_path( - customer_id: str, criterion_id: str, + customer_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified customer_negative_criterion string.""" return "customers/{customer_id}/customerNegativeCriteria/{criterion_id}".format( - customer_id=customer_id, criterion_id=criterion_id, + customer_id=customer_id, + criterion_id=criterion_id, ) @staticmethod @@ -1210,7 +1365,8 @@ def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -1228,10 +1384,14 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def experiment_path(customer_id: str, trial_id: str,) -> str: + def experiment_path( + customer_id: str, + trial_id: str, + ) -> str: """Returns a fully-qualified experiment string.""" return "customers/{customer_id}/experiments/{trial_id}".format( - customer_id=customer_id, trial_id=trial_id, + customer_id=customer_id, + trial_id=trial_id, ) @staticmethod @@ -1245,7 +1405,9 @@ def parse_experiment_path(path: str) -> Dict[str, str]: @staticmethod def experiment_arm_path( - customer_id: str, trial_id: str, trial_arm_id: str, + customer_id: str, + trial_id: str, + trial_arm_id: str, ) -> str: """Returns a fully-qualified experiment_arm string.""" return "customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}".format( @@ -1264,10 +1426,16 @@ def parse_experiment_arm_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def extension_feed_item_path(customer_id: str, feed_item_id: str,) -> str: + def extension_feed_item_path( + customer_id: str, + feed_item_id: str, + ) -> str: """Returns a fully-qualified extension_feed_item string.""" - return "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( - customer_id=customer_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( + customer_id=customer_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -1280,10 +1448,14 @@ def parse_extension_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -1296,11 +1468,17 @@ def parse_feed_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_path( - customer_id: str, feed_id: str, feed_item_id: str, + customer_id: str, + feed_id: str, + feed_item_id: str, ) -> str: """Returns a fully-qualified feed_item string.""" - return "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( - customer_id=customer_id, feed_id=feed_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( + customer_id=customer_id, + feed_id=feed_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -1314,7 +1492,9 @@ def parse_feed_item_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_set_path( - customer_id: str, feed_id: str, feed_item_set_id: str, + customer_id: str, + feed_id: str, + feed_item_set_id: str, ) -> str: """Returns a fully-qualified feed_item_set string.""" return "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}".format( @@ -1384,7 +1564,9 @@ def parse_feed_item_target_path(path: str) -> Dict[str, str]: @staticmethod def feed_mapping_path( - customer_id: str, feed_id: str, feed_mapping_id: str, + customer_id: str, + feed_id: str, + feed_mapping_id: str, ) -> str: """Returns a fully-qualified feed_mapping string.""" return "customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}".format( @@ -1403,7 +1585,9 @@ def parse_feed_mapping_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -1416,10 +1600,14 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def keyword_plan_path(customer_id: str, keyword_plan_id: str,) -> str: + def keyword_plan_path( + customer_id: str, + keyword_plan_id: str, + ) -> str: """Returns a fully-qualified keyword_plan string.""" return "customers/{customer_id}/keywordPlans/{keyword_plan_id}".format( - customer_id=customer_id, keyword_plan_id=keyword_plan_id, + customer_id=customer_id, + keyword_plan_id=keyword_plan_id, ) @staticmethod @@ -1433,7 +1621,8 @@ def parse_keyword_plan_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_ad_group_path( - customer_id: str, keyword_plan_ad_group_id: str, + customer_id: str, + keyword_plan_ad_group_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group string.""" return "customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}".format( @@ -1452,7 +1641,8 @@ def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_ad_group_keyword_path( - customer_id: str, keyword_plan_ad_group_keyword_id: str, + customer_id: str, + keyword_plan_ad_group_keyword_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group_keyword string.""" return "customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}".format( @@ -1471,7 +1661,8 @@ def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_path( - customer_id: str, keyword_plan_campaign_id: str, + customer_id: str, + keyword_plan_campaign_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign string.""" return "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}".format( @@ -1490,7 +1681,8 @@ def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_keyword_path( - customer_id: str, keyword_plan_campaign_keyword_id: str, + customer_id: str, + keyword_plan_campaign_keyword_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign_keyword string.""" return "customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}".format( @@ -1508,10 +1700,14 @@ def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -1523,7 +1719,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def language_constant_path(criterion_id: str,) -> str: + def language_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified language_constant string.""" return "languageConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -1536,10 +1734,14 @@ def parse_language_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def media_file_path(customer_id: str, media_file_id: str,) -> str: + def media_file_path( + customer_id: str, + media_file_id: str, + ) -> str: """Returns a fully-qualified media_file string.""" return "customers/{customer_id}/mediaFiles/{media_file_id}".format( - customer_id=customer_id, media_file_id=media_file_id, + customer_id=customer_id, + media_file_id=media_file_id, ) @staticmethod @@ -1553,7 +1755,8 @@ def parse_media_file_path(path: str) -> Dict[str, str]: @staticmethod def remarketing_action_path( - customer_id: str, remarketing_action_id: str, + customer_id: str, + remarketing_action_id: str, ) -> str: """Returns a fully-qualified remarketing_action string.""" return "customers/{customer_id}/remarketingActions/{remarketing_action_id}".format( @@ -1572,7 +1775,9 @@ def parse_remarketing_action_path(path: str) -> Dict[str, str]: @staticmethod def shared_criterion_path( - customer_id: str, shared_set_id: str, criterion_id: str, + customer_id: str, + shared_set_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified shared_criterion string.""" return "customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}".format( @@ -1591,10 +1796,14 @@ def parse_shared_criterion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def shared_set_path(customer_id: str, shared_set_id: str,) -> str: + def shared_set_path( + customer_id: str, + shared_set_id: str, + ) -> str: """Returns a fully-qualified shared_set string.""" return "customers/{customer_id}/sharedSets/{shared_set_id}".format( - customer_id=customer_id, shared_set_id=shared_set_id, + customer_id=customer_id, + shared_set_id=shared_set_id, ) @staticmethod @@ -1607,10 +1816,14 @@ def parse_shared_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def smart_campaign_setting_path(customer_id: str, campaign_id: str,) -> str: + def smart_campaign_setting_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified smart_campaign_setting string.""" return "customers/{customer_id}/smartCampaignSettings/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -1623,10 +1836,16 @@ def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def user_interest_path(customer_id: str, user_interest_id: str,) -> str: + def user_interest_path( + customer_id: str, + user_interest_id: str, + ) -> str: """Returns a fully-qualified user_interest string.""" - return "customers/{customer_id}/userInterests/{user_interest_id}".format( - customer_id=customer_id, user_interest_id=user_interest_id, + return ( + "customers/{customer_id}/userInterests/{user_interest_id}".format( + customer_id=customer_id, + user_interest_id=user_interest_id, + ) ) @staticmethod @@ -1639,10 +1858,14 @@ def parse_user_interest_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def user_list_path(customer_id: str, user_list_id: str,) -> str: + def user_list_path( + customer_id: str, + user_list_id: str, + ) -> str: """Returns a fully-qualified user_list string.""" return "customers/{customer_id}/userLists/{user_list_id}".format( - customer_id=customer_id, user_list_id=user_list_id, + customer_id=customer_id, + user_list_id=user_list_id, ) @staticmethod @@ -1655,7 +1878,9 @@ def parse_user_list_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -1668,9 +1893,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -1679,9 +1908,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -1690,9 +1923,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -1701,10 +1938,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -1929,7 +2170,10 @@ def mutate_batch_job( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -2020,13 +2264,19 @@ def list_batch_job_results( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # This method is paged; wrap the response in a pager, which provides # an `__iter__` convenience method. response = pagers.ListBatchJobResultsPager( - method=rpc, request=request, response=response, metadata=metadata, + method=rpc, + request=request, + response=response, + metadata=metadata, ) # Done; return the response. @@ -2123,7 +2373,10 @@ def run_batch_job( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Wrap the response in an operation future. @@ -2257,7 +2510,10 @@ def add_batch_job_operations( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -2266,7 +2522,9 @@ def add_batch_job_operations( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/batch_job_service/pagers.py b/google/ads/googleads/v14/services/services/batch_job_service/pagers.py index f6707f243..7b3da6b75 100644 --- a/google/ads/googleads/v14/services/services/batch_job_service/pagers.py +++ b/google/ads/googleads/v14/services/services/batch_job_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/batch_job_service/transports/__init__.py b/google/ads/googleads/v14/services/services/batch_job_service/transports/__init__.py index 597ac3fc6..68ea9434f 100644 --- a/google/ads/googleads/v14/services/services/batch_job_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/batch_job_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/batch_job_service/transports/base.py b/google/ads/googleads/v14/services/services/batch_job_service/transports/base.py index 9dc72618c..3087d6b11 100644 --- a/google/ads/googleads/v14/services/services/batch_job_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/batch_job_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -148,9 +150,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/batch_job_service/transports/grpc.py b/google/ads/googleads/v14/services/services/batch_job_service/transports/grpc.py index 19ecb8940..0e0d89ce7 100644 --- a/google/ads/googleads/v14/services/services/batch_job_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/batch_job_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -138,8 +138,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -149,8 +151,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -233,8 +237,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/__init__.py b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/__init__.py index 722a42c20..8d9b60d86 100644 --- a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/__init__.py +++ b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.py b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.py index c65442339..b7f95811d 100644 --- a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.py +++ b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class BiddingDataExclusionServiceClientMeta(type): _transport_registry["grpc"] = BiddingDataExclusionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[BiddingDataExclusionServiceTransport]: """Returns an appropriate transport class. @@ -193,11 +194,13 @@ def __exit__(self, type, value, traceback): @staticmethod def bidding_data_exclusion_path( - customer_id: str, seasonality_event_id: str, + customer_id: str, + seasonality_event_id: str, ) -> str: """Returns a fully-qualified bidding_data_exclusion string.""" return "customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}".format( - customer_id=customer_id, seasonality_event_id=seasonality_event_id, + customer_id=customer_id, + seasonality_event_id=seasonality_event_id, ) @staticmethod @@ -210,10 +213,14 @@ def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -226,7 +233,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -239,9 +248,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -250,9 +263,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -261,9 +278,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -272,10 +293,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -512,7 +537,10 @@ def mutate_bidding_data_exclusions( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -521,7 +549,9 @@ def mutate_bidding_data_exclusions( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/__init__.py b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/__init__.py index f9aa18597..371df073f 100644 --- a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.py b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.py index 0a0d42bbf..c8126a025 100644 --- a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.py b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.py index 95ef4fd4c..0eaaf971d 100644 --- a/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/__init__.py b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/__init__.py index 591ac250c..ebf2e19c2 100644 --- a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/__init__.py +++ b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.py b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.py index 2f0f552cd..0e5bf76fa 100644 --- a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.py +++ b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -69,7 +69,8 @@ class BiddingSeasonalityAdjustmentServiceClientMeta(type): ] = BiddingSeasonalityAdjustmentServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[BiddingSeasonalityAdjustmentServiceTransport]: """Returns an appropriate transport class. @@ -195,11 +196,13 @@ def __exit__(self, type, value, traceback): @staticmethod def bidding_seasonality_adjustment_path( - customer_id: str, seasonality_event_id: str, + customer_id: str, + seasonality_event_id: str, ) -> str: """Returns a fully-qualified bidding_seasonality_adjustment string.""" return "customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}".format( - customer_id=customer_id, seasonality_event_id=seasonality_event_id, + customer_id=customer_id, + seasonality_event_id=seasonality_event_id, ) @staticmethod @@ -212,10 +215,14 @@ def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -228,7 +235,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -241,9 +250,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -252,9 +265,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -263,9 +280,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -274,10 +295,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -516,7 +541,10 @@ def mutate_bidding_seasonality_adjustments( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -525,7 +553,9 @@ def mutate_bidding_seasonality_adjustments( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/__init__.py b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/__init__.py index 9eeef9018..7bf941dea 100644 --- a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.py b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.py index 6484abcf8..ab83d9d0f 100644 --- a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.py b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.py index f5eabf929..0895baf12 100644 --- a/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/bidding_strategy_service/__init__.py b/google/ads/googleads/v14/services/services/bidding_strategy_service/__init__.py index e307b871e..6332feb0b 100644 --- a/google/ads/googleads/v14/services/services/bidding_strategy_service/__init__.py +++ b/google/ads/googleads/v14/services/services/bidding_strategy_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/bidding_strategy_service/client.py b/google/ads/googleads/v14/services/services/bidding_strategy_service/client.py index 9fd5d3345..121c3cc84 100644 --- a/google/ads/googleads/v14/services/services/bidding_strategy_service/client.py +++ b/google/ads/googleads/v14/services/services/bidding_strategy_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class BiddingStrategyServiceClientMeta(type): _transport_registry["grpc"] = BiddingStrategyServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[BiddingStrategyServiceTransport]: """Returns an appropriate transport class. @@ -189,11 +190,13 @@ def __exit__(self, type, value, traceback): @staticmethod def bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified bidding_strategy string.""" return "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -206,7 +209,9 @@ def parse_bidding_strategy_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -219,9 +224,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -230,9 +239,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -241,9 +254,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -252,10 +269,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -499,7 +520,10 @@ def mutate_bidding_strategies( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -508,7 +532,9 @@ def mutate_bidding_strategies( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/__init__.py b/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/__init__.py index de81b0205..73a786255 100644 --- a/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.py b/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.py index ce28a2b65..b17d5cac9 100644 --- a/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.py b/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.py index 63d6653f5..fc1129b68 100644 --- a/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/billing_setup_service/__init__.py b/google/ads/googleads/v14/services/services/billing_setup_service/__init__.py index 72bd54edb..18c50d5fe 100644 --- a/google/ads/googleads/v14/services/services/billing_setup_service/__init__.py +++ b/google/ads/googleads/v14/services/services/billing_setup_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/billing_setup_service/client.py b/google/ads/googleads/v14/services/services/billing_setup_service/client.py index 0aa34b3d3..218eace93 100644 --- a/google/ads/googleads/v14/services/services/billing_setup_service/client.py +++ b/google/ads/googleads/v14/services/services/billing_setup_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,7 +52,8 @@ class BillingSetupServiceClientMeta(type): _transport_registry["grpc"] = BillingSetupServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[BillingSetupServiceTransport]: """Returns an appropriate transport class. @@ -81,6 +82,7 @@ class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): generated monthly. Mutates: + The REMOVE operation cancels a pending billing setup. The CREATE operation creates a new billing setup. """ @@ -185,10 +187,16 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def billing_setup_path(customer_id: str, billing_setup_id: str,) -> str: + def billing_setup_path( + customer_id: str, + billing_setup_id: str, + ) -> str: """Returns a fully-qualified billing_setup string.""" - return "customers/{customer_id}/billingSetups/{billing_setup_id}".format( - customer_id=customer_id, billing_setup_id=billing_setup_id, + return ( + "customers/{customer_id}/billingSetups/{billing_setup_id}".format( + customer_id=customer_id, + billing_setup_id=billing_setup_id, + ) ) @staticmethod @@ -202,11 +210,13 @@ def parse_billing_setup_path(path: str) -> Dict[str, str]: @staticmethod def payments_account_path( - customer_id: str, payments_account_id: str, + customer_id: str, + payments_account_id: str, ) -> str: """Returns a fully-qualified payments_account string.""" return "customers/{customer_id}/paymentsAccounts/{payments_account_id}".format( - customer_id=customer_id, payments_account_id=payments_account_id, + customer_id=customer_id, + payments_account_id=payments_account_id, ) @staticmethod @@ -219,7 +229,9 @@ def parse_payments_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -232,9 +244,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -243,9 +259,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -254,9 +274,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -265,10 +289,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -496,7 +524,10 @@ def mutate_billing_setup( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -505,7 +536,9 @@ def mutate_billing_setup( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/billing_setup_service/transports/__init__.py b/google/ads/googleads/v14/services/services/billing_setup_service/transports/__init__.py index e4c1ba20c..9c43f4334 100644 --- a/google/ads/googleads/v14/services/services/billing_setup_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/billing_setup_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/billing_setup_service/transports/base.py b/google/ads/googleads/v14/services/services/billing_setup_service/transports/base.py index c879e51e6..4959c9cc7 100644 --- a/google/ads/googleads/v14/services/services/billing_setup_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/billing_setup_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.py b/google/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.py index a7a3a0b25..9bc080ce0 100644 --- a/google/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ class BillingSetupServiceGrpcTransport(BillingSetupServiceTransport): generated monthly. Mutates: + The REMOVE operation cancels a pending billing setup. The CREATE operation creates a new billing setup. @@ -144,8 +145,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -155,8 +158,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -239,8 +244,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_asset_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_asset_service/__init__.py index 8dfbd960f..2d303e11a 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_asset_service/client.py b/google/ads/googleads/v14/services/services/campaign_asset_service/client.py index f10c6d611..ce7c5c2a5 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CampaignAssetServiceClientMeta(type): _transport_registry["grpc"] = CampaignAssetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignAssetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -200,10 +205,14 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -217,7 +226,10 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_asset_path( - customer_id: str, campaign_id: str, asset_id: str, field_type: str, + customer_id: str, + campaign_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified campaign_asset string.""" return "customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}".format( @@ -237,7 +249,9 @@ def parse_campaign_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -250,9 +264,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -261,9 +279,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -272,9 +294,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -283,10 +309,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -522,7 +552,10 @@ def mutate_campaign_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -531,7 +564,9 @@ def mutate_campaign_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_asset_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_asset_service/transports/__init__.py index 143a934f4..b3abd72d8 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_asset_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_asset_service/transports/base.py index 5124a0cbb..4f3d26a1f 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.py index b6d6d6f77..af9571864 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_asset_set_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_asset_set_service/__init__.py index c96c3300d..b7fa09b4c 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_asset_set_service/client.py b/google/ads/googleads/v14/services/services/campaign_asset_set_service/client.py index 08638d20b..e14083a18 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_set_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CampaignAssetSetServiceClientMeta(type): _transport_registry["grpc"] = CampaignAssetSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignAssetSetServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -206,10 +211,14 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -223,7 +232,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_asset_set_path( - customer_id: str, campaign_id: str, asset_set_id: str, + customer_id: str, + campaign_id: str, + asset_set_id: str, ) -> str: """Returns a fully-qualified campaign_asset_set string.""" return "customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}".format( @@ -242,7 +253,9 @@ def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -255,9 +268,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -266,9 +283,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -277,9 +298,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -288,10 +313,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -528,7 +557,10 @@ def mutate_campaign_asset_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -537,7 +569,9 @@ def mutate_campaign_asset_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/__init__.py index e03b4d664..760b275a9 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.py index 8e1f8f1f8..a707af203 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.py index b7d301c24..ac6171d37 100644 --- a/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/__init__.py index 32e03a072..3a5db0a67 100644 --- a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.py b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.py index fd63d116f..668b5c887 100644 --- a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class CampaignBidModifierServiceClientMeta(type): _transport_registry["grpc"] = CampaignBidModifierServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignBidModifierServiceTransport]: """Returns an appropriate transport class. @@ -192,10 +193,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -209,7 +214,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_bid_modifier_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_bid_modifier string.""" return "customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}".format( @@ -228,7 +235,9 @@ def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -241,9 +250,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -252,9 +265,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -263,9 +280,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -274,10 +295,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -500,8 +525,10 @@ def mutate_campaign_bid_modifiers( request, campaign_bid_modifier_service.MutateCampaignBidModifiersRequest, ): - request = campaign_bid_modifier_service.MutateCampaignBidModifiersRequest( - request + request = ( + campaign_bid_modifier_service.MutateCampaignBidModifiersRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -526,7 +553,10 @@ def mutate_campaign_bid_modifiers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -535,7 +565,9 @@ def mutate_campaign_bid_modifiers( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/__init__.py index c5737d22b..453571e80 100644 --- a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.py index 336b7e418..2e6afba33 100644 --- a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.py index ce6183e29..32dfc2c5a 100644 --- a/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_budget_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_budget_service/__init__.py index dc744cac0..29172a131 100644 --- a/google/ads/googleads/v14/services/services/campaign_budget_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_budget_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_budget_service/client.py b/google/ads/googleads/v14/services/services/campaign_budget_service/client.py index 12d7b8277..3d7fc2bac 100644 --- a/google/ads/googleads/v14/services/services/campaign_budget_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_budget_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CampaignBudgetServiceClientMeta(type): _transport_registry["grpc"] = CampaignBudgetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignBudgetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_budget_path(customer_id: str, campaign_budget_id: str,) -> str: + def campaign_budget_path( + customer_id: str, + campaign_budget_id: str, + ) -> str: """Returns a fully-qualified campaign_budget string.""" return "customers/{customer_id}/campaignBudgets/{campaign_budget_id}".format( - customer_id=customer_id, campaign_budget_id=campaign_budget_id, + customer_id=customer_id, + campaign_budget_id=campaign_budget_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_campaign_budget_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -489,7 +512,10 @@ def mutate_campaign_budgets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -498,7 +524,9 @@ def mutate_campaign_budgets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_budget_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_budget_service/transports/__init__.py index 99b496066..ef6c0a040 100644 --- a/google/ads/googleads/v14/services/services/campaign_budget_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_budget_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_budget_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_budget_service/transports/base.py index a9dac7d23..f1ecd8fda 100644 --- a/google/ads/googleads/v14/services/services/campaign_budget_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_budget_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.py index 07fb61ea8..043d7103c 100644 --- a/google/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/__init__.py index d7ec20d29..0ea56c3cd 100644 --- a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.py b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.py index b99f40f67..7878d960b 100644 --- a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,8 @@ class CampaignConversionGoalServiceClientMeta(type): _transport_registry["grpc"] = CampaignConversionGoalServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignConversionGoalServiceTransport]: """Returns an appropriate transport class. @@ -191,10 +192,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -208,7 +213,10 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_conversion_goal_path( - customer_id: str, campaign_id: str, category: str, source: str, + customer_id: str, + campaign_id: str, + category: str, + source: str, ) -> str: """Returns a fully-qualified campaign_conversion_goal string.""" return "customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}".format( @@ -228,7 +236,9 @@ def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -241,9 +251,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -252,9 +266,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -263,9 +281,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -274,10 +296,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -516,7 +542,10 @@ def mutate_campaign_conversion_goals( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -525,7 +554,9 @@ def mutate_campaign_conversion_goals( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/__init__.py index 0a3de3382..9b9b3dc10 100644 --- a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.py index 996a146a8..e6ab6e9fe 100644 --- a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.py index 1898f2e63..7ca6078c3 100644 --- a/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_criterion_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_criterion_service/__init__.py index ae1beb5c7..a50cf27ff 100644 --- a/google/ads/googleads/v14/services/services/campaign_criterion_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_criterion_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_criterion_service/client.py b/google/ads/googleads/v14/services/services/campaign_criterion_service/client.py index 8b63fe666..a84c36205 100644 --- a/google/ads/googleads/v14/services/services/campaign_criterion_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_criterion_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CampaignCriterionServiceClientMeta(type): _transport_registry["grpc"] = CampaignCriterionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignCriterionServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -207,7 +212,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_criterion_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_criterion string.""" return "customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}".format( @@ -226,7 +233,9 @@ def parse_campaign_criterion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -239,9 +248,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -250,9 +263,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -261,9 +278,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -272,10 +293,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -524,7 +549,10 @@ def mutate_campaign_criteria( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -533,7 +561,9 @@ def mutate_campaign_criteria( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/__init__.py index df06061bf..cf4599463 100644 --- a/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.py index c48118595..4cdbb8483 100644 --- a/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.py index 2e06dec59..a9a125a32 100644 --- a/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_customizer_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_customizer_service/__init__.py index 0417bca34..6adf91126 100644 --- a/google/ads/googleads/v14/services/services/campaign_customizer_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_customizer_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_customizer_service/client.py b/google/ads/googleads/v14/services/services/campaign_customizer_service/client.py index 25985b8b1..87314c50b 100644 --- a/google/ads/googleads/v14/services/services/campaign_customizer_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_customizer_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CampaignCustomizerServiceClientMeta(type): _transport_registry["grpc"] = CampaignCustomizerServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignCustomizerServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -207,7 +212,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_customizer_path( - customer_id: str, campaign_id: str, customizer_attribute_id: str, + customer_id: str, + campaign_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified campaign_customizer string.""" return "customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}".format( @@ -227,7 +234,8 @@ def parse_campaign_customizer_path(path: str) -> Dict[str, str]: @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -245,7 +253,9 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -258,9 +268,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -269,9 +283,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -280,9 +298,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -291,10 +313,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -507,8 +533,10 @@ def mutate_campaign_customizers( request, campaign_customizer_service.MutateCampaignCustomizersRequest, ): - request = campaign_customizer_service.MutateCampaignCustomizersRequest( - request + request = ( + campaign_customizer_service.MutateCampaignCustomizersRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -533,7 +561,10 @@ def mutate_campaign_customizers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -542,7 +573,9 @@ def mutate_campaign_customizers( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/__init__.py index 368c7da93..8eee1d5d3 100644 --- a/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.py index 5285cb8da..e0d6ff854 100644 --- a/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.py index 50b73f7e3..4da2e902d 100644 --- a/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -137,8 +137,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -148,8 +150,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -232,8 +236,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_draft_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_draft_service/__init__.py index 4bd4221e9..4e71171a9 100644 --- a/google/ads/googleads/v14/services/services/campaign_draft_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_draft_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_draft_service/client.py b/google/ads/googleads/v14/services/services/campaign_draft_service/client.py index 001105c6c..647c19be0 100644 --- a/google/ads/googleads/v14/services/services/campaign_draft_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_draft_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,7 +68,8 @@ class CampaignDraftServiceClientMeta(type): _transport_registry["grpc"] = CampaignDraftServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignDraftServiceTransport]: """Returns an appropriate transport class. @@ -191,10 +192,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -208,7 +213,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_draft_path( - customer_id: str, base_campaign_id: str, draft_id: str, + customer_id: str, + base_campaign_id: str, + draft_id: str, ) -> str: """Returns a fully-qualified campaign_draft string.""" return "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}".format( @@ -227,7 +234,9 @@ def parse_campaign_draft_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -240,9 +249,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -251,9 +264,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -262,9 +279,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -273,10 +294,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -512,7 +537,10 @@ def mutate_campaign_drafts( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -619,7 +647,10 @@ def promote_campaign_draft( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Wrap the response in an operation future. @@ -698,8 +729,10 @@ def list_campaign_draft_async_errors( if not isinstance( request, campaign_draft_service.ListCampaignDraftAsyncErrorsRequest ): - request = campaign_draft_service.ListCampaignDraftAsyncErrorsRequest( - request + request = ( + campaign_draft_service.ListCampaignDraftAsyncErrorsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -722,13 +755,19 @@ def list_campaign_draft_async_errors( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # This method is paged; wrap the response in a pager, which provides # an `__iter__` convenience method. response = pagers.ListCampaignDraftAsyncErrorsPager( - method=rpc, request=request, response=response, metadata=metadata, + method=rpc, + request=request, + response=response, + metadata=metadata, ) # Done; return the response. @@ -737,7 +776,9 @@ def list_campaign_draft_async_errors( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_draft_service/pagers.py b/google/ads/googleads/v14/services/services/campaign_draft_service/pagers.py index 804374063..f7a528004 100644 --- a/google/ads/googleads/v14/services/services/campaign_draft_service/pagers.py +++ b/google/ads/googleads/v14/services/services/campaign_draft_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,8 +59,8 @@ def __init__( sent along with the request as metadata. """ self._method = method - self._request = campaign_draft_service.ListCampaignDraftAsyncErrorsRequest( - request + self._request = ( + campaign_draft_service.ListCampaignDraftAsyncErrorsRequest(request) ) self._response = response self._metadata = metadata diff --git a/google/ads/googleads/v14/services/services/campaign_draft_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_draft_service/transports/__init__.py index 84e265bb4..66508c21b 100644 --- a/google/ads/googleads/v14/services/services/campaign_draft_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_draft_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_draft_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_draft_service/transports/base.py index f7314896f..857d32b74 100644 --- a/google/ads/googleads/v14/services/services/campaign_draft_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_draft_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -143,9 +145,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.py index 8580aff5e..2f51e10fb 100644 --- a/google/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -138,8 +138,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -149,8 +151,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -233,8 +237,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/__init__.py index a0b7711d8..ebaf27137 100644 --- a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/client.py b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/client.py index 96d155d63..4365ef3f0 100644 --- a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class CampaignExtensionSettingServiceClientMeta(type): _transport_registry["grpc"] = CampaignExtensionSettingServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignExtensionSettingServiceTransport]: """Returns an appropriate transport class. @@ -192,10 +193,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -209,7 +214,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_extension_setting_path( - customer_id: str, campaign_id: str, extension_type: str, + customer_id: str, + campaign_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified campaign_extension_setting string.""" return "customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}".format( @@ -228,10 +235,16 @@ def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def extension_feed_item_path(customer_id: str, feed_item_id: str,) -> str: + def extension_feed_item_path( + customer_id: str, + feed_item_id: str, + ) -> str: """Returns a fully-qualified extension_feed_item string.""" - return "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( - customer_id=customer_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( + customer_id=customer_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -244,7 +257,9 @@ def parse_extension_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -257,9 +272,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -268,9 +287,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -279,9 +302,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -290,10 +317,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -545,7 +576,10 @@ def mutate_campaign_extension_settings( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -554,7 +588,9 @@ def mutate_campaign_extension_settings( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/__init__.py index 978e99905..b59b9b792 100644 --- a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.py index d93087bed..b49c147b3 100644 --- a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.py index df096acb9..55d8977c7 100644 --- a/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_feed_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_feed_service/__init__.py index 128850746..1a9d0d085 100644 --- a/google/ads/googleads/v14/services/services/campaign_feed_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_feed_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_feed_service/client.py b/google/ads/googleads/v14/services/services/campaign_feed_service/client.py index 5324d2d93..e7c6f9e89 100644 --- a/google/ads/googleads/v14/services/services/campaign_feed_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_feed_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CampaignFeedServiceClientMeta(type): _transport_registry["grpc"] = CampaignFeedServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignFeedServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -202,11 +207,15 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_feed_path( - customer_id: str, campaign_id: str, feed_id: str, + customer_id: str, + campaign_id: str, + feed_id: str, ) -> str: """Returns a fully-qualified campaign_feed string.""" return "customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}".format( - customer_id=customer_id, campaign_id=campaign_id, feed_id=feed_id, + customer_id=customer_id, + campaign_id=campaign_id, + feed_id=feed_id, ) @staticmethod @@ -219,10 +228,14 @@ def parse_campaign_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -234,7 +247,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -247,9 +262,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -258,9 +277,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -269,9 +292,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -280,10 +307,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -521,7 +552,10 @@ def mutate_campaign_feeds( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -530,7 +564,9 @@ def mutate_campaign_feeds( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_feed_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_feed_service/transports/__init__.py index eb15f1c86..834872dbb 100644 --- a/google/ads/googleads/v14/services/services/campaign_feed_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_feed_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_feed_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_feed_service/transports/base.py index 4af2cd266..cea13c1db 100644 --- a/google/ads/googleads/v14/services/services/campaign_feed_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_feed_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.py index 978f02d76..2d1bbea4f 100644 --- a/google/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_group_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_group_service/__init__.py index 7b821d363..1242adb2d 100644 --- a/google/ads/googleads/v14/services/services/campaign_group_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_group_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_group_service/client.py b/google/ads/googleads/v14/services/services/campaign_group_service/client.py index 807d7b080..9646262c7 100644 --- a/google/ads/googleads/v14/services/services/campaign_group_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_group_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CampaignGroupServiceClientMeta(type): _transport_registry["grpc"] = CampaignGroupServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignGroupServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,16 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_group_path(customer_id: str, campaign_group_id: str,) -> str: + def campaign_group_path( + customer_id: str, + campaign_group_id: str, + ) -> str: """Returns a fully-qualified campaign_group string.""" - return "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( - customer_id=customer_id, campaign_group_id=campaign_group_id, + return ( + "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( + customer_id=customer_id, + campaign_group_id=campaign_group_id, + ) ) @staticmethod @@ -201,7 +208,9 @@ def parse_campaign_group_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +223,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +238,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +253,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +268,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -480,7 +505,10 @@ def mutate_campaign_groups( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -489,7 +517,9 @@ def mutate_campaign_groups( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_group_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_group_service/transports/__init__.py index a7c24ee9f..ce0f1379d 100644 --- a/google/ads/googleads/v14/services/services/campaign_group_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_group_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_group_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_group_service/transports/base.py index a85db88f8..9e9ae18d0 100644 --- a/google/ads/googleads/v14/services/services/campaign_group_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_group_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.py index a690204a5..1ea22d423 100644 --- a/google/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_label_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_label_service/__init__.py index d2465e9d8..139ea217d 100644 --- a/google/ads/googleads/v14/services/services/campaign_label_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_label_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_label_service/client.py b/google/ads/googleads/v14/services/services/campaign_label_service/client.py index ac640eaf8..542d031e1 100644 --- a/google/ads/googleads/v14/services/services/campaign_label_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_label_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CampaignLabelServiceClientMeta(type): _transport_registry["grpc"] = CampaignLabelServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignLabelServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -202,11 +207,15 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_label_path( - customer_id: str, campaign_id: str, label_id: str, + customer_id: str, + campaign_id: str, + label_id: str, ) -> str: """Returns a fully-qualified campaign_label string.""" return "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}".format( - customer_id=customer_id, campaign_id=campaign_id, label_id=label_id, + customer_id=customer_id, + campaign_id=campaign_id, + label_id=label_id, ) @staticmethod @@ -219,10 +228,14 @@ def parse_campaign_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -234,7 +247,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -247,9 +262,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -258,9 +277,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -269,9 +292,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -280,10 +307,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -519,7 +550,10 @@ def mutate_campaign_labels( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -528,7 +562,9 @@ def mutate_campaign_labels( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_label_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_label_service/transports/__init__.py index 4856231ab..ac170d8cb 100644 --- a/google/ads/googleads/v14/services/services/campaign_label_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_label_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_label_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_label_service/transports/base.py index 71c6f2191..dcaaba595 100644 --- a/google/ads/googleads/v14/services/services/campaign_label_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_label_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.py index cb64d6377..4310e0d49 100644 --- a/google/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_service/__init__.py index fc70ff486..a82480a3c 100644 --- a/google/ads/googleads/v14/services/services/campaign_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_service/client.py b/google/ads/googleads/v14/services/services/campaign_service/client.py index 7660ae69f..34d2d8282 100644 --- a/google/ads/googleads/v14/services/services/campaign_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CampaignServiceClientMeta(type): _transport_registry["grpc"] = CampaignServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignServiceTransport]: """Returns an appropriate transport class. @@ -186,11 +187,13 @@ def __exit__(self, type, value, traceback): @staticmethod def accessible_bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified accessible_bidding_strategy string.""" return "customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -203,10 +206,14 @@ def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -220,11 +227,13 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified bidding_strategy string.""" return "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -237,10 +246,14 @@ def parse_bidding_strategy_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -253,10 +266,14 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_budget_path(customer_id: str, campaign_budget_id: str,) -> str: + def campaign_budget_path( + customer_id: str, + campaign_budget_id: str, + ) -> str: """Returns a fully-qualified campaign_budget string.""" return "customers/{customer_id}/campaignBudgets/{campaign_budget_id}".format( - customer_id=customer_id, campaign_budget_id=campaign_budget_id, + customer_id=customer_id, + campaign_budget_id=campaign_budget_id, ) @staticmethod @@ -269,10 +286,16 @@ def parse_campaign_budget_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_group_path(customer_id: str, campaign_group_id: str,) -> str: + def campaign_group_path( + customer_id: str, + campaign_group_id: str, + ) -> str: """Returns a fully-qualified campaign_group string.""" - return "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( - customer_id=customer_id, campaign_group_id=campaign_group_id, + return ( + "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( + customer_id=customer_id, + campaign_group_id=campaign_group_id, + ) ) @staticmethod @@ -286,11 +309,15 @@ def parse_campaign_group_path(path: str) -> Dict[str, str]: @staticmethod def campaign_label_path( - customer_id: str, campaign_id: str, label_id: str, + customer_id: str, + campaign_id: str, + label_id: str, ) -> str: """Returns a fully-qualified campaign_label string.""" return "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}".format( - customer_id=customer_id, campaign_id=campaign_id, label_id=label_id, + customer_id=customer_id, + campaign_id=campaign_id, + label_id=label_id, ) @staticmethod @@ -304,11 +331,13 @@ def parse_campaign_label_path(path: str) -> Dict[str, str]: @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -321,10 +350,14 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -336,7 +369,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -349,9 +384,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -360,9 +399,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -371,9 +414,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -382,10 +429,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -623,7 +674,10 @@ def mutate_campaigns( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -632,7 +686,9 @@ def mutate_campaigns( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_service/transports/__init__.py index 68425b5c3..05613599f 100644 --- a/google/ads/googleads/v14/services/services/campaign_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_service/transports/base.py index d05acf581..48ecd57b3 100644 --- a/google/ads/googleads/v14/services/services/campaign_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_service/transports/grpc.py index d3dc87ba0..f7c788656 100644 --- a/google/ads/googleads/v14/services/services/campaign_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/campaign_shared_set_service/__init__.py b/google/ads/googleads/v14/services/services/campaign_shared_set_service/__init__.py index 1a5b7996c..37179dc0a 100644 --- a/google/ads/googleads/v14/services/services/campaign_shared_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_shared_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_shared_set_service/client.py b/google/ads/googleads/v14/services/services/campaign_shared_set_service/client.py index 4c23c6324..8a857650b 100644 --- a/google/ads/googleads/v14/services/services/campaign_shared_set_service/client.py +++ b/google/ads/googleads/v14/services/services/campaign_shared_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CampaignSharedSetServiceClientMeta(type): _transport_registry["grpc"] = CampaignSharedSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CampaignSharedSetServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -207,7 +212,9 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_shared_set_path( - customer_id: str, campaign_id: str, shared_set_id: str, + customer_id: str, + campaign_id: str, + shared_set_id: str, ) -> str: """Returns a fully-qualified campaign_shared_set string.""" return "customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}".format( @@ -226,10 +233,14 @@ def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def shared_set_path(customer_id: str, shared_set_id: str,) -> str: + def shared_set_path( + customer_id: str, + shared_set_id: str, + ) -> str: """Returns a fully-qualified shared_set string.""" return "customers/{customer_id}/sharedSets/{shared_set_id}".format( - customer_id=customer_id, shared_set_id=shared_set_id, + customer_id=customer_id, + shared_set_id=shared_set_id, ) @staticmethod @@ -242,7 +253,9 @@ def parse_shared_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -255,9 +268,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -266,9 +283,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -277,9 +298,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -288,10 +313,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -513,8 +542,10 @@ def mutate_campaign_shared_sets( if not isinstance( request, campaign_shared_set_service.MutateCampaignSharedSetsRequest ): - request = campaign_shared_set_service.MutateCampaignSharedSetsRequest( - request + request = ( + campaign_shared_set_service.MutateCampaignSharedSetsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -539,7 +570,10 @@ def mutate_campaign_shared_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -548,7 +582,9 @@ def mutate_campaign_shared_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/__init__.py index eb63234e2..efb3695ae 100644 --- a/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.py b/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.py index f40fe8bc1..1dd891214 100644 --- a/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.py index d601b1248..ed2374766 100644 --- a/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_action_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_action_service/__init__.py index ac86a27da..bc563dd77 100644 --- a/google/ads/googleads/v14/services/services/conversion_action_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_action_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_action_service/client.py b/google/ads/googleads/v14/services/services/conversion_action_service/client.py index 2e7bbff33..40c6ff3e1 100644 --- a/google/ads/googleads/v14/services/services/conversion_action_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_action_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class ConversionActionServiceClientMeta(type): _transport_registry["grpc"] = ConversionActionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionActionServiceTransport]: """Returns an appropriate transport class. @@ -191,11 +192,13 @@ def __exit__(self, type, value, traceback): @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -208,9 +211,13 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -219,7 +226,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -232,9 +241,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -243,9 +256,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -254,9 +271,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -265,10 +286,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -511,7 +536,10 @@ def mutate_conversion_actions( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -520,7 +548,9 @@ def mutate_conversion_actions( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_action_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_action_service/transports/__init__.py index 9d1bd00ca..32d21c54b 100644 --- a/google/ads/googleads/v14/services/services/conversion_action_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_action_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_action_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_action_service/transports/base.py index 563283dc8..9825f9b70 100644 --- a/google/ads/googleads/v14/services/services/conversion_action_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_action_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.py index fd764c080..0d9748d48 100644 --- a/google/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/__init__.py index f204c61b3..0b7054672 100644 --- a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.py b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.py index 469fbe778..774c2ad09 100644 --- a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class ConversionAdjustmentUploadServiceClientMeta(type): _transport_registry["grpc"] = ConversionAdjustmentUploadServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionAdjustmentUploadServiceTransport]: """Returns an appropriate transport class. @@ -192,7 +193,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -205,9 +208,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -216,9 +223,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -227,9 +238,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -238,10 +253,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -503,7 +522,10 @@ def upload_conversion_adjustments( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -512,7 +534,9 @@ def upload_conversion_adjustments( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/__init__.py index 0dcd2c8f8..79baf0839 100644 --- a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.py index ae5f69e99..59698a271 100644 --- a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.py index a78100143..29202e462 100644 --- a/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/__init__.py index 399bfed68..7e6fb26f4 100644 --- a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/client.py b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/client.py index 1548eb7a1..8e49b8ccd 100644 --- a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class ConversionCustomVariableServiceClientMeta(type): _transport_registry["grpc"] = ConversionCustomVariableServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionCustomVariableServiceTransport]: """Returns an appropriate transport class. @@ -193,7 +194,8 @@ def __exit__(self, type, value, traceback): @staticmethod def conversion_custom_variable_path( - customer_id: str, conversion_custom_variable_id: str, + customer_id: str, + conversion_custom_variable_id: str, ) -> str: """Returns a fully-qualified conversion_custom_variable string.""" return "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}".format( @@ -211,9 +213,13 @@ def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -222,7 +228,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -235,9 +243,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -246,9 +258,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -257,9 +273,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -268,10 +288,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -515,7 +539,10 @@ def mutate_conversion_custom_variables( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -524,7 +551,9 @@ def mutate_conversion_custom_variables( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/__init__.py index 447ccef8a..be8e7db16 100644 --- a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.py index 66e761878..3fb42d17f 100644 --- a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.py index dca64b244..3dc770713 100644 --- a/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/__init__.py index 39608668b..4607b62cf 100644 --- a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.py b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.py index 1984a8ce8..9050ff3b5 100644 --- a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,7 +68,8 @@ class ConversionGoalCampaignConfigServiceClientMeta(type): ] = ConversionGoalCampaignConfigServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionGoalCampaignConfigServiceTransport]: """Returns an appropriate transport class. @@ -193,10 +194,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -210,11 +215,13 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def conversion_goal_campaign_config_path( - customer_id: str, campaign_id: str, + customer_id: str, + campaign_id: str, ) -> str: """Returns a fully-qualified conversion_goal_campaign_config string.""" return "customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -227,10 +234,14 @@ def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def custom_conversion_goal_path(customer_id: str, goal_id: str,) -> str: + def custom_conversion_goal_path( + customer_id: str, + goal_id: str, + ) -> str: """Returns a fully-qualified custom_conversion_goal string.""" return "customers/{customer_id}/customConversionGoals/{goal_id}".format( - customer_id=customer_id, goal_id=goal_id, + customer_id=customer_id, + goal_id=goal_id, ) @staticmethod @@ -243,7 +254,9 @@ def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -256,9 +269,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -267,9 +284,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -278,9 +299,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -289,10 +314,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -458,7 +487,7 @@ def mutate_conversion_goal_campaign_configs( Args: request (Union[google.ads.googleads.v14.services.types.MutateConversionGoalCampaignConfigsRequest, dict, None]): The request object. Request message for - [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfig][]. + [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfigs][google.ads.googleads.v14.services.ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfigs]. customer_id (str): Required. The ID of the customer whose custom conversion goals are being @@ -531,7 +560,10 @@ def mutate_conversion_goal_campaign_configs( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -540,7 +572,9 @@ def mutate_conversion_goal_campaign_configs( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/__init__.py index f50adeb87..3c97bd854 100644 --- a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.py index 18104b44c..75b346fa7 100644 --- a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.py index b19c34c08..d62f704ce 100644 --- a/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_upload_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_upload_service/__init__.py index be2a8432b..ce31f7ec4 100644 --- a/google/ads/googleads/v14/services/services/conversion_upload_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_upload_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_upload_service/client.py b/google/ads/googleads/v14/services/services/conversion_upload_service/client.py index f6fe2642f..ae90d9611 100644 --- a/google/ads/googleads/v14/services/services/conversion_upload_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_upload_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class ConversionUploadServiceClientMeta(type): _transport_registry["grpc"] = ConversionUploadServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionUploadServiceTransport]: """Returns an appropriate transport class. @@ -191,7 +192,8 @@ def __exit__(self, type, value, traceback): @staticmethod def conversion_custom_variable_path( - customer_id: str, conversion_custom_variable_id: str, + customer_id: str, + conversion_custom_variable_id: str, ) -> str: """Returns a fully-qualified conversion_custom_variable string.""" return "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}".format( @@ -209,7 +211,9 @@ def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -222,9 +226,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -233,9 +241,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -244,9 +256,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -255,10 +271,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -512,7 +532,10 @@ def upload_click_conversions( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -631,7 +654,10 @@ def upload_call_conversions( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -640,7 +666,9 @@ def upload_call_conversions( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_upload_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_upload_service/transports/__init__.py index dd05c72eb..86af1e616 100644 --- a/google/ads/googleads/v14/services/services/conversion_upload_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_upload_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_upload_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_upload_service/transports/base.py index 59e15131e..a78ab3d32 100644 --- a/google/ads/googleads/v14/services/services/conversion_upload_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_upload_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -137,9 +139,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.py index 1eddb2231..0596b58d4 100644 --- a/google/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_value_rule_service/__init__.py index c30b50e20..e1b48e51d 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_service/client.py b/google/ads/googleads/v14/services/services/conversion_value_rule_service/client.py index 4170a2d50..318a1cb98 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class ConversionValueRuleServiceClientMeta(type): _transport_registry["grpc"] = ConversionValueRuleServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionValueRuleServiceTransport]: """Returns an appropriate transport class. @@ -193,7 +194,8 @@ def __exit__(self, type, value, traceback): @staticmethod def conversion_value_rule_path( - customer_id: str, conversion_value_rule_id: str, + customer_id: str, + conversion_value_rule_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule string.""" return "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}".format( @@ -211,9 +213,13 @@ def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -222,7 +228,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -235,10 +243,16 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def user_interest_path(customer_id: str, user_interest_id: str,) -> str: + def user_interest_path( + customer_id: str, + user_interest_id: str, + ) -> str: """Returns a fully-qualified user_interest string.""" - return "customers/{customer_id}/userInterests/{user_interest_id}".format( - customer_id=customer_id, user_interest_id=user_interest_id, + return ( + "customers/{customer_id}/userInterests/{user_interest_id}".format( + customer_id=customer_id, + user_interest_id=user_interest_id, + ) ) @staticmethod @@ -251,10 +265,14 @@ def parse_user_interest_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def user_list_path(customer_id: str, user_list_id: str,) -> str: + def user_list_path( + customer_id: str, + user_list_id: str, + ) -> str: """Returns a fully-qualified user_list string.""" return "customers/{customer_id}/userLists/{user_list_id}".format( - customer_id=customer_id, user_list_id=user_list_id, + customer_id=customer_id, + user_list_id=user_list_id, ) @staticmethod @@ -267,7 +285,9 @@ def parse_user_list_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -280,9 +300,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -291,9 +315,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -302,9 +330,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -313,10 +345,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -529,8 +565,10 @@ def mutate_conversion_value_rules( request, conversion_value_rule_service.MutateConversionValueRulesRequest, ): - request = conversion_value_rule_service.MutateConversionValueRulesRequest( - request + request = ( + conversion_value_rule_service.MutateConversionValueRulesRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -555,7 +593,10 @@ def mutate_conversion_value_rules( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -564,7 +605,9 @@ def mutate_conversion_value_rules( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/__init__.py index 778e3572c..cfb6eaabd 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.py index 488d3f322..b5002ad4c 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.py index fc25628e7..9d9b92138 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/__init__.py b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/__init__.py index 51ec19bc9..b698cf653 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.py b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.py index a24fd2b58..cd6455c78 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class ConversionValueRuleSetServiceClientMeta(type): _transport_registry["grpc"] = ConversionValueRuleSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ConversionValueRuleSetServiceTransport]: """Returns an appropriate transport class. @@ -192,10 +193,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -209,7 +214,8 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def conversion_value_rule_path( - customer_id: str, conversion_value_rule_id: str, + customer_id: str, + conversion_value_rule_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule string.""" return "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}".format( @@ -228,7 +234,8 @@ def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: @staticmethod def conversion_value_rule_set_path( - customer_id: str, conversion_value_rule_set_id: str, + customer_id: str, + conversion_value_rule_set_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule_set string.""" return "customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}".format( @@ -246,9 +253,13 @@ def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -257,7 +268,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -270,9 +283,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -281,9 +298,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -292,9 +313,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -303,10 +328,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -545,7 +574,10 @@ def mutate_conversion_value_rule_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -554,7 +586,9 @@ def mutate_conversion_value_rule_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/__init__.py index 4fea3519e..78c7f003b 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.py b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.py index 11728882f..0f49a2ae2 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.py index 434e7ff8e..f5761df8b 100644 --- a/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/custom_audience_service/__init__.py b/google/ads/googleads/v14/services/services/custom_audience_service/__init__.py index d751855af..e92dd24b1 100644 --- a/google/ads/googleads/v14/services/services/custom_audience_service/__init__.py +++ b/google/ads/googleads/v14/services/services/custom_audience_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/custom_audience_service/client.py b/google/ads/googleads/v14/services/services/custom_audience_service/client.py index 51963e69b..dab93753f 100644 --- a/google/ads/googleads/v14/services/services/custom_audience_service/client.py +++ b/google/ads/googleads/v14/services/services/custom_audience_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,7 +61,8 @@ class CustomAudienceServiceClientMeta(type): _transport_registry["grpc"] = CustomAudienceServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomAudienceServiceTransport]: """Returns an appropriate transport class. @@ -184,10 +185,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def custom_audience_path(customer_id: str, custom_audience_id: str,) -> str: + def custom_audience_path( + customer_id: str, + custom_audience_id: str, + ) -> str: """Returns a fully-qualified custom_audience string.""" return "customers/{customer_id}/customAudiences/{custom_audience_id}".format( - customer_id=customer_id, custom_audience_id=custom_audience_id, + customer_id=customer_id, + custom_audience_id=custom_audience_id, ) @staticmethod @@ -200,7 +205,9 @@ def parse_custom_audience_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -213,9 +220,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -224,9 +235,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -235,9 +250,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -246,10 +265,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -487,7 +510,10 @@ def mutate_custom_audiences( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -496,7 +522,9 @@ def mutate_custom_audiences( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/custom_audience_service/transports/__init__.py b/google/ads/googleads/v14/services/services/custom_audience_service/transports/__init__.py index cf5f6b2cd..9c2116b0d 100644 --- a/google/ads/googleads/v14/services/services/custom_audience_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/custom_audience_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/custom_audience_service/transports/base.py b/google/ads/googleads/v14/services/services/custom_audience_service/transports/base.py index d051bff4f..825a0623d 100644 --- a/google/ads/googleads/v14/services/services/custom_audience_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/custom_audience_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.py b/google/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.py index 419270dee..f0e17a9c1 100644 --- a/google/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/__init__.py b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/__init__.py index 85946bef5..bba6c1d9c 100644 --- a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/__init__.py +++ b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/client.py b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/client.py index 20004bccf..0722a540d 100644 --- a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/client.py +++ b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,8 @@ class CustomConversionGoalServiceClientMeta(type): _transport_registry["grpc"] = CustomConversionGoalServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomConversionGoalServiceTransport]: """Returns an appropriate transport class. @@ -192,11 +193,13 @@ def __exit__(self, type, value, traceback): @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -209,10 +212,14 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def custom_conversion_goal_path(customer_id: str, goal_id: str,) -> str: + def custom_conversion_goal_path( + customer_id: str, + goal_id: str, + ) -> str: """Returns a fully-qualified custom_conversion_goal string.""" return "customers/{customer_id}/customConversionGoals/{goal_id}".format( - customer_id=customer_id, goal_id=goal_id, + customer_id=customer_id, + goal_id=goal_id, ) @staticmethod @@ -225,7 +232,9 @@ def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -238,9 +247,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -249,9 +262,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -260,9 +277,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -271,10 +292,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -513,7 +538,10 @@ def mutate_custom_conversion_goals( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -522,7 +550,9 @@ def mutate_custom_conversion_goals( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/__init__.py b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/__init__.py index b915e11e7..ee685b6dc 100644 --- a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.py b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.py index 30518088e..90b4e5900 100644 --- a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.py b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.py index 59a52d23a..4671f1ee6 100644 --- a/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/custom_interest_service/__init__.py b/google/ads/googleads/v14/services/services/custom_interest_service/__init__.py index d6225ccac..4c9022e63 100644 --- a/google/ads/googleads/v14/services/services/custom_interest_service/__init__.py +++ b/google/ads/googleads/v14/services/services/custom_interest_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/custom_interest_service/client.py b/google/ads/googleads/v14/services/services/custom_interest_service/client.py index 40e2d68c2..d24bdc676 100644 --- a/google/ads/googleads/v14/services/services/custom_interest_service/client.py +++ b/google/ads/googleads/v14/services/services/custom_interest_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,7 +61,8 @@ class CustomInterestServiceClientMeta(type): _transport_registry["grpc"] = CustomInterestServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomInterestServiceTransport]: """Returns an appropriate transport class. @@ -184,10 +185,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def custom_interest_path(customer_id: str, custom_interest_id: str,) -> str: + def custom_interest_path( + customer_id: str, + custom_interest_id: str, + ) -> str: """Returns a fully-qualified custom_interest string.""" return "customers/{customer_id}/customInterests/{custom_interest_id}".format( - customer_id=customer_id, custom_interest_id=custom_interest_id, + customer_id=customer_id, + custom_interest_id=custom_interest_id, ) @staticmethod @@ -200,7 +205,9 @@ def parse_custom_interest_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -213,9 +220,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -224,9 +235,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -235,9 +250,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -246,10 +265,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -486,7 +509,10 @@ def mutate_custom_interests( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -495,7 +521,9 @@ def mutate_custom_interests( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/custom_interest_service/transports/__init__.py b/google/ads/googleads/v14/services/services/custom_interest_service/transports/__init__.py index 3b868836c..d4192fdfc 100644 --- a/google/ads/googleads/v14/services/services/custom_interest_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/custom_interest_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/custom_interest_service/transports/base.py b/google/ads/googleads/v14/services/services/custom_interest_service/transports/base.py index a4518730e..177b94403 100644 --- a/google/ads/googleads/v14/services/services/custom_interest_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/custom_interest_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.py b/google/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.py index 454549c31..852525ebe 100644 --- a/google/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_asset_service/__init__.py b/google/ads/googleads/v14/services/services/customer_asset_service/__init__.py index 592ad9cd0..895d35627 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_asset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_asset_service/client.py b/google/ads/googleads/v14/services/services/customer_asset_service/client.py index c0c968f2d..fc0a57acb 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_asset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CustomerAssetServiceClientMeta(type): _transport_registry["grpc"] = CustomerAssetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerAssetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -201,11 +206,15 @@ def parse_asset_path(path: str) -> Dict[str, str]: @staticmethod def customer_asset_path( - customer_id: str, asset_id: str, field_type: str, + customer_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified customer_asset string.""" return "customers/{customer_id}/customerAssets/{asset_id}~{field_type}".format( - customer_id=customer_id, asset_id=asset_id, field_type=field_type, + customer_id=customer_id, + asset_id=asset_id, + field_type=field_type, ) @staticmethod @@ -218,7 +227,9 @@ def parse_customer_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -231,9 +242,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -242,9 +257,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -253,9 +272,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -264,10 +287,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -502,7 +529,10 @@ def mutate_customer_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -511,7 +541,9 @@ def mutate_customer_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_asset_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_asset_service/transports/__init__.py index bfb7f5547..785f25361 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_asset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_asset_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_asset_service/transports/base.py index 87c40c703..3475c91f9 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_asset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.py index 212dcd138..fa0293271 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_asset_set_service/__init__.py b/google/ads/googleads/v14/services/services/customer_asset_set_service/__init__.py index 423f121e6..0f9b3adab 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_asset_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_asset_set_service/client.py b/google/ads/googleads/v14/services/services/customer_asset_set_service/client.py index ce4553451..734222db0 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_set_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_asset_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CustomerAssetSetServiceClientMeta(type): _transport_registry["grpc"] = CustomerAssetSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerAssetSetServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -206,9 +211,13 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -217,10 +226,16 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def customer_asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified customer_asset_set string.""" - return "customers/{customer_id}/customerAssetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + return ( + "customers/{customer_id}/customerAssetSets/{asset_set_id}".format( + customer_id=customer_id, + asset_set_id=asset_set_id, + ) ) @staticmethod @@ -233,7 +248,9 @@ def parse_customer_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -246,9 +263,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -257,9 +278,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -268,9 +293,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -279,10 +308,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -519,7 +552,10 @@ def mutate_customer_asset_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -528,7 +564,9 @@ def mutate_customer_asset_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/__init__.py index f5ad94784..b84eb8a09 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.py index 9a98a4713..a170a3f75 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.py index ed8bb6af9..97cd057c7 100644 --- a/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_client_link_service/__init__.py b/google/ads/googleads/v14/services/services/customer_client_link_service/__init__.py index 0161b3b0a..489ecab23 100644 --- a/google/ads/googleads/v14/services/services/customer_client_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_client_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_client_link_service/client.py b/google/ads/googleads/v14/services/services/customer_client_link_service/client.py index 9f4cea6cd..2fd2be27d 100644 --- a/google/ads/googleads/v14/services/services/customer_client_link_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_client_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,8 @@ class CustomerClientLinkServiceClientMeta(type): _transport_registry["grpc"] = CustomerClientLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerClientLinkServiceTransport]: """Returns an appropriate transport class. @@ -180,9 +181,13 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -192,7 +197,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: @staticmethod def customer_client_link_path( - customer_id: str, client_customer_id: str, manager_link_id: str, + customer_id: str, + client_customer_id: str, + manager_link_id: str, ) -> str: """Returns a fully-qualified customer_client_link string.""" return "customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}".format( @@ -211,7 +218,9 @@ def parse_customer_client_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -224,9 +233,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -235,9 +248,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -246,9 +263,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -257,10 +278,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -476,8 +501,10 @@ def mutate_customer_client_link( request, customer_client_link_service.MutateCustomerClientLinkRequest, ): - request = customer_client_link_service.MutateCustomerClientLinkRequest( - request + request = ( + customer_client_link_service.MutateCustomerClientLinkRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -502,7 +529,10 @@ def mutate_customer_client_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -511,7 +541,9 @@ def mutate_customer_client_link( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_client_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_client_link_service/transports/__init__.py index b359bca8a..ed951733f 100644 --- a/google/ads/googleads/v14/services/services/customer_client_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_client_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_client_link_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_client_link_service/transports/base.py index cef785608..f54de51f6 100644 --- a/google/ads/googleads/v14/services/services/customer_client_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_client_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.py index ce28e480e..391ef456e 100644 --- a/google/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -137,8 +137,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -148,8 +150,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -232,8 +236,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/__init__.py b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/__init__.py index 14de2e1d2..65e6b348d 100644 --- a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/client.py b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/client.py index 1158ec780..4e5044ffe 100644 --- a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,8 @@ class CustomerConversionGoalServiceClientMeta(type): _transport_registry["grpc"] = CustomerConversionGoalServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerConversionGoalServiceTransport]: """Returns an appropriate transport class. @@ -192,11 +193,15 @@ def __exit__(self, type, value, traceback): @staticmethod def customer_conversion_goal_path( - customer_id: str, category: str, source: str, + customer_id: str, + category: str, + source: str, ) -> str: """Returns a fully-qualified customer_conversion_goal string.""" return "customers/{customer_id}/customerConversionGoals/{category}~{source}".format( - customer_id=customer_id, category=category, source=source, + customer_id=customer_id, + category=category, + source=source, ) @staticmethod @@ -209,7 +214,9 @@ def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -222,9 +229,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -233,9 +244,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -244,9 +259,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -255,10 +274,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -497,7 +520,10 @@ def mutate_customer_conversion_goals( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -506,7 +532,9 @@ def mutate_customer_conversion_goals( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/__init__.py index 2bf2e8a9c..e5b481411 100644 --- a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.py index 448331b62..0ac020e81 100644 --- a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.py index f5d988e3a..4c4cdace3 100644 --- a/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_customizer_service/__init__.py b/google/ads/googleads/v14/services/services/customer_customizer_service/__init__.py index 61621f91b..3fec78bc7 100644 --- a/google/ads/googleads/v14/services/services/customer_customizer_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_customizer_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_customizer_service/client.py b/google/ads/googleads/v14/services/services/customer_customizer_service/client.py index c3765422d..c20759f97 100644 --- a/google/ads/googleads/v14/services/services/customer_customizer_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_customizer_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CustomerCustomizerServiceClientMeta(type): _transport_registry["grpc"] = CustomerCustomizerServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerCustomizerServiceTransport]: """Returns an appropriate transport class. @@ -191,7 +192,8 @@ def __exit__(self, type, value, traceback): @staticmethod def customer_customizer_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customer_customizer string.""" return "customers/{customer_id}/customerCustomizers/{customizer_attribute_id}".format( @@ -210,7 +212,8 @@ def parse_customer_customizer_path(path: str) -> Dict[str, str]: @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -228,7 +231,9 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -241,9 +246,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -252,9 +261,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -263,9 +276,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -274,10 +291,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -490,8 +511,10 @@ def mutate_customer_customizers( request, customer_customizer_service.MutateCustomerCustomizersRequest, ): - request = customer_customizer_service.MutateCustomerCustomizersRequest( - request + request = ( + customer_customizer_service.MutateCustomerCustomizersRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -516,7 +539,10 @@ def mutate_customer_customizers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -525,7 +551,9 @@ def mutate_customer_customizers( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_customizer_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_customizer_service/transports/__init__.py index 991162e1f..8f3b884cb 100644 --- a/google/ads/googleads/v14/services/services/customer_customizer_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_customizer_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_customizer_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_customizer_service/transports/base.py index c846cd0fb..a6946c912 100644 --- a/google/ads/googleads/v14/services/services/customer_customizer_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_customizer_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.py index 70f5ee7e2..9539fb209 100644 --- a/google/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -137,8 +137,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -148,8 +150,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -232,8 +236,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_extension_setting_service/__init__.py b/google/ads/googleads/v14/services/services/customer_extension_setting_service/__init__.py index 2ed401b65..48102065b 100644 --- a/google/ads/googleads/v14/services/services/customer_extension_setting_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_extension_setting_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_extension_setting_service/client.py b/google/ads/googleads/v14/services/services/customer_extension_setting_service/client.py index dc8c3afd6..fadf4b48d 100644 --- a/google/ads/googleads/v14/services/services/customer_extension_setting_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_extension_setting_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class CustomerExtensionSettingServiceClientMeta(type): _transport_registry["grpc"] = CustomerExtensionSettingServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerExtensionSettingServiceTransport]: """Returns an appropriate transport class. @@ -193,11 +194,13 @@ def __exit__(self, type, value, traceback): @staticmethod def customer_extension_setting_path( - customer_id: str, extension_type: str, + customer_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified customer_extension_setting string.""" return "customers/{customer_id}/customerExtensionSettings/{extension_type}".format( - customer_id=customer_id, extension_type=extension_type, + customer_id=customer_id, + extension_type=extension_type, ) @staticmethod @@ -210,10 +213,16 @@ def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def extension_feed_item_path(customer_id: str, feed_item_id: str,) -> str: + def extension_feed_item_path( + customer_id: str, + feed_item_id: str, + ) -> str: """Returns a fully-qualified extension_feed_item string.""" - return "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( - customer_id=customer_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( + customer_id=customer_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -226,7 +235,9 @@ def parse_extension_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -239,9 +250,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -250,9 +265,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -261,9 +280,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -272,10 +295,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -526,7 +553,10 @@ def mutate_customer_extension_settings( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -535,7 +565,9 @@ def mutate_customer_extension_settings( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/__init__.py index 2972e8398..1ec9134bc 100644 --- a/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.py index d8b011860..eced5efe7 100644 --- a/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.py index c901b46d6..97ac6f14c 100644 --- a/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_feed_service/__init__.py b/google/ads/googleads/v14/services/services/customer_feed_service/__init__.py index 3586047a2..9b8cc8e52 100644 --- a/google/ads/googleads/v14/services/services/customer_feed_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_feed_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_feed_service/client.py b/google/ads/googleads/v14/services/services/customer_feed_service/client.py index e7f2458d6..5ab0f76b7 100644 --- a/google/ads/googleads/v14/services/services/customer_feed_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_feed_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CustomerFeedServiceClientMeta(type): _transport_registry["grpc"] = CustomerFeedServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerFeedServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_feed_path(customer_id: str, feed_id: str,) -> str: + def customer_feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified customer_feed string.""" return "customers/{customer_id}/customerFeeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -201,10 +206,14 @@ def parse_customer_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -216,7 +225,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -229,9 +240,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -240,9 +255,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -251,9 +270,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -262,10 +285,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -503,7 +530,10 @@ def mutate_customer_feeds( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -512,7 +542,9 @@ def mutate_customer_feeds( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_feed_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_feed_service/transports/__init__.py index 30d020a54..39eba99bb 100644 --- a/google/ads/googleads/v14/services/services/customer_feed_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_feed_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_feed_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_feed_service/transports/base.py index dd5b5ca9e..6a4a3334f 100644 --- a/google/ads/googleads/v14/services/services/customer_feed_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_feed_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.py index 63f371910..5c794d438 100644 --- a/google/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_label_service/__init__.py b/google/ads/googleads/v14/services/services/customer_label_service/__init__.py index 36d12fc0a..0caf79e49 100644 --- a/google/ads/googleads/v14/services/services/customer_label_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_label_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_label_service/client.py b/google/ads/googleads/v14/services/services/customer_label_service/client.py index d1d7fb81a..323f5362b 100644 --- a/google/ads/googleads/v14/services/services/customer_label_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_label_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class CustomerLabelServiceClientMeta(type): _transport_registry["grpc"] = CustomerLabelServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerLabelServiceTransport]: """Returns an appropriate transport class. @@ -185,9 +186,13 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -196,10 +201,14 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_label_path(customer_id: str, label_id: str,) -> str: + def customer_label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified customer_label string.""" return "customers/{customer_id}/customerLabels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -212,10 +221,14 @@ def parse_customer_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -227,7 +240,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -240,9 +255,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -251,9 +270,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -262,9 +285,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -273,10 +300,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -511,7 +542,10 @@ def mutate_customer_labels( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -520,7 +554,9 @@ def mutate_customer_labels( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_label_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_label_service/transports/__init__.py index 1d33dd6a6..665ef3ae7 100644 --- a/google/ads/googleads/v14/services/services/customer_label_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_label_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_label_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_label_service/transports/base.py index 77fdb4e9f..eb5ef308b 100644 --- a/google/ads/googleads/v14/services/services/customer_label_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_label_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_label_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_label_service/transports/grpc.py index c2a23cd23..f8b7b79fc 100644 --- a/google/ads/googleads/v14/services/services/customer_label_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_label_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_manager_link_service/__init__.py b/google/ads/googleads/v14/services/services/customer_manager_link_service/__init__.py index 81294402e..8fb94b82a 100644 --- a/google/ads/googleads/v14/services/services/customer_manager_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_manager_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_manager_link_service/client.py b/google/ads/googleads/v14/services/services/customer_manager_link_service/client.py index 910e99519..9d62bb136 100644 --- a/google/ads/googleads/v14/services/services/customer_manager_link_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_manager_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,8 @@ class CustomerManagerLinkServiceClientMeta(type): _transport_registry["grpc"] = CustomerManagerLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerManagerLinkServiceTransport]: """Returns an appropriate transport class. @@ -191,9 +192,13 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -203,7 +208,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: @staticmethod def customer_manager_link_path( - customer_id: str, manager_customer_id: str, manager_link_id: str, + customer_id: str, + manager_customer_id: str, + manager_link_id: str, ) -> str: """Returns a fully-qualified customer_manager_link string.""" return "customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}".format( @@ -222,7 +229,9 @@ def parse_customer_manager_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -235,9 +244,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -246,9 +259,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -257,9 +274,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -268,10 +289,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -489,8 +514,10 @@ def mutate_customer_manager_link( request, customer_manager_link_service.MutateCustomerManagerLinkRequest, ): - request = customer_manager_link_service.MutateCustomerManagerLinkRequest( - request + request = ( + customer_manager_link_service.MutateCustomerManagerLinkRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -515,7 +542,10 @@ def mutate_customer_manager_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -634,7 +664,10 @@ def move_manager_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -643,7 +676,9 @@ def move_manager_link( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/__init__.py index 86dbf36eb..fad944607 100644 --- a/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.py index 43ad356ee..8ec596e04 100644 --- a/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -139,9 +141,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.py index 4f2ee721d..b965736d9 100644 --- a/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/__init__.py b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/__init__.py index 49093ba68..9f20734d7 100644 --- a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/client.py b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/client.py index 6af5f82ce..40576772f 100644 --- a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class CustomerNegativeCriterionServiceClientMeta(type): _transport_registry["grpc"] = CustomerNegativeCriterionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerNegativeCriterionServiceTransport]: """Returns an appropriate transport class. @@ -193,11 +194,13 @@ def __exit__(self, type, value, traceback): @staticmethod def customer_negative_criterion_path( - customer_id: str, criterion_id: str, + customer_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified customer_negative_criterion string.""" return "customers/{customer_id}/customerNegativeCriteria/{criterion_id}".format( - customer_id=customer_id, criterion_id=criterion_id, + customer_id=customer_id, + criterion_id=criterion_id, ) @staticmethod @@ -210,7 +213,9 @@ def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -223,9 +228,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -234,9 +243,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -245,9 +258,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -256,10 +273,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -501,7 +522,10 @@ def mutate_customer_negative_criteria( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -510,7 +534,9 @@ def mutate_customer_negative_criteria( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/__init__.py index 3e8db8358..64991f5c5 100644 --- a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.py index d389b79bd..2388bf2a2 100644 --- a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.py index edca9f8a2..555535bcb 100644 --- a/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_service/__init__.py b/google/ads/googleads/v14/services/services/customer_service/__init__.py index a097717ec..6c6b16b89 100644 --- a/google/ads/googleads/v14/services/services/customer_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_service/client.py b/google/ads/googleads/v14/services/services/customer_service/client.py index fc7f2a966..c0f73d26f 100644 --- a/google/ads/googleads/v14/services/services/customer_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -53,7 +53,8 @@ class CustomerServiceClientMeta(type): _transport_registry["grpc"] = CustomerServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerServiceTransport]: """Returns an appropriate transport class. @@ -177,11 +178,13 @@ def __exit__(self, type, value, traceback): @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -194,9 +197,13 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -205,7 +212,9 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -218,9 +227,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -229,9 +242,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -240,9 +257,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -251,10 +272,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -477,7 +502,10 @@ def mutate_customer( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -534,7 +562,10 @@ def list_accessible_customers( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -633,7 +664,10 @@ def create_customer_client( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -642,7 +676,9 @@ def create_customer_client( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_service/transports/__init__.py index b842a6ed8..fcd0038e3 100644 --- a/google/ads/googleads/v14/services/services/customer_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_service/transports/base.py index e8e2e6531..fef9a5408 100644 --- a/google/ads/googleads/v14/services/services/customer_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -142,9 +144,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_service/transports/grpc.py index a8d631e9c..1883f2eca 100644 --- a/google/ads/googleads/v14/services/services/customer_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/__init__.py b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/__init__.py index edbb0147e..e7bc4c6a0 100644 --- a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.py b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.py index 6d3e09afe..3834d3ace 100644 --- a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,7 +61,8 @@ class CustomerSkAdNetworkConversionValueSchemaServiceClientMeta(type): ] = CustomerSkAdNetworkConversionValueSchemaServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: """Returns an appropriate transport class. @@ -191,11 +192,13 @@ def __exit__(self, type, value, traceback): @staticmethod def customer_sk_ad_network_conversion_value_schema_path( - customer_id: str, account_link_id: str, + customer_id: str, + account_link_id: str, ) -> str: """Returns a fully-qualified customer_sk_ad_network_conversion_value_schema string.""" return "customers/{customer_id}/customerSkAdNetworkConversionValueSchemas/{account_link_id}".format( - customer_id=customer_id, account_link_id=account_link_id, + customer_id=customer_id, + account_link_id=account_link_id, ) @staticmethod @@ -210,7 +213,9 @@ def parse_customer_sk_ad_network_conversion_value_schema_path( return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -223,9 +228,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -234,9 +243,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -245,9 +258,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -256,10 +273,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -466,7 +487,10 @@ def mutate_customer_sk_ad_network_conversion_value_schema( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -475,7 +499,9 @@ def mutate_customer_sk_ad_network_conversion_value_schema( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/__init__.py index 4da67c0f2..cd0b73a00 100644 --- a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.py index e1032ed7c..0758e800a 100644 --- a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.py index 0e85359c9..cbceb35a4 100644 --- a/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/__init__.py b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/__init__.py index b723bd090..4bb20f792 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.py b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.py index 0667a7ebd..8d814184e 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,7 +59,8 @@ class CustomerUserAccessInvitationServiceClientMeta(type): ] = CustomerUserAccessInvitationServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerUserAccessInvitationServiceTransport]: """Returns an appropriate transport class. @@ -187,11 +188,13 @@ def __exit__(self, type, value, traceback): @staticmethod def customer_user_access_invitation_path( - customer_id: str, invitation_id: str, + customer_id: str, + invitation_id: str, ) -> str: """Returns a fully-qualified customer_user_access_invitation string.""" return "customers/{customer_id}/customerUserAccessInvitations/{invitation_id}".format( - customer_id=customer_id, invitation_id=invitation_id, + customer_id=customer_id, + invitation_id=invitation_id, ) @staticmethod @@ -204,7 +207,9 @@ def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -217,9 +222,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -228,9 +237,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -239,9 +252,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -250,10 +267,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -421,7 +442,7 @@ def mutate_customer_user_access_invitation( Args: request (Union[google.ads.googleads.v14.services.types.MutateCustomerUserAccessInvitationRequest, dict, None]): The request object. Request message for - [CustomerUserAccessInvitation.MutateCustomerUserAccessInvitation][] + [CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation][google.ads.googleads.v14.services.CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation] customer_id (str): Required. The ID of the customer whose access invitation is being @@ -493,7 +514,10 @@ def mutate_customer_user_access_invitation( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -502,7 +526,9 @@ def mutate_customer_user_access_invitation( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/__init__.py index a604314b5..faa4629ec 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.py index a1452d50e..7278d0cef 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.py index 7a22a121e..7564ddbc4 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -143,8 +143,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -154,8 +156,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -238,8 +242,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customer_user_access_service/__init__.py b/google/ads/googleads/v14/services/services/customer_user_access_service/__init__.py index 6159ad18a..2a1ddde23 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_user_access_service/client.py b/google/ads/googleads/v14/services/services/customer_user_access_service/client.py index 00dab530e..1d2102ac6 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_service/client.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,8 @@ class CustomerUserAccessServiceClientMeta(type): _transport_registry["grpc"] = CustomerUserAccessServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomerUserAccessServiceTransport]: """Returns an appropriate transport class. @@ -182,10 +183,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_user_access_path(customer_id: str, user_id: str,) -> str: + def customer_user_access_path( + customer_id: str, + user_id: str, + ) -> str: """Returns a fully-qualified customer_user_access string.""" return "customers/{customer_id}/customerUserAccesses/{user_id}".format( - customer_id=customer_id, user_id=user_id, + customer_id=customer_id, + user_id=user_id, ) @staticmethod @@ -198,7 +203,9 @@ def parse_customer_user_access_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -211,9 +218,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -222,9 +233,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -233,9 +248,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -244,10 +263,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -461,8 +484,10 @@ def mutate_customer_user_access( request, customer_user_access_service.MutateCustomerUserAccessRequest, ): - request = customer_user_access_service.MutateCustomerUserAccessRequest( - request + request = ( + customer_user_access_service.MutateCustomerUserAccessRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -487,7 +512,10 @@ def mutate_customer_user_access( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -496,7 +524,9 @@ def mutate_customer_user_access( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customer_user_access_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customer_user_access_service/transports/__init__.py index 0029a64b9..8448a0854 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customer_user_access_service/transports/base.py b/google/ads/googleads/v14/services/services/customer_user_access_service/transports/base.py index cb5224205..38dbaa2b4 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.py index ab4f4431b..9326cfc0d 100644 --- a/google/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -138,8 +138,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -149,8 +151,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -233,8 +237,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/customizer_attribute_service/__init__.py b/google/ads/googleads/v14/services/services/customizer_attribute_service/__init__.py index 5db157a51..cddcaae83 100644 --- a/google/ads/googleads/v14/services/services/customizer_attribute_service/__init__.py +++ b/google/ads/googleads/v14/services/services/customizer_attribute_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customizer_attribute_service/client.py b/google/ads/googleads/v14/services/services/customizer_attribute_service/client.py index 4329014ab..80589c863 100644 --- a/google/ads/googleads/v14/services/services/customizer_attribute_service/client.py +++ b/google/ads/googleads/v14/services/services/customizer_attribute_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class CustomizerAttributeServiceClientMeta(type): _transport_registry["grpc"] = CustomizerAttributeServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[CustomizerAttributeServiceTransport]: """Returns an appropriate transport class. @@ -191,7 +192,8 @@ def __exit__(self, type, value, traceback): @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -209,7 +211,9 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -222,9 +226,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -233,9 +241,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -244,9 +256,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -255,10 +271,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -471,8 +491,10 @@ def mutate_customizer_attributes( request, customizer_attribute_service.MutateCustomizerAttributesRequest, ): - request = customizer_attribute_service.MutateCustomizerAttributesRequest( - request + request = ( + customizer_attribute_service.MutateCustomizerAttributesRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -497,7 +519,10 @@ def mutate_customizer_attributes( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -506,7 +531,9 @@ def mutate_customizer_attributes( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/__init__.py b/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/__init__.py index 46fbd34e7..d43203d0b 100644 --- a/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.py b/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.py index d98ea867a..0624a4877 100644 --- a/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.py b/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.py index 00c022303..aad1f739a 100644 --- a/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -137,8 +137,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -148,8 +150,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -232,8 +236,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/experiment_arm_service/__init__.py b/google/ads/googleads/v14/services/services/experiment_arm_service/__init__.py index 7d07dade9..63c55177c 100644 --- a/google/ads/googleads/v14/services/services/experiment_arm_service/__init__.py +++ b/google/ads/googleads/v14/services/services/experiment_arm_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/experiment_arm_service/client.py b/google/ads/googleads/v14/services/services/experiment_arm_service/client.py index 0ba575ed3..649ff08f9 100644 --- a/google/ads/googleads/v14/services/services/experiment_arm_service/client.py +++ b/google/ads/googleads/v14/services/services/experiment_arm_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class ExperimentArmServiceClientMeta(type): _transport_registry["grpc"] = ExperimentArmServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ExperimentArmServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -201,10 +206,14 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def experiment_path(customer_id: str, trial_id: str,) -> str: + def experiment_path( + customer_id: str, + trial_id: str, + ) -> str: """Returns a fully-qualified experiment string.""" return "customers/{customer_id}/experiments/{trial_id}".format( - customer_id=customer_id, trial_id=trial_id, + customer_id=customer_id, + trial_id=trial_id, ) @staticmethod @@ -218,7 +227,9 @@ def parse_experiment_path(path: str) -> Dict[str, str]: @staticmethod def experiment_arm_path( - customer_id: str, trial_id: str, trial_arm_id: str, + customer_id: str, + trial_id: str, + trial_arm_id: str, ) -> str: """Returns a fully-qualified experiment_arm string.""" return "customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}".format( @@ -237,7 +248,9 @@ def parse_experiment_arm_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -250,9 +263,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -261,9 +278,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -272,9 +293,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -283,10 +308,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -520,7 +549,10 @@ def mutate_experiment_arms( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -529,7 +561,9 @@ def mutate_experiment_arms( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/experiment_arm_service/transports/__init__.py b/google/ads/googleads/v14/services/services/experiment_arm_service/transports/__init__.py index be98b758e..b3a6b84f6 100644 --- a/google/ads/googleads/v14/services/services/experiment_arm_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/experiment_arm_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/experiment_arm_service/transports/base.py b/google/ads/googleads/v14/services/services/experiment_arm_service/transports/base.py index a5d265ee2..03fca81cd 100644 --- a/google/ads/googleads/v14/services/services/experiment_arm_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/experiment_arm_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.py b/google/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.py index 0cb8fe0b8..c23ec792e 100644 --- a/google/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/experiment_service/__init__.py b/google/ads/googleads/v14/services/services/experiment_service/__init__.py index 0a826a3bc..41fa5c179 100644 --- a/google/ads/googleads/v14/services/services/experiment_service/__init__.py +++ b/google/ads/googleads/v14/services/services/experiment_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/experiment_service/client.py b/google/ads/googleads/v14/services/services/experiment_service/client.py index 67be8b27e..c1fbdf19a 100644 --- a/google/ads/googleads/v14/services/services/experiment_service/client.py +++ b/google/ads/googleads/v14/services/services/experiment_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,8 @@ class ExperimentServiceClientMeta(type): _transport_registry["grpc"] = ExperimentServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ExperimentServiceTransport]: """Returns an appropriate transport class. @@ -189,10 +190,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -205,10 +210,14 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_budget_path(customer_id: str, campaign_budget_id: str,) -> str: + def campaign_budget_path( + customer_id: str, + campaign_budget_id: str, + ) -> str: """Returns a fully-qualified campaign_budget string.""" return "customers/{customer_id}/campaignBudgets/{campaign_budget_id}".format( - customer_id=customer_id, campaign_budget_id=campaign_budget_id, + customer_id=customer_id, + campaign_budget_id=campaign_budget_id, ) @staticmethod @@ -221,10 +230,14 @@ def parse_campaign_budget_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def experiment_path(customer_id: str, trial_id: str,) -> str: + def experiment_path( + customer_id: str, + trial_id: str, + ) -> str: """Returns a fully-qualified experiment string.""" return "customers/{customer_id}/experiments/{trial_id}".format( - customer_id=customer_id, trial_id=trial_id, + customer_id=customer_id, + trial_id=trial_id, ) @staticmethod @@ -237,7 +250,9 @@ def parse_experiment_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -250,9 +265,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -261,9 +280,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -272,9 +295,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -283,10 +310,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -516,7 +547,10 @@ def mutate_experiments( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -594,7 +628,10 @@ def end_experiment( # Send the request. rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) def list_experiment_async_errors( @@ -683,13 +720,19 @@ def list_experiment_async_errors( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # This method is paged; wrap the response in a pager, which provides # an `__iter__` convenience method. response = pagers.ListExperimentAsyncErrorsPager( - method=rpc, request=request, response=response, metadata=metadata, + method=rpc, + request=request, + response=response, + metadata=metadata, ) # Done; return the response. @@ -785,7 +828,10 @@ def graduate_experiment( # Send the request. rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) def schedule_experiment( @@ -887,7 +933,10 @@ def schedule_experiment( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Wrap the response in an operation future. @@ -995,7 +1044,10 @@ def promote_experiment( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Wrap the response in an operation future. @@ -1012,7 +1064,9 @@ def promote_experiment( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/experiment_service/pagers.py b/google/ads/googleads/v14/services/services/experiment_service/pagers.py index f9288d110..3282898a3 100644 --- a/google/ads/googleads/v14/services/services/experiment_service/pagers.py +++ b/google/ads/googleads/v14/services/services/experiment_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/experiment_service/transports/__init__.py b/google/ads/googleads/v14/services/services/experiment_service/transports/__init__.py index 8f6e4a537..f8658ea9c 100644 --- a/google/ads/googleads/v14/services/services/experiment_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/experiment_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/experiment_service/transports/base.py b/google/ads/googleads/v14/services/services/experiment_service/transports/base.py index bd80cd46d..843c0283e 100644 --- a/google/ads/googleads/v14/services/services/experiment_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/experiment_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -159,9 +161,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/experiment_service/transports/grpc.py b/google/ads/googleads/v14/services/services/experiment_service/transports/grpc.py index ccb937fdc..42c936a92 100644 --- a/google/ads/googleads/v14/services/services/experiment_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/experiment_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/extension_feed_item_service/__init__.py b/google/ads/googleads/v14/services/services/extension_feed_item_service/__init__.py index 251c00ca9..932c6112a 100644 --- a/google/ads/googleads/v14/services/services/extension_feed_item_service/__init__.py +++ b/google/ads/googleads/v14/services/services/extension_feed_item_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/extension_feed_item_service/client.py b/google/ads/googleads/v14/services/services/extension_feed_item_service/client.py index bb87dea9b..d84f00663 100644 --- a/google/ads/googleads/v14/services/services/extension_feed_item_service/client.py +++ b/google/ads/googleads/v14/services/services/extension_feed_item_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class ExtensionFeedItemServiceClientMeta(type): _transport_registry["grpc"] = ExtensionFeedItemServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ExtensionFeedItemServiceTransport]: """Returns an appropriate transport class. @@ -190,10 +191,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -206,10 +211,14 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -221,10 +230,14 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -237,10 +250,16 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def extension_feed_item_path(customer_id: str, feed_item_id: str,) -> str: + def extension_feed_item_path( + customer_id: str, + feed_item_id: str, + ) -> str: """Returns a fully-qualified extension_feed_item string.""" - return "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( - customer_id=customer_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( + customer_id=customer_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -253,7 +272,9 @@ def parse_extension_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -266,7 +287,9 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -279,9 +302,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -290,9 +317,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -301,9 +332,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -312,10 +347,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -538,8 +577,10 @@ def mutate_extension_feed_items( if not isinstance( request, extension_feed_item_service.MutateExtensionFeedItemsRequest ): - request = extension_feed_item_service.MutateExtensionFeedItemsRequest( - request + request = ( + extension_feed_item_service.MutateExtensionFeedItemsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -564,7 +605,10 @@ def mutate_extension_feed_items( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -573,7 +617,9 @@ def mutate_extension_feed_items( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/__init__.py b/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/__init__.py index 32b2c76f3..7df6761d7 100644 --- a/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.py b/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.py index eb44bd132..b57765db1 100644 --- a/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.py b/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.py index a606b5ed8..c1b1f9db7 100644 --- a/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/feed_item_service/__init__.py b/google/ads/googleads/v14/services/services/feed_item_service/__init__.py index 1b6d39f54..2c0f86b0b 100644 --- a/google/ads/googleads/v14/services/services/feed_item_service/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_service/client.py b/google/ads/googleads/v14/services/services/feed_item_service/client.py index 7660d2d7c..a3385035b 100644 --- a/google/ads/googleads/v14/services/services/feed_item_service/client.py +++ b/google/ads/googleads/v14/services/services/feed_item_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class FeedItemServiceClientMeta(type): _transport_registry["grpc"] = FeedItemServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[FeedItemServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -201,11 +206,17 @@ def parse_feed_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_path( - customer_id: str, feed_id: str, feed_item_id: str, + customer_id: str, + feed_id: str, + feed_item_id: str, ) -> str: """Returns a fully-qualified feed_item string.""" - return "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( - customer_id=customer_id, feed_id=feed_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( + customer_id=customer_id, + feed_id=feed_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -218,7 +229,9 @@ def parse_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -231,9 +244,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -242,9 +259,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -253,9 +274,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -264,10 +289,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -504,7 +533,10 @@ def mutate_feed_items( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -513,7 +545,9 @@ def mutate_feed_items( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/feed_item_service/transports/__init__.py b/google/ads/googleads/v14/services/services/feed_item_service/transports/__init__.py index 4b451bbe4..0cddf3002 100644 --- a/google/ads/googleads/v14/services/services/feed_item_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_service/transports/base.py b/google/ads/googleads/v14/services/services/feed_item_service/transports/base.py index da2ae0014..1fa39d58c 100644 --- a/google/ads/googleads/v14/services/services/feed_item_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/feed_item_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/feed_item_service/transports/grpc.py b/google/ads/googleads/v14/services/services/feed_item_service/transports/grpc.py index a31700078..1616cf758 100644 --- a/google/ads/googleads/v14/services/services/feed_item_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/feed_item_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/feed_item_set_link_service/__init__.py b/google/ads/googleads/v14/services/services/feed_item_set_link_service/__init__.py index 980268df6..b69a80884 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_set_link_service/client.py b/google/ads/googleads/v14/services/services/feed_item_set_link_service/client.py index b8bcb1be8..2d30c84fe 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_link_service/client.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class FeedItemSetLinkServiceClientMeta(type): _transport_registry["grpc"] = FeedItemSetLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[FeedItemSetLinkServiceTransport]: """Returns an appropriate transport class. @@ -189,11 +190,17 @@ def __exit__(self, type, value, traceback): @staticmethod def feed_item_path( - customer_id: str, feed_id: str, feed_item_id: str, + customer_id: str, + feed_id: str, + feed_item_id: str, ) -> str: """Returns a fully-qualified feed_item string.""" - return "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( - customer_id=customer_id, feed_id=feed_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( + customer_id=customer_id, + feed_id=feed_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -207,7 +214,9 @@ def parse_feed_item_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_set_path( - customer_id: str, feed_id: str, feed_item_set_id: str, + customer_id: str, + feed_id: str, + feed_item_set_id: str, ) -> str: """Returns a fully-qualified feed_item_set string.""" return "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}".format( @@ -250,7 +259,9 @@ def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -263,9 +274,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -274,9 +289,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -285,9 +304,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -296,10 +319,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -535,7 +562,10 @@ def mutate_feed_item_set_links( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -544,7 +574,9 @@ def mutate_feed_item_set_links( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/__init__.py index fabe052bc..7000820d2 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.py b/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.py index 33d8aec5b..44584f8c5 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.py index c7f7f428f..d27311777 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/feed_item_set_service/__init__.py b/google/ads/googleads/v14/services/services/feed_item_set_service/__init__.py index 740e97dbc..49a3d28ae 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_set_service/client.py b/google/ads/googleads/v14/services/services/feed_item_set_service/client.py index ec6851a80..7de5a911f 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_service/client.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class FeedItemSetServiceClientMeta(type): _transport_registry["grpc"] = FeedItemSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[FeedItemSetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_set_path( - customer_id: str, feed_id: str, feed_item_set_id: str, + customer_id: str, + feed_id: str, + feed_item_set_id: str, ) -> str: """Returns a fully-qualified feed_item_set string.""" return "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}".format( @@ -220,7 +227,9 @@ def parse_feed_item_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -233,9 +242,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -244,9 +257,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -255,9 +272,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -266,10 +287,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -501,7 +526,10 @@ def mutate_feed_item_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -510,7 +538,9 @@ def mutate_feed_item_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/feed_item_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/feed_item_set_service/transports/__init__.py index 3af5d6e4c..fb47534b8 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_set_service/transports/base.py b/google/ads/googleads/v14/services/services/feed_item_set_service/transports/base.py index 4c9cf9247..b1908e72f 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.py index ec2b52647..0dfa3d924 100644 --- a/google/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/feed_item_target_service/__init__.py b/google/ads/googleads/v14/services/services/feed_item_target_service/__init__.py index 63611fd94..0fceb3374 100644 --- a/google/ads/googleads/v14/services/services/feed_item_target_service/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_target_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_target_service/client.py b/google/ads/googleads/v14/services/services/feed_item_target_service/client.py index 4761b02bd..559c1dfd5 100644 --- a/google/ads/googleads/v14/services/services/feed_item_target_service/client.py +++ b/google/ads/googleads/v14/services/services/feed_item_target_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class FeedItemTargetServiceClientMeta(type): _transport_registry["grpc"] = FeedItemTargetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[FeedItemTargetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -201,10 +206,14 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -218,11 +227,17 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_path( - customer_id: str, feed_id: str, feed_item_id: str, + customer_id: str, + feed_id: str, + feed_item_id: str, ) -> str: """Returns a fully-qualified feed_item string.""" - return "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( - customer_id=customer_id, feed_id=feed_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( + customer_id=customer_id, + feed_id=feed_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -261,7 +276,9 @@ def parse_feed_item_target_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -274,7 +291,9 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -287,9 +306,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -298,9 +321,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -309,9 +336,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -320,10 +351,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -562,7 +597,10 @@ def mutate_feed_item_targets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -571,7 +609,9 @@ def mutate_feed_item_targets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/feed_item_target_service/transports/__init__.py b/google/ads/googleads/v14/services/services/feed_item_target_service/transports/__init__.py index b61ca192c..393827200 100644 --- a/google/ads/googleads/v14/services/services/feed_item_target_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_item_target_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_item_target_service/transports/base.py b/google/ads/googleads/v14/services/services/feed_item_target_service/transports/base.py index 5c50e59b6..07564730b 100644 --- a/google/ads/googleads/v14/services/services/feed_item_target_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/feed_item_target_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.py b/google/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.py index 52addecf3..e748f24d9 100644 --- a/google/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/feed_mapping_service/__init__.py b/google/ads/googleads/v14/services/services/feed_mapping_service/__init__.py index 3995567e0..86072d824 100644 --- a/google/ads/googleads/v14/services/services/feed_mapping_service/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_mapping_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_mapping_service/client.py b/google/ads/googleads/v14/services/services/feed_mapping_service/client.py index f6e8f2886..192763d58 100644 --- a/google/ads/googleads/v14/services/services/feed_mapping_service/client.py +++ b/google/ads/googleads/v14/services/services/feed_mapping_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class FeedMappingServiceClientMeta(type): _transport_registry["grpc"] = FeedMappingServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[FeedMappingServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: @staticmethod def feed_mapping_path( - customer_id: str, feed_id: str, feed_mapping_id: str, + customer_id: str, + feed_id: str, + feed_mapping_id: str, ) -> str: """Returns a fully-qualified feed_mapping string.""" return "customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}".format( @@ -220,7 +227,9 @@ def parse_feed_mapping_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -233,9 +242,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -244,9 +257,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -255,9 +272,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -266,10 +287,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -506,7 +531,10 @@ def mutate_feed_mappings( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -515,7 +543,9 @@ def mutate_feed_mappings( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/feed_mapping_service/transports/__init__.py b/google/ads/googleads/v14/services/services/feed_mapping_service/transports/__init__.py index 8ac617092..a4ae99d73 100644 --- a/google/ads/googleads/v14/services/services/feed_mapping_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_mapping_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_mapping_service/transports/base.py b/google/ads/googleads/v14/services/services/feed_mapping_service/transports/base.py index 515e30bf8..136fd6698 100644 --- a/google/ads/googleads/v14/services/services/feed_mapping_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/feed_mapping_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.py b/google/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.py index 7d5d750a8..3f37e3b4c 100644 --- a/google/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/feed_service/__init__.py b/google/ads/googleads/v14/services/services/feed_service/__init__.py index 7d6bdd98b..2e199491c 100644 --- a/google/ads/googleads/v14/services/services/feed_service/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_service/client.py b/google/ads/googleads/v14/services/services/feed_service/client.py index 7618b0ea2..f7318d3db 100644 --- a/google/ads/googleads/v14/services/services/feed_service/client.py +++ b/google/ads/googleads/v14/services/services/feed_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class FeedServiceClientMeta(type): _transport_registry["grpc"] = FeedServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[FeedServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -200,7 +205,9 @@ def parse_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -213,9 +220,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -224,9 +235,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -235,9 +250,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -246,10 +265,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -479,7 +502,10 @@ def mutate_feeds( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -488,7 +514,9 @@ def mutate_feeds( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/feed_service/transports/__init__.py b/google/ads/googleads/v14/services/services/feed_service/transports/__init__.py index 9ed6e27e3..8db0f0412 100644 --- a/google/ads/googleads/v14/services/services/feed_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/feed_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/feed_service/transports/base.py b/google/ads/googleads/v14/services/services/feed_service/transports/base.py index 05668b318..e1b9994b3 100644 --- a/google/ads/googleads/v14/services/services/feed_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/feed_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/feed_service/transports/grpc.py b/google/ads/googleads/v14/services/services/feed_service/transports/grpc.py index 4071a9d43..d6a2c7ed3 100644 --- a/google/ads/googleads/v14/services/services/feed_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/feed_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/geo_target_constant_service/__init__.py b/google/ads/googleads/v14/services/services/geo_target_constant_service/__init__.py index 873c088db..5af9928d4 100644 --- a/google/ads/googleads/v14/services/services/geo_target_constant_service/__init__.py +++ b/google/ads/googleads/v14/services/services/geo_target_constant_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/geo_target_constant_service/client.py b/google/ads/googleads/v14/services/services/geo_target_constant_service/client.py index 9f24b0e41..64dcd93f3 100644 --- a/google/ads/googleads/v14/services/services/geo_target_constant_service/client.py +++ b/google/ads/googleads/v14/services/services/geo_target_constant_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,8 @@ class GeoTargetConstantServiceClientMeta(type): _transport_registry["grpc"] = GeoTargetConstantServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[GeoTargetConstantServiceTransport]: """Returns an appropriate transport class. @@ -180,7 +181,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -193,7 +196,9 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -206,9 +211,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -217,9 +226,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -228,9 +241,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -239,10 +256,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -429,8 +450,10 @@ def suggest_geo_target_constants( request, geo_target_constant_service.SuggestGeoTargetConstantsRequest, ): - request = geo_target_constant_service.SuggestGeoTargetConstantsRequest( - request + request = ( + geo_target_constant_service.SuggestGeoTargetConstantsRequest( + request + ) ) # Wrap the RPC method; this adds retry and timeout information, @@ -441,7 +464,10 @@ def suggest_geo_target_constants( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -450,7 +476,9 @@ def suggest_geo_target_constants( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/__init__.py b/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/__init__.py index e6c3d2b53..7cca14f45 100644 --- a/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.py b/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.py index 5eeec5eea..f261bce4e 100644 --- a/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.py b/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.py index 5a6e3b073..8e560313e 100644 --- a/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/google_ads_field_service/__init__.py b/google/ads/googleads/v14/services/services/google_ads_field_service/__init__.py index 56381058c..ea53b0e5a 100644 --- a/google/ads/googleads/v14/services/services/google_ads_field_service/__init__.py +++ b/google/ads/googleads/v14/services/services/google_ads_field_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/google_ads_field_service/client.py b/google/ads/googleads/v14/services/services/google_ads_field_service/client.py index aa2305a80..236457616 100644 --- a/google/ads/googleads/v14/services/services/google_ads_field_service/client.py +++ b/google/ads/googleads/v14/services/services/google_ads_field_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,8 @@ class GoogleAdsFieldServiceClientMeta(type): _transport_registry["grpc"] = GoogleAdsFieldServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[GoogleAdsFieldServiceTransport]: """Returns an appropriate transport class. @@ -179,7 +180,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def google_ads_field_path(google_ads_field: str,) -> str: + def google_ads_field_path( + google_ads_field: str, + ) -> str: """Returns a fully-qualified google_ads_field string.""" return "googleAdsFields/{google_ads_field}".format( google_ads_field=google_ads_field, @@ -192,7 +195,9 @@ def parse_google_ads_field_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -205,9 +210,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -216,9 +225,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -227,9 +240,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -238,10 +255,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -459,7 +480,10 @@ def get_google_ads_field( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -540,13 +564,19 @@ def search_google_ads_fields( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # This method is paged; wrap the response in a pager, which provides # an `__iter__` convenience method. response = pagers.SearchGoogleAdsFieldsPager( - method=rpc, request=request, response=response, metadata=metadata, + method=rpc, + request=request, + response=response, + metadata=metadata, ) # Done; return the response. @@ -555,7 +585,9 @@ def search_google_ads_fields( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/google_ads_field_service/pagers.py b/google/ads/googleads/v14/services/services/google_ads_field_service/pagers.py index f5bb6e135..043ab3b14 100644 --- a/google/ads/googleads/v14/services/services/google_ads_field_service/pagers.py +++ b/google/ads/googleads/v14/services/services/google_ads_field_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/google_ads_field_service/transports/__init__.py b/google/ads/googleads/v14/services/services/google_ads_field_service/transports/__init__.py index a34b27081..7a7342f96 100644 --- a/google/ads/googleads/v14/services/services/google_ads_field_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/google_ads_field_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/google_ads_field_service/transports/base.py b/google/ads/googleads/v14/services/services/google_ads_field_service/transports/base.py index 869fa7c5a..8a510dd1b 100644 --- a/google/ads/googleads/v14/services/services/google_ads_field_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/google_ads_field_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -138,9 +140,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.py b/google/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.py index bbed001c5..16727c5ac 100644 --- a/google/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -136,8 +136,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -147,8 +149,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -231,8 +235,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/google_ads_service/__init__.py b/google/ads/googleads/v14/services/services/google_ads_service/__init__.py index 34ecec17f..a75af97f9 100644 --- a/google/ads/googleads/v14/services/services/google_ads_service/__init__.py +++ b/google/ads/googleads/v14/services/services/google_ads_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/google_ads_service/client.py b/google/ads/googleads/v14/services/services/google_ads_service/client.py index 9c16e7ede..c31dddc23 100644 --- a/google/ads/googleads/v14/services/services/google_ads_service/client.py +++ b/google/ads/googleads/v14/services/services/google_ads_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class GoogleAdsServiceClientMeta(type): _transport_registry["grpc"] = GoogleAdsServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[GoogleAdsServiceTransport]: """Returns an appropriate transport class. @@ -189,11 +190,13 @@ def __exit__(self, type, value, traceback): @staticmethod def accessible_bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified accessible_bidding_strategy string.""" return "customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -206,10 +209,16 @@ def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def account_budget_path(customer_id: str, account_budget_id: str,) -> str: + def account_budget_path( + customer_id: str, + account_budget_id: str, + ) -> str: """Returns a fully-qualified account_budget string.""" - return "customers/{customer_id}/accountBudgets/{account_budget_id}".format( - customer_id=customer_id, account_budget_id=account_budget_id, + return ( + "customers/{customer_id}/accountBudgets/{account_budget_id}".format( + customer_id=customer_id, + account_budget_id=account_budget_id, + ) ) @staticmethod @@ -223,7 +232,8 @@ def parse_account_budget_path(path: str) -> Dict[str, str]: @staticmethod def account_budget_proposal_path( - customer_id: str, account_budget_proposal_id: str, + customer_id: str, + account_budget_proposal_id: str, ) -> str: """Returns a fully-qualified account_budget_proposal string.""" return "customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}".format( @@ -241,10 +251,14 @@ def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def account_link_path(customer_id: str, account_link_id: str,) -> str: + def account_link_path( + customer_id: str, + account_link_id: str, + ) -> str: """Returns a fully-qualified account_link string.""" return "customers/{customer_id}/accountLinks/{account_link_id}".format( - customer_id=customer_id, account_link_id=account_link_id, + customer_id=customer_id, + account_link_id=account_link_id, ) @staticmethod @@ -257,10 +271,14 @@ def parse_account_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def ad_path(customer_id: str, ad_id: str,) -> str: + def ad_path( + customer_id: str, + ad_id: str, + ) -> str: """Returns a fully-qualified ad string.""" return "customers/{customer_id}/ads/{ad_id}".format( - customer_id=customer_id, ad_id=ad_id, + customer_id=customer_id, + ad_id=ad_id, ) @staticmethod @@ -272,10 +290,14 @@ def parse_ad_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def ad_group_path(customer_id: str, ad_group_id: str,) -> str: + def ad_group_path( + customer_id: str, + ad_group_id: str, + ) -> str: """Returns a fully-qualified ad_group string.""" return "customers/{customer_id}/adGroups/{ad_group_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, + customer_id=customer_id, + ad_group_id=ad_group_id, ) @staticmethod @@ -289,11 +311,17 @@ def parse_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_path( - customer_id: str, ad_group_id: str, ad_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, ) -> str: """Returns a fully-qualified ad_group_ad string.""" - return "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, ad_id=ad_id, + return ( + "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format( + customer_id=customer_id, + ad_group_id=ad_group_id, + ad_id=ad_id, + ) ) @staticmethod @@ -361,7 +389,10 @@ def parse_ad_group_ad_asset_view_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_ad_label_path( - customer_id: str, ad_group_id: str, ad_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + ad_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_ad_label string.""" return "customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}".format( @@ -382,7 +413,10 @@ def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_asset_path( - customer_id: str, ad_group_id: str, asset_id: str, field_type: str, + customer_id: str, + ad_group_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified ad_group_asset string.""" return "customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}".format( @@ -403,7 +437,9 @@ def parse_ad_group_asset_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_asset_set_path( - customer_id: str, ad_group_id: str, asset_set_id: str, + customer_id: str, + ad_group_id: str, + asset_set_id: str, ) -> str: """Returns a fully-qualified ad_group_asset_set string.""" return "customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}".format( @@ -423,7 +459,9 @@ def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_audience_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_audience_view string.""" return "customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}".format( @@ -443,7 +481,9 @@ def parse_ad_group_audience_view_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_bid_modifier_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_bid_modifier string.""" return "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}".format( @@ -463,7 +503,9 @@ def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion string.""" return "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( @@ -507,7 +549,10 @@ def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_criterion_label_path( - customer_id: str, ad_group_id: str, criterion_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_criterion_label string.""" return "customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}".format( @@ -558,7 +603,9 @@ def parse_ad_group_criterion_simulation_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_customizer_path( - customer_id: str, ad_group_id: str, customizer_attribute_id: str, + customer_id: str, + ad_group_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified ad_group_customizer string.""" return "customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}".format( @@ -578,7 +625,9 @@ def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_extension_setting_path( - customer_id: str, ad_group_id: str, extension_type: str, + customer_id: str, + ad_group_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified ad_group_extension_setting string.""" return "customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}".format( @@ -598,11 +647,15 @@ def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_feed_path( - customer_id: str, ad_group_id: str, feed_id: str, + customer_id: str, + ad_group_id: str, + feed_id: str, ) -> str: """Returns a fully-qualified ad_group_feed string.""" return "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, feed_id=feed_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + feed_id=feed_id, ) @staticmethod @@ -616,11 +669,15 @@ def parse_ad_group_feed_path(path: str) -> Dict[str, str]: @staticmethod def ad_group_label_path( - customer_id: str, ad_group_id: str, label_id: str, + customer_id: str, + ad_group_id: str, + label_id: str, ) -> str: """Returns a fully-qualified ad_group_label string.""" return "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}".format( - customer_id=customer_id, ad_group_id=ad_group_id, label_id=label_id, + customer_id=customer_id, + ad_group_id=ad_group_id, + label_id=label_id, ) @staticmethod @@ -686,7 +743,9 @@ def parse_ad_parameter_path(path: str) -> Dict[str, str]: @staticmethod def ad_schedule_view_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified ad_schedule_view string.""" return "customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}".format( @@ -706,7 +765,9 @@ def parse_ad_schedule_view_path(path: str) -> Dict[str, str]: @staticmethod def age_range_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified age_range_view string.""" return "customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}".format( @@ -725,10 +786,14 @@ def parse_age_range_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -740,10 +805,16 @@ def parse_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_field_type_view_path(customer_id: str, field_type: str,) -> str: + def asset_field_type_view_path( + customer_id: str, + field_type: str, + ) -> str: """Returns a fully-qualified asset_field_type_view string.""" - return "customers/{customer_id}/assetFieldTypeViews/{field_type}".format( - customer_id=customer_id, field_type=field_type, + return ( + "customers/{customer_id}/assetFieldTypeViews/{field_type}".format( + customer_id=customer_id, + field_type=field_type, + ) ) @staticmethod @@ -756,10 +827,14 @@ def parse_asset_field_type_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_group_path(customer_id: str, asset_group_id: str,) -> str: + def asset_group_path( + customer_id: str, + asset_group_id: str, + ) -> str: """Returns a fully-qualified asset_group string.""" return "customers/{customer_id}/assetGroups/{asset_group_id}".format( - customer_id=customer_id, asset_group_id=asset_group_id, + customer_id=customer_id, + asset_group_id=asset_group_id, ) @staticmethod @@ -773,7 +848,10 @@ def parse_asset_group_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_asset_path( - customer_id: str, asset_group_id: str, asset_id: str, field_type: str, + customer_id: str, + asset_group_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified asset_group_asset string.""" return "customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}".format( @@ -794,7 +872,9 @@ def parse_asset_group_asset_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_listing_group_filter_path( - customer_id: str, asset_group_id: str, listing_group_filter_id: str, + customer_id: str, + asset_group_id: str, + listing_group_filter_id: str, ) -> str: """Returns a fully-qualified asset_group_listing_group_filter string.""" return "customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}".format( @@ -816,7 +896,9 @@ def parse_asset_group_listing_group_filter_path( @staticmethod def asset_group_product_group_view_path( - customer_id: str, asset_group_id: str, listing_group_filter_id: str, + customer_id: str, + asset_group_id: str, + listing_group_filter_id: str, ) -> str: """Returns a fully-qualified asset_group_product_group_view string.""" return "customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}".format( @@ -836,7 +918,9 @@ def parse_asset_group_product_group_view_path(path: str) -> Dict[str, str]: @staticmethod def asset_group_signal_path( - customer_id: str, asset_group_id: str, criterion_id: str, + customer_id: str, + asset_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified asset_group_signal string.""" return "customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}".format( @@ -855,10 +939,14 @@ def parse_asset_group_signal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified asset_set string.""" return "customers/{customer_id}/assetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + customer_id=customer_id, + asset_set_id=asset_set_id, ) @staticmethod @@ -872,7 +960,9 @@ def parse_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def asset_set_asset_path( - customer_id: str, asset_set_id: str, asset_id: str, + customer_id: str, + asset_set_id: str, + asset_id: str, ) -> str: """Returns a fully-qualified asset_set_asset string.""" return "customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}".format( @@ -891,10 +981,16 @@ def parse_asset_set_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_set_type_view_path(customer_id: str, asset_set_type: str,) -> str: + def asset_set_type_view_path( + customer_id: str, + asset_set_type: str, + ) -> str: """Returns a fully-qualified asset_set_type_view string.""" - return "customers/{customer_id}/assetSetTypeViews/{asset_set_type}".format( - customer_id=customer_id, asset_set_type=asset_set_type, + return ( + "customers/{customer_id}/assetSetTypeViews/{asset_set_type}".format( + customer_id=customer_id, + asset_set_type=asset_set_type, + ) ) @staticmethod @@ -907,10 +1003,14 @@ def parse_asset_set_type_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def audience_path(customer_id: str, audience_id: str,) -> str: + def audience_path( + customer_id: str, + audience_id: str, + ) -> str: """Returns a fully-qualified audience string.""" return "customers/{customer_id}/audiences/{audience_id}".format( - customer_id=customer_id, audience_id=audience_id, + customer_id=customer_id, + audience_id=audience_id, ) @staticmethod @@ -923,10 +1023,14 @@ def parse_audience_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def batch_job_path(customer_id: str, batch_job_id: str,) -> str: + def batch_job_path( + customer_id: str, + batch_job_id: str, + ) -> str: """Returns a fully-qualified batch_job string.""" return "customers/{customer_id}/batchJobs/{batch_job_id}".format( - customer_id=customer_id, batch_job_id=batch_job_id, + customer_id=customer_id, + batch_job_id=batch_job_id, ) @staticmethod @@ -940,11 +1044,13 @@ def parse_batch_job_path(path: str) -> Dict[str, str]: @staticmethod def bidding_data_exclusion_path( - customer_id: str, seasonality_event_id: str, + customer_id: str, + seasonality_event_id: str, ) -> str: """Returns a fully-qualified bidding_data_exclusion string.""" return "customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}".format( - customer_id=customer_id, seasonality_event_id=seasonality_event_id, + customer_id=customer_id, + seasonality_event_id=seasonality_event_id, ) @staticmethod @@ -958,11 +1064,13 @@ def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: @staticmethod def bidding_seasonality_adjustment_path( - customer_id: str, seasonality_event_id: str, + customer_id: str, + seasonality_event_id: str, ) -> str: """Returns a fully-qualified bidding_seasonality_adjustment string.""" return "customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}".format( - customer_id=customer_id, seasonality_event_id=seasonality_event_id, + customer_id=customer_id, + seasonality_event_id=seasonality_event_id, ) @staticmethod @@ -976,11 +1084,13 @@ def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: @staticmethod def bidding_strategy_path( - customer_id: str, bidding_strategy_id: str, + customer_id: str, + bidding_strategy_id: str, ) -> str: """Returns a fully-qualified bidding_strategy string.""" return "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}".format( - customer_id=customer_id, bidding_strategy_id=bidding_strategy_id, + customer_id=customer_id, + bidding_strategy_id=bidding_strategy_id, ) @staticmethod @@ -1021,10 +1131,16 @@ def parse_bidding_strategy_simulation_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def billing_setup_path(customer_id: str, billing_setup_id: str,) -> str: + def billing_setup_path( + customer_id: str, + billing_setup_id: str, + ) -> str: """Returns a fully-qualified billing_setup string.""" - return "customers/{customer_id}/billingSetups/{billing_setup_id}".format( - customer_id=customer_id, billing_setup_id=billing_setup_id, + return ( + "customers/{customer_id}/billingSetups/{billing_setup_id}".format( + customer_id=customer_id, + billing_setup_id=billing_setup_id, + ) ) @staticmethod @@ -1037,10 +1153,14 @@ def parse_billing_setup_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def call_view_path(customer_id: str, call_detail_id: str,) -> str: + def call_view_path( + customer_id: str, + call_detail_id: str, + ) -> str: """Returns a fully-qualified call_view string.""" return "customers/{customer_id}/callViews/{call_detail_id}".format( - customer_id=customer_id, call_detail_id=call_detail_id, + customer_id=customer_id, + call_detail_id=call_detail_id, ) @staticmethod @@ -1053,10 +1173,14 @@ def parse_call_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -1070,7 +1194,10 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def campaign_asset_path( - customer_id: str, campaign_id: str, asset_id: str, field_type: str, + customer_id: str, + campaign_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified campaign_asset string.""" return "customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}".format( @@ -1091,7 +1218,9 @@ def parse_campaign_asset_path(path: str) -> Dict[str, str]: @staticmethod def campaign_asset_set_path( - customer_id: str, campaign_id: str, asset_set_id: str, + customer_id: str, + campaign_id: str, + asset_set_id: str, ) -> str: """Returns a fully-qualified campaign_asset_set string.""" return "customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}".format( @@ -1111,7 +1240,9 @@ def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: @staticmethod def campaign_audience_view_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_audience_view string.""" return "customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}".format( @@ -1131,7 +1262,9 @@ def parse_campaign_audience_view_path(path: str) -> Dict[str, str]: @staticmethod def campaign_bid_modifier_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_bid_modifier string.""" return "customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}".format( @@ -1150,10 +1283,14 @@ def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_budget_path(customer_id: str, campaign_budget_id: str,) -> str: + def campaign_budget_path( + customer_id: str, + campaign_budget_id: str, + ) -> str: """Returns a fully-qualified campaign_budget string.""" return "customers/{customer_id}/campaignBudgets/{campaign_budget_id}".format( - customer_id=customer_id, campaign_budget_id=campaign_budget_id, + customer_id=customer_id, + campaign_budget_id=campaign_budget_id, ) @staticmethod @@ -1167,7 +1304,10 @@ def parse_campaign_budget_path(path: str) -> Dict[str, str]: @staticmethod def campaign_conversion_goal_path( - customer_id: str, campaign_id: str, category: str, source: str, + customer_id: str, + campaign_id: str, + category: str, + source: str, ) -> str: """Returns a fully-qualified campaign_conversion_goal string.""" return "customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}".format( @@ -1188,7 +1328,9 @@ def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: @staticmethod def campaign_criterion_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified campaign_criterion string.""" return "customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}".format( @@ -1208,7 +1350,9 @@ def parse_campaign_criterion_path(path: str) -> Dict[str, str]: @staticmethod def campaign_customizer_path( - customer_id: str, campaign_id: str, customizer_attribute_id: str, + customer_id: str, + campaign_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified campaign_customizer string.""" return "customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}".format( @@ -1228,7 +1372,9 @@ def parse_campaign_customizer_path(path: str) -> Dict[str, str]: @staticmethod def campaign_draft_path( - customer_id: str, base_campaign_id: str, draft_id: str, + customer_id: str, + base_campaign_id: str, + draft_id: str, ) -> str: """Returns a fully-qualified campaign_draft string.""" return "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}".format( @@ -1248,7 +1394,9 @@ def parse_campaign_draft_path(path: str) -> Dict[str, str]: @staticmethod def campaign_extension_setting_path( - customer_id: str, campaign_id: str, extension_type: str, + customer_id: str, + campaign_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified campaign_extension_setting string.""" return "customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}".format( @@ -1268,11 +1416,15 @@ def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: @staticmethod def campaign_feed_path( - customer_id: str, campaign_id: str, feed_id: str, + customer_id: str, + campaign_id: str, + feed_id: str, ) -> str: """Returns a fully-qualified campaign_feed string.""" return "customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}".format( - customer_id=customer_id, campaign_id=campaign_id, feed_id=feed_id, + customer_id=customer_id, + campaign_id=campaign_id, + feed_id=feed_id, ) @staticmethod @@ -1285,10 +1437,16 @@ def parse_campaign_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def campaign_group_path(customer_id: str, campaign_group_id: str,) -> str: + def campaign_group_path( + customer_id: str, + campaign_group_id: str, + ) -> str: """Returns a fully-qualified campaign_group string.""" - return "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( - customer_id=customer_id, campaign_group_id=campaign_group_id, + return ( + "customers/{customer_id}/campaignGroups/{campaign_group_id}".format( + customer_id=customer_id, + campaign_group_id=campaign_group_id, + ) ) @staticmethod @@ -1302,11 +1460,15 @@ def parse_campaign_group_path(path: str) -> Dict[str, str]: @staticmethod def campaign_label_path( - customer_id: str, campaign_id: str, label_id: str, + customer_id: str, + campaign_id: str, + label_id: str, ) -> str: """Returns a fully-qualified campaign_label string.""" return "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}".format( - customer_id=customer_id, campaign_id=campaign_id, label_id=label_id, + customer_id=customer_id, + campaign_id=campaign_id, + label_id=label_id, ) @staticmethod @@ -1318,9 +1480,33 @@ def parse_campaign_label_path(path: str) -> Dict[str, str]: ) return m.groupdict() if m else {} + @staticmethod + def campaign_search_term_insight_path( + customer_id: str, + campaign_id: str, + cluster_id: str, + ) -> str: + """Returns a fully-qualified campaign_search_term_insight string.""" + return "customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}".format( + customer_id=customer_id, + campaign_id=campaign_id, + cluster_id=cluster_id, + ) + + @staticmethod + def parse_campaign_search_term_insight_path(path: str) -> Dict[str, str]: + """Parses a campaign_search_term_insight path into its component segments.""" + m = re.match( + r"^customers/(?P.+?)/campaignSearchTermInsights/(?P.+?)~(?P.+?)$", + path, + ) + return m.groupdict() if m else {} + @staticmethod def campaign_shared_set_path( - customer_id: str, campaign_id: str, shared_set_id: str, + customer_id: str, + campaign_id: str, + shared_set_id: str, ) -> str: """Returns a fully-qualified campaign_shared_set string.""" return "customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}".format( @@ -1367,7 +1553,9 @@ def parse_campaign_simulation_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def carrier_constant_path(criterion_id: str,) -> str: + def carrier_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified carrier_constant string.""" return "carrierConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -1404,10 +1592,14 @@ def parse_change_event_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def change_status_path(customer_id: str, change_status_id: str,) -> str: + def change_status_path( + customer_id: str, + change_status_id: str, + ) -> str: """Returns a fully-qualified change_status string.""" return "customers/{customer_id}/changeStatus/{change_status_id}".format( - customer_id=customer_id, change_status_id=change_status_id, + customer_id=customer_id, + change_status_id=change_status_id, ) @staticmethod @@ -1420,10 +1612,16 @@ def parse_change_status_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def click_view_path(customer_id: str, date: str, gclid: str,) -> str: + def click_view_path( + customer_id: str, + date: str, + gclid: str, + ) -> str: """Returns a fully-qualified click_view string.""" return "customers/{customer_id}/clickViews/{date}~{gclid}".format( - customer_id=customer_id, date=date, gclid=gclid, + customer_id=customer_id, + date=date, + gclid=gclid, ) @staticmethod @@ -1437,11 +1635,13 @@ def parse_click_view_path(path: str) -> Dict[str, str]: @staticmethod def combined_audience_path( - customer_id: str, combined_audience_id: str, + customer_id: str, + combined_audience_id: str, ) -> str: """Returns a fully-qualified combined_audience string.""" return "customers/{customer_id}/combinedAudiences/{combined_audience_id}".format( - customer_id=customer_id, combined_audience_id=combined_audience_id, + customer_id=customer_id, + combined_audience_id=combined_audience_id, ) @staticmethod @@ -1455,11 +1655,13 @@ def parse_combined_audience_path(path: str) -> Dict[str, str]: @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -1473,7 +1675,8 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: @staticmethod def conversion_custom_variable_path( - customer_id: str, conversion_custom_variable_id: str, + customer_id: str, + conversion_custom_variable_id: str, ) -> str: """Returns a fully-qualified conversion_custom_variable string.""" return "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}".format( @@ -1492,11 +1695,13 @@ def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: @staticmethod def conversion_goal_campaign_config_path( - customer_id: str, campaign_id: str, + customer_id: str, + campaign_id: str, ) -> str: """Returns a fully-qualified conversion_goal_campaign_config string.""" return "customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -1510,7 +1715,8 @@ def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: @staticmethod def conversion_value_rule_path( - customer_id: str, conversion_value_rule_id: str, + customer_id: str, + conversion_value_rule_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule string.""" return "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}".format( @@ -1529,7 +1735,8 @@ def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: @staticmethod def conversion_value_rule_set_path( - customer_id: str, conversion_value_rule_set_id: str, + customer_id: str, + conversion_value_rule_set_id: str, ) -> str: """Returns a fully-qualified conversion_value_rule_set string.""" return "customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}".format( @@ -1547,9 +1754,13 @@ def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def currency_constant_path(code: str,) -> str: + def currency_constant_path( + code: str, + ) -> str: """Returns a fully-qualified currency_constant string.""" - return "currencyConstants/{code}".format(code=code,) + return "currencyConstants/{code}".format( + code=code, + ) @staticmethod def parse_currency_constant_path(path: str) -> Dict[str, str]: @@ -1558,10 +1769,14 @@ def parse_currency_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def custom_audience_path(customer_id: str, custom_audience_id: str,) -> str: + def custom_audience_path( + customer_id: str, + custom_audience_id: str, + ) -> str: """Returns a fully-qualified custom_audience string.""" return "customers/{customer_id}/customAudiences/{custom_audience_id}".format( - customer_id=customer_id, custom_audience_id=custom_audience_id, + customer_id=customer_id, + custom_audience_id=custom_audience_id, ) @staticmethod @@ -1574,10 +1789,14 @@ def parse_custom_audience_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def custom_conversion_goal_path(customer_id: str, goal_id: str,) -> str: + def custom_conversion_goal_path( + customer_id: str, + goal_id: str, + ) -> str: """Returns a fully-qualified custom_conversion_goal string.""" return "customers/{customer_id}/customConversionGoals/{goal_id}".format( - customer_id=customer_id, goal_id=goal_id, + customer_id=customer_id, + goal_id=goal_id, ) @staticmethod @@ -1590,9 +1809,13 @@ def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -1602,11 +1825,15 @@ def parse_customer_path(path: str) -> Dict[str, str]: @staticmethod def customer_asset_path( - customer_id: str, asset_id: str, field_type: str, + customer_id: str, + asset_id: str, + field_type: str, ) -> str: """Returns a fully-qualified customer_asset string.""" return "customers/{customer_id}/customerAssets/{asset_id}~{field_type}".format( - customer_id=customer_id, asset_id=asset_id, field_type=field_type, + customer_id=customer_id, + asset_id=asset_id, + field_type=field_type, ) @staticmethod @@ -1619,10 +1846,16 @@ def parse_customer_asset_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_asset_set_path(customer_id: str, asset_set_id: str,) -> str: + def customer_asset_set_path( + customer_id: str, + asset_set_id: str, + ) -> str: """Returns a fully-qualified customer_asset_set string.""" - return "customers/{customer_id}/customerAssetSets/{asset_set_id}".format( - customer_id=customer_id, asset_set_id=asset_set_id, + return ( + "customers/{customer_id}/customerAssetSets/{asset_set_id}".format( + customer_id=customer_id, + asset_set_id=asset_set_id, + ) ) @staticmethod @@ -1635,10 +1868,14 @@ def parse_customer_asset_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_client_path(customer_id: str, client_customer_id: str,) -> str: + def customer_client_path( + customer_id: str, + client_customer_id: str, + ) -> str: """Returns a fully-qualified customer_client string.""" return "customers/{customer_id}/customerClients/{client_customer_id}".format( - customer_id=customer_id, client_customer_id=client_customer_id, + customer_id=customer_id, + client_customer_id=client_customer_id, ) @staticmethod @@ -1652,7 +1889,9 @@ def parse_customer_client_path(path: str) -> Dict[str, str]: @staticmethod def customer_client_link_path( - customer_id: str, client_customer_id: str, manager_link_id: str, + customer_id: str, + client_customer_id: str, + manager_link_id: str, ) -> str: """Returns a fully-qualified customer_client_link string.""" return "customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}".format( @@ -1672,11 +1911,15 @@ def parse_customer_client_link_path(path: str) -> Dict[str, str]: @staticmethod def customer_conversion_goal_path( - customer_id: str, category: str, source: str, + customer_id: str, + category: str, + source: str, ) -> str: """Returns a fully-qualified customer_conversion_goal string.""" return "customers/{customer_id}/customerConversionGoals/{category}~{source}".format( - customer_id=customer_id, category=category, source=source, + customer_id=customer_id, + category=category, + source=source, ) @staticmethod @@ -1690,7 +1933,8 @@ def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: @staticmethod def customer_customizer_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customer_customizer string.""" return "customers/{customer_id}/customerCustomizers/{customizer_attribute_id}".format( @@ -1709,11 +1953,13 @@ def parse_customer_customizer_path(path: str) -> Dict[str, str]: @staticmethod def customer_extension_setting_path( - customer_id: str, extension_type: str, + customer_id: str, + extension_type: str, ) -> str: """Returns a fully-qualified customer_extension_setting string.""" return "customers/{customer_id}/customerExtensionSettings/{extension_type}".format( - customer_id=customer_id, extension_type=extension_type, + customer_id=customer_id, + extension_type=extension_type, ) @staticmethod @@ -1726,10 +1972,14 @@ def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_feed_path(customer_id: str, feed_id: str,) -> str: + def customer_feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified customer_feed string.""" return "customers/{customer_id}/customerFeeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -1742,10 +1992,14 @@ def parse_customer_feed_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_label_path(customer_id: str, label_id: str,) -> str: + def customer_label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified customer_label string.""" return "customers/{customer_id}/customerLabels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -1759,7 +2013,9 @@ def parse_customer_label_path(path: str) -> Dict[str, str]: @staticmethod def customer_manager_link_path( - customer_id: str, manager_customer_id: str, manager_link_id: str, + customer_id: str, + manager_customer_id: str, + manager_link_id: str, ) -> str: """Returns a fully-qualified customer_manager_link string.""" return "customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}".format( @@ -1779,11 +2035,13 @@ def parse_customer_manager_link_path(path: str) -> Dict[str, str]: @staticmethod def customer_negative_criterion_path( - customer_id: str, criterion_id: str, + customer_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified customer_negative_criterion string.""" return "customers/{customer_id}/customerNegativeCriteria/{criterion_id}".format( - customer_id=customer_id, criterion_id=criterion_id, + customer_id=customer_id, + criterion_id=criterion_id, ) @staticmethod @@ -1796,10 +2054,34 @@ def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def customer_user_access_path(customer_id: str, user_id: str,) -> str: + def customer_search_term_insight_path( + customer_id: str, + cluster_id: str, + ) -> str: + """Returns a fully-qualified customer_search_term_insight string.""" + return "customers/{customer_id}/customerSearchTermInsights/{cluster_id}".format( + customer_id=customer_id, + cluster_id=cluster_id, + ) + + @staticmethod + def parse_customer_search_term_insight_path(path: str) -> Dict[str, str]: + """Parses a customer_search_term_insight path into its component segments.""" + m = re.match( + r"^customers/(?P.+?)/customerSearchTermInsights/(?P.+?)$", + path, + ) + return m.groupdict() if m else {} + + @staticmethod + def customer_user_access_path( + customer_id: str, + user_id: str, + ) -> str: """Returns a fully-qualified customer_user_access string.""" return "customers/{customer_id}/customerUserAccesses/{user_id}".format( - customer_id=customer_id, user_id=user_id, + customer_id=customer_id, + user_id=user_id, ) @staticmethod @@ -1813,11 +2095,13 @@ def parse_customer_user_access_path(path: str) -> Dict[str, str]: @staticmethod def customer_user_access_invitation_path( - customer_id: str, invitation_id: str, + customer_id: str, + invitation_id: str, ) -> str: """Returns a fully-qualified customer_user_access_invitation string.""" return "customers/{customer_id}/customerUserAccessInvitations/{invitation_id}".format( - customer_id=customer_id, invitation_id=invitation_id, + customer_id=customer_id, + invitation_id=invitation_id, ) @staticmethod @@ -1830,10 +2114,14 @@ def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def custom_interest_path(customer_id: str, custom_interest_id: str,) -> str: + def custom_interest_path( + customer_id: str, + custom_interest_id: str, + ) -> str: """Returns a fully-qualified custom_interest string.""" return "customers/{customer_id}/customInterests/{custom_interest_id}".format( - customer_id=customer_id, custom_interest_id=custom_interest_id, + customer_id=customer_id, + custom_interest_id=custom_interest_id, ) @staticmethod @@ -1847,7 +2135,8 @@ def parse_custom_interest_path(path: str) -> Dict[str, str]: @staticmethod def customizer_attribute_path( - customer_id: str, customizer_attribute_id: str, + customer_id: str, + customizer_attribute_id: str, ) -> str: """Returns a fully-qualified customizer_attribute string.""" return "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}".format( @@ -1866,7 +2155,8 @@ def parse_customizer_attribute_path(path: str) -> Dict[str, str]: @staticmethod def detailed_demographic_path( - customer_id: str, detailed_demographic_id: str, + customer_id: str, + detailed_demographic_id: str, ) -> str: """Returns a fully-qualified detailed_demographic string.""" return "customers/{customer_id}/detailedDemographics/{detailed_demographic_id}".format( @@ -1885,7 +2175,9 @@ def parse_detailed_demographic_path(path: str) -> Dict[str, str]: @staticmethod def detail_placement_view_path( - customer_id: str, ad_group_id: str, base64_placement: str, + customer_id: str, + ad_group_id: str, + base64_placement: str, ) -> str: """Returns a fully-qualified detail_placement_view string.""" return "customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}".format( @@ -1905,7 +2197,9 @@ def parse_detail_placement_view_path(path: str) -> Dict[str, str]: @staticmethod def display_keyword_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified display_keyword_view string.""" return "customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}".format( @@ -1925,7 +2219,9 @@ def parse_display_keyword_view_path(path: str) -> Dict[str, str]: @staticmethod def distance_view_path( - customer_id: str, placeholder_chain_id: str, distance_bucket: str, + customer_id: str, + placeholder_chain_id: str, + distance_bucket: str, ) -> str: """Returns a fully-qualified distance_view string.""" return "customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}".format( @@ -1999,7 +2295,8 @@ def parse_dynamic_search_ads_search_term_view_path( @staticmethod def expanded_landing_page_view_path( - customer_id: str, expanded_final_url_fingerprint: str, + customer_id: str, + expanded_final_url_fingerprint: str, ) -> str: """Returns a fully-qualified expanded_landing_page_view string.""" return "customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}".format( @@ -2017,10 +2314,14 @@ def parse_expanded_landing_page_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def experiment_path(customer_id: str, trial_id: str,) -> str: + def experiment_path( + customer_id: str, + trial_id: str, + ) -> str: """Returns a fully-qualified experiment string.""" return "customers/{customer_id}/experiments/{trial_id}".format( - customer_id=customer_id, trial_id=trial_id, + customer_id=customer_id, + trial_id=trial_id, ) @staticmethod @@ -2034,7 +2335,9 @@ def parse_experiment_path(path: str) -> Dict[str, str]: @staticmethod def experiment_arm_path( - customer_id: str, trial_id: str, trial_arm_id: str, + customer_id: str, + trial_id: str, + trial_arm_id: str, ) -> str: """Returns a fully-qualified experiment_arm string.""" return "customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}".format( @@ -2053,10 +2356,16 @@ def parse_experiment_arm_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def extension_feed_item_path(customer_id: str, feed_item_id: str,) -> str: + def extension_feed_item_path( + customer_id: str, + feed_item_id: str, + ) -> str: """Returns a fully-qualified extension_feed_item string.""" - return "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( - customer_id=customer_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format( + customer_id=customer_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -2069,10 +2378,14 @@ def parse_extension_feed_item_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def feed_path(customer_id: str, feed_id: str,) -> str: + def feed_path( + customer_id: str, + feed_id: str, + ) -> str: """Returns a fully-qualified feed string.""" return "customers/{customer_id}/feeds/{feed_id}".format( - customer_id=customer_id, feed_id=feed_id, + customer_id=customer_id, + feed_id=feed_id, ) @staticmethod @@ -2085,11 +2398,17 @@ def parse_feed_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_path( - customer_id: str, feed_id: str, feed_item_id: str, + customer_id: str, + feed_id: str, + feed_item_id: str, ) -> str: """Returns a fully-qualified feed_item string.""" - return "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( - customer_id=customer_id, feed_id=feed_id, feed_item_id=feed_item_id, + return ( + "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format( + customer_id=customer_id, + feed_id=feed_id, + feed_item_id=feed_item_id, + ) ) @staticmethod @@ -2103,7 +2422,9 @@ def parse_feed_item_path(path: str) -> Dict[str, str]: @staticmethod def feed_item_set_path( - customer_id: str, feed_id: str, feed_item_set_id: str, + customer_id: str, + feed_id: str, + feed_item_set_id: str, ) -> str: """Returns a fully-qualified feed_item_set string.""" return "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}".format( @@ -2173,7 +2494,9 @@ def parse_feed_item_target_path(path: str) -> Dict[str, str]: @staticmethod def feed_mapping_path( - customer_id: str, feed_id: str, feed_mapping_id: str, + customer_id: str, + feed_id: str, + feed_mapping_id: str, ) -> str: """Returns a fully-qualified feed_mapping string.""" return "customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}".format( @@ -2193,11 +2516,13 @@ def parse_feed_mapping_path(path: str) -> Dict[str, str]: @staticmethod def feed_placeholder_view_path( - customer_id: str, placeholder_type: str, + customer_id: str, + placeholder_type: str, ) -> str: """Returns a fully-qualified feed_placeholder_view string.""" return "customers/{customer_id}/feedPlaceholderViews/{placeholder_type}".format( - customer_id=customer_id, placeholder_type=placeholder_type, + customer_id=customer_id, + placeholder_type=placeholder_type, ) @staticmethod @@ -2211,7 +2536,9 @@ def parse_feed_placeholder_view_path(path: str) -> Dict[str, str]: @staticmethod def gender_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified gender_view string.""" return "customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}".format( @@ -2231,7 +2558,9 @@ def parse_gender_view_path(path: str) -> Dict[str, str]: @staticmethod def geographic_view_path( - customer_id: str, country_criterion_id: str, location_type: str, + customer_id: str, + country_criterion_id: str, + location_type: str, ) -> str: """Returns a fully-qualified geographic_view string.""" return "customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}".format( @@ -2250,7 +2579,9 @@ def parse_geographic_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -2264,7 +2595,9 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: @staticmethod def group_placement_view_path( - customer_id: str, ad_group_id: str, base64_placement: str, + customer_id: str, + ad_group_id: str, + base64_placement: str, ) -> str: """Returns a fully-qualified group_placement_view string.""" return "customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}".format( @@ -2284,7 +2617,9 @@ def parse_group_placement_view_path(path: str) -> Dict[str, str]: @staticmethod def hotel_group_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified hotel_group_view string.""" return "customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}".format( @@ -2303,7 +2638,9 @@ def parse_hotel_group_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def hotel_performance_view_path(customer_id: str,) -> str: + def hotel_performance_view_path( + customer_id: str, + ) -> str: """Returns a fully-qualified hotel_performance_view string.""" return "customers/{customer_id}/hotelPerformanceView".format( customer_id=customer_id, @@ -2318,10 +2655,14 @@ def parse_hotel_performance_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def hotel_reconciliation_path(customer_id: str, commission_id: str,) -> str: + def hotel_reconciliation_path( + customer_id: str, + commission_id: str, + ) -> str: """Returns a fully-qualified hotel_reconciliation string.""" return "customers/{customer_id}/hotelReconciliations/{commission_id}".format( - customer_id=customer_id, commission_id=commission_id, + customer_id=customer_id, + commission_id=commission_id, ) @staticmethod @@ -2335,7 +2676,9 @@ def parse_hotel_reconciliation_path(path: str) -> Dict[str, str]: @staticmethod def income_range_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified income_range_view string.""" return "customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}".format( @@ -2354,10 +2697,14 @@ def parse_income_range_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def keyword_plan_path(customer_id: str, keyword_plan_id: str,) -> str: + def keyword_plan_path( + customer_id: str, + keyword_plan_id: str, + ) -> str: """Returns a fully-qualified keyword_plan string.""" return "customers/{customer_id}/keywordPlans/{keyword_plan_id}".format( - customer_id=customer_id, keyword_plan_id=keyword_plan_id, + customer_id=customer_id, + keyword_plan_id=keyword_plan_id, ) @staticmethod @@ -2371,7 +2718,8 @@ def parse_keyword_plan_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_ad_group_path( - customer_id: str, keyword_plan_ad_group_id: str, + customer_id: str, + keyword_plan_ad_group_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group string.""" return "customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}".format( @@ -2390,7 +2738,8 @@ def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_ad_group_keyword_path( - customer_id: str, keyword_plan_ad_group_keyword_id: str, + customer_id: str, + keyword_plan_ad_group_keyword_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group_keyword string.""" return "customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}".format( @@ -2409,7 +2758,8 @@ def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_path( - customer_id: str, keyword_plan_campaign_id: str, + customer_id: str, + keyword_plan_campaign_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign string.""" return "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}".format( @@ -2428,7 +2778,8 @@ def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_keyword_path( - customer_id: str, keyword_plan_campaign_keyword_id: str, + customer_id: str, + keyword_plan_campaign_keyword_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign_keyword string.""" return "customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}".format( @@ -2447,7 +2798,8 @@ def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: @staticmethod def keyword_theme_constant_path( - express_category_id: str, express_sub_category_id: str, + express_category_id: str, + express_sub_category_id: str, ) -> str: """Returns a fully-qualified keyword_theme_constant string.""" return "keywordThemeConstants/{express_category_id}~{express_sub_category_id}".format( @@ -2466,7 +2818,9 @@ def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: @staticmethod def keyword_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified keyword_view string.""" return "customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}".format( @@ -2485,10 +2839,14 @@ def parse_keyword_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -2501,7 +2859,8 @@ def parse_label_path(path: str) -> Dict[str, str]: @staticmethod def landing_page_view_path( - customer_id: str, unexpanded_final_url_fingerprint: str, + customer_id: str, + unexpanded_final_url_fingerprint: str, ) -> str: """Returns a fully-qualified landing_page_view string.""" return "customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}".format( @@ -2519,7 +2878,9 @@ def parse_landing_page_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def language_constant_path(criterion_id: str,) -> str: + def language_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified language_constant string.""" return "languageConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -2533,7 +2894,8 @@ def parse_language_constant_path(path: str) -> Dict[str, str]: @staticmethod def lead_form_submission_data_path( - customer_id: str, lead_form_user_submission_id: str, + customer_id: str, + lead_form_user_submission_id: str, ) -> str: """Returns a fully-qualified lead_form_submission_data string.""" return "customers/{customer_id}/leadFormSubmissionData/{lead_form_user_submission_id}".format( @@ -2551,10 +2913,14 @@ def parse_lead_form_submission_data_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def life_event_path(customer_id: str, life_event_id: str,) -> str: + def life_event_path( + customer_id: str, + life_event_id: str, + ) -> str: """Returns a fully-qualified life_event string.""" return "customers/{customer_id}/lifeEvents/{life_event_id}".format( - customer_id=customer_id, life_event_id=life_event_id, + customer_id=customer_id, + life_event_id=life_event_id, ) @staticmethod @@ -2568,7 +2934,9 @@ def parse_life_event_path(path: str) -> Dict[str, str]: @staticmethod def location_view_path( - customer_id: str, campaign_id: str, criterion_id: str, + customer_id: str, + campaign_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified location_view string.""" return "customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}".format( @@ -2588,7 +2956,9 @@ def parse_location_view_path(path: str) -> Dict[str, str]: @staticmethod def managed_placement_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified managed_placement_view string.""" return "customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}".format( @@ -2607,10 +2977,14 @@ def parse_managed_placement_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def media_file_path(customer_id: str, media_file_id: str,) -> str: + def media_file_path( + customer_id: str, + media_file_id: str, + ) -> str: """Returns a fully-qualified media_file string.""" return "customers/{customer_id}/mediaFiles/{media_file_id}".format( - customer_id=customer_id, media_file_id=media_file_id, + customer_id=customer_id, + media_file_id=media_file_id, ) @staticmethod @@ -2623,7 +2997,9 @@ def parse_media_file_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def mobile_app_category_constant_path(mobile_app_category_id: str,) -> str: + def mobile_app_category_constant_path( + mobile_app_category_id: str, + ) -> str: """Returns a fully-qualified mobile_app_category_constant string.""" return "mobileAppCategoryConstants/{mobile_app_category_id}".format( mobile_app_category_id=mobile_app_category_id, @@ -2639,7 +3015,9 @@ def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def mobile_device_constant_path(criterion_id: str,) -> str: + def mobile_device_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified mobile_device_constant string.""" return "mobileDeviceConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -2653,7 +3031,8 @@ def parse_mobile_device_constant_path(path: str) -> Dict[str, str]: @staticmethod def offline_user_data_job_path( - customer_id: str, offline_user_data_update_id: str, + customer_id: str, + offline_user_data_update_id: str, ) -> str: """Returns a fully-qualified offline_user_data_job string.""" return "customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}".format( @@ -2671,7 +3050,9 @@ def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def operating_system_version_constant_path(criterion_id: str,) -> str: + def operating_system_version_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified operating_system_version_constant string.""" return "operatingSystemVersionConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -2713,7 +3094,9 @@ def parse_paid_organic_search_term_view_path(path: str) -> Dict[str, str]: @staticmethod def parental_status_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified parental_status_view string.""" return "customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}".format( @@ -2733,11 +3116,13 @@ def parse_parental_status_view_path(path: str) -> Dict[str, str]: @staticmethod def payments_account_path( - customer_id: str, payments_account_id: str, + customer_id: str, + payments_account_id: str, ) -> str: """Returns a fully-qualified payments_account string.""" return "customers/{customer_id}/paymentsAccounts/{payments_account_id}".format( - customer_id=customer_id, payments_account_id=payments_account_id, + customer_id=customer_id, + payments_account_id=payments_account_id, ) @staticmethod @@ -2750,10 +3135,14 @@ def parse_payments_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def per_store_view_path(customer_id: str, place_id: str,) -> str: + def per_store_view_path( + customer_id: str, + place_id: str, + ) -> str: """Returns a fully-qualified per_store_view string.""" return "customers/{customer_id}/perStoreViews/{place_id}".format( - customer_id=customer_id, place_id=place_id, + customer_id=customer_id, + place_id=place_id, ) @staticmethod @@ -2767,11 +3156,15 @@ def parse_per_store_view_path(path: str) -> Dict[str, str]: @staticmethod def product_bidding_category_constant_path( - country_code: str, level: str, id: str, + country_code: str, + level: str, + id: str, ) -> str: """Returns a fully-qualified product_bidding_category_constant string.""" return "productBiddingCategoryConstants/{country_code}~{level}~{id}".format( - country_code=country_code, level=level, id=id, + country_code=country_code, + level=level, + id=id, ) @staticmethod @@ -2787,7 +3180,9 @@ def parse_product_bidding_category_constant_path( @staticmethod def product_group_view_path( - customer_id: str, adgroup_id: str, criterion_id: str, + customer_id: str, + adgroup_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified product_group_view string.""" return "customers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}".format( @@ -2806,10 +3201,14 @@ def parse_product_group_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def product_link_path(customer_id: str, product_link_id: str,) -> str: + def product_link_path( + customer_id: str, + product_link_id: str, + ) -> str: """Returns a fully-qualified product_link string.""" return "customers/{customer_id}/productLinks/{product_link_id}".format( - customer_id=customer_id, product_link_id=product_link_id, + customer_id=customer_id, + product_link_id=product_link_id, ) @staticmethod @@ -2822,7 +3221,9 @@ def parse_product_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def qualifying_question_path(qualifying_question_id: str,) -> str: + def qualifying_question_path( + qualifying_question_id: str, + ) -> str: """Returns a fully-qualified qualifying_question string.""" return "qualifyingQuestions/{qualifying_question_id}".format( qualifying_question_id=qualifying_question_id, @@ -2837,10 +3238,14 @@ def parse_qualifying_question_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def recommendation_path(customer_id: str, recommendation_id: str,) -> str: + def recommendation_path( + customer_id: str, + recommendation_id: str, + ) -> str: """Returns a fully-qualified recommendation string.""" return "customers/{customer_id}/recommendations/{recommendation_id}".format( - customer_id=customer_id, recommendation_id=recommendation_id, + customer_id=customer_id, + recommendation_id=recommendation_id, ) @staticmethod @@ -2854,7 +3259,8 @@ def parse_recommendation_path(path: str) -> Dict[str, str]: @staticmethod def remarketing_action_path( - customer_id: str, remarketing_action_id: str, + customer_id: str, + remarketing_action_id: str, ) -> str: """Returns a fully-qualified remarketing_action string.""" return "customers/{customer_id}/remarketingActions/{remarketing_action_id}".format( @@ -2873,7 +3279,10 @@ def parse_remarketing_action_path(path: str) -> Dict[str, str]: @staticmethod def search_term_view_path( - customer_id: str, campaign_id: str, ad_group_id: str, query: str, + customer_id: str, + campaign_id: str, + ad_group_id: str, + query: str, ) -> str: """Returns a fully-qualified search_term_view string.""" return "customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}".format( @@ -2894,7 +3303,9 @@ def parse_search_term_view_path(path: str) -> Dict[str, str]: @staticmethod def shared_criterion_path( - customer_id: str, shared_set_id: str, criterion_id: str, + customer_id: str, + shared_set_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified shared_criterion string.""" return "customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}".format( @@ -2913,10 +3324,14 @@ def parse_shared_criterion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def shared_set_path(customer_id: str, shared_set_id: str,) -> str: + def shared_set_path( + customer_id: str, + shared_set_id: str, + ) -> str: """Returns a fully-qualified shared_set string.""" return "customers/{customer_id}/sharedSets/{shared_set_id}".format( - customer_id=customer_id, shared_set_id=shared_set_id, + customer_id=customer_id, + shared_set_id=shared_set_id, ) @staticmethod @@ -2929,7 +3344,9 @@ def parse_shared_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def shopping_performance_view_path(customer_id: str,) -> str: + def shopping_performance_view_path( + customer_id: str, + ) -> str: """Returns a fully-qualified shopping_performance_view string.""" return "customers/{customer_id}/shoppingPerformanceView".format( customer_id=customer_id, @@ -2945,11 +3362,15 @@ def parse_shopping_performance_view_path(path: str) -> Dict[str, str]: @staticmethod def smart_campaign_search_term_view_path( - customer_id: str, campaign_id: str, query: str, + customer_id: str, + campaign_id: str, + query: str, ) -> str: """Returns a fully-qualified smart_campaign_search_term_view string.""" return "customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}".format( - customer_id=customer_id, campaign_id=campaign_id, query=query, + customer_id=customer_id, + campaign_id=campaign_id, + query=query, ) @staticmethod @@ -2962,10 +3383,14 @@ def parse_smart_campaign_search_term_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def smart_campaign_setting_path(customer_id: str, campaign_id: str,) -> str: + def smart_campaign_setting_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified smart_campaign_setting string.""" return "customers/{customer_id}/smartCampaignSettings/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -2979,11 +3404,13 @@ def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: @staticmethod def third_party_app_analytics_link_path( - customer_id: str, customer_link_id: str, + customer_id: str, + customer_link_id: str, ) -> str: """Returns a fully-qualified third_party_app_analytics_link string.""" return "customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}".format( - customer_id=customer_id, customer_link_id=customer_link_id, + customer_id=customer_id, + customer_link_id=customer_link_id, ) @staticmethod @@ -2996,9 +3423,13 @@ def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def topic_constant_path(topic_id: str,) -> str: + def topic_constant_path( + topic_id: str, + ) -> str: """Returns a fully-qualified topic_constant string.""" - return "topicConstants/{topic_id}".format(topic_id=topic_id,) + return "topicConstants/{topic_id}".format( + topic_id=topic_id, + ) @staticmethod def parse_topic_constant_path(path: str) -> Dict[str, str]: @@ -3008,7 +3439,9 @@ def parse_topic_constant_path(path: str) -> Dict[str, str]: @staticmethod def topic_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified topic_view string.""" return "customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}".format( @@ -3028,7 +3461,9 @@ def parse_topic_view_path(path: str) -> Dict[str, str]: @staticmethod def travel_activity_group_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified travel_activity_group_view string.""" return "customers/{customer_id}/travelActivityGroupViews/{ad_group_id}~{criterion_id}".format( @@ -3047,7 +3482,9 @@ def parse_travel_activity_group_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def travel_activity_performance_view_path(customer_id: str,) -> str: + def travel_activity_performance_view_path( + customer_id: str, + ) -> str: """Returns a fully-qualified travel_activity_performance_view string.""" return "customers/{customer_id}/travelActivityPerformanceViews".format( customer_id=customer_id, @@ -3065,10 +3502,16 @@ def parse_travel_activity_performance_view_path( return m.groupdict() if m else {} @staticmethod - def user_interest_path(customer_id: str, user_interest_id: str,) -> str: + def user_interest_path( + customer_id: str, + user_interest_id: str, + ) -> str: """Returns a fully-qualified user_interest string.""" - return "customers/{customer_id}/userInterests/{user_interest_id}".format( - customer_id=customer_id, user_interest_id=user_interest_id, + return ( + "customers/{customer_id}/userInterests/{user_interest_id}".format( + customer_id=customer_id, + user_interest_id=user_interest_id, + ) ) @staticmethod @@ -3081,10 +3524,14 @@ def parse_user_interest_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def user_list_path(customer_id: str, user_list_id: str,) -> str: + def user_list_path( + customer_id: str, + user_list_id: str, + ) -> str: """Returns a fully-qualified user_list string.""" return "customers/{customer_id}/userLists/{user_list_id}".format( - customer_id=customer_id, user_list_id=user_list_id, + customer_id=customer_id, + user_list_id=user_list_id, ) @staticmethod @@ -3098,7 +3545,9 @@ def parse_user_list_path(path: str) -> Dict[str, str]: @staticmethod def user_location_view_path( - customer_id: str, country_criterion_id: str, is_targeting_location: str, + customer_id: str, + country_criterion_id: str, + is_targeting_location: str, ) -> str: """Returns a fully-qualified user_location_view string.""" return "customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}".format( @@ -3117,10 +3566,14 @@ def parse_user_location_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def video_path(customer_id: str, video_id: str,) -> str: + def video_path( + customer_id: str, + video_id: str, + ) -> str: """Returns a fully-qualified video string.""" return "customers/{customer_id}/videos/{video_id}".format( - customer_id=customer_id, video_id=video_id, + customer_id=customer_id, + video_id=video_id, ) @staticmethod @@ -3133,7 +3586,9 @@ def parse_video_path(path: str) -> Dict[str, str]: @staticmethod def webpage_view_path( - customer_id: str, ad_group_id: str, criterion_id: str, + customer_id: str, + ad_group_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified webpage_view string.""" return "customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}".format( @@ -3152,7 +3607,9 @@ def parse_webpage_view_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -3165,9 +3622,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -3176,9 +3637,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -3187,9 +3652,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -3198,10 +3667,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -3428,13 +3901,19 @@ def search( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # This method is paged; wrap the response in a pager, which provides # an `__iter__` convenience method. response = pagers.SearchPager( - method=rpc, request=request, response=response, metadata=metadata, + method=rpc, + request=request, + response=response, + metadata=metadata, ) # Done; return the response. @@ -3527,7 +4006,10 @@ def search_stream( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -3702,7 +4184,10 @@ def mutate( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -3711,7 +4196,9 @@ def mutate( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/google_ads_service/pagers.py b/google/ads/googleads/v14/services/services/google_ads_service/pagers.py index e79c2127a..748dc8d74 100644 --- a/google/ads/googleads/v14/services/services/google_ads_service/pagers.py +++ b/google/ads/googleads/v14/services/services/google_ads_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/google_ads_service/transports/__init__.py b/google/ads/googleads/v14/services/services/google_ads_service/transports/__init__.py index 77f548189..b2091c6a8 100644 --- a/google/ads/googleads/v14/services/services/google_ads_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/google_ads_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/google_ads_service/transports/base.py b/google/ads/googleads/v14/services/services/google_ads_service/transports/base.py index 91b8e1e52..fc53a46da 100644 --- a/google/ads/googleads/v14/services/services/google_ads_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/google_ads_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -123,7 +125,9 @@ def _prep_wrapped_messages(self, client_info): # Precompute the wrapped methods. self._wrapped_methods = { self.search: gapic_v1.method.wrap_method( - self.search, default_timeout=None, client_info=client_info, + self.search, + default_timeout=None, + client_info=client_info, ), self.search_stream: gapic_v1.method.wrap_method( self.search_stream, @@ -131,16 +135,18 @@ def _prep_wrapped_messages(self, client_info): client_info=client_info, ), self.mutate: gapic_v1.method.wrap_method( - self.mutate, default_timeout=None, client_info=client_info, + self.mutate, + default_timeout=None, + client_info=client_info, ), } def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/google_ads_service/transports/grpc.py b/google/ads/googleads/v14/services/services/google_ads_service/transports/grpc.py index 319544661..14d61134a 100644 --- a/google/ads/googleads/v14/services/services/google_ads_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/google_ads_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/invoice_service/__init__.py b/google/ads/googleads/v14/services/services/invoice_service/__init__.py index 16c03e654..954837c5f 100644 --- a/google/ads/googleads/v14/services/services/invoice_service/__init__.py +++ b/google/ads/googleads/v14/services/services/invoice_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/invoice_service/client.py b/google/ads/googleads/v14/services/services/invoice_service/client.py index ef63c6440..b914a9ab9 100644 --- a/google/ads/googleads/v14/services/services/invoice_service/client.py +++ b/google/ads/googleads/v14/services/services/invoice_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -53,7 +53,8 @@ class InvoiceServiceClientMeta(type): _transport_registry["grpc"] = InvoiceServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[InvoiceServiceTransport]: """Returns an appropriate transport class. @@ -178,10 +179,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def invoice_path(customer_id: str, invoice_id: str,) -> str: + def invoice_path( + customer_id: str, + invoice_id: str, + ) -> str: """Returns a fully-qualified invoice string.""" return "customers/{customer_id}/invoices/{invoice_id}".format( - customer_id=customer_id, invoice_id=invoice_id, + customer_id=customer_id, + invoice_id=invoice_id, ) @staticmethod @@ -194,7 +199,9 @@ def parse_invoice_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -207,9 +214,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -218,9 +229,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -229,9 +244,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -240,10 +259,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -496,7 +519,10 @@ def list_invoices( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -505,7 +531,9 @@ def list_invoices( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/invoice_service/transports/__init__.py b/google/ads/googleads/v14/services/services/invoice_service/transports/__init__.py index a9cc1a0a4..58f31836e 100644 --- a/google/ads/googleads/v14/services/services/invoice_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/invoice_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/invoice_service/transports/base.py b/google/ads/googleads/v14/services/services/invoice_service/transports/base.py index 51f225de7..ec4c3681c 100644 --- a/google/ads/googleads/v14/services/services/invoice_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/invoice_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/invoice_service/transports/grpc.py b/google/ads/googleads/v14/services/services/invoice_service/transports/grpc.py index fb1df1836..57399b2c0 100644 --- a/google/ads/googleads/v14/services/services/invoice_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/invoice_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -136,8 +136,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -147,8 +149,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -231,8 +235,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/__init__.py index 7e4d8f572..32e34be9f 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.py index 38df4ef1e..d156a285d 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class KeywordPlanAdGroupKeywordServiceClientMeta(type): _transport_registry["grpc"] = KeywordPlanAdGroupKeywordServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordPlanAdGroupKeywordServiceTransport]: """Returns an appropriate transport class. @@ -200,7 +201,8 @@ def __exit__(self, type, value, traceback): @staticmethod def keyword_plan_ad_group_path( - customer_id: str, keyword_plan_ad_group_id: str, + customer_id: str, + keyword_plan_ad_group_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group string.""" return "customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}".format( @@ -219,7 +221,8 @@ def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_ad_group_keyword_path( - customer_id: str, keyword_plan_ad_group_keyword_id: str, + customer_id: str, + keyword_plan_ad_group_keyword_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group_keyword string.""" return "customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}".format( @@ -237,7 +240,9 @@ def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -250,9 +255,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -261,9 +270,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -272,9 +285,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -283,10 +300,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -532,7 +553,10 @@ def mutate_keyword_plan_ad_group_keywords( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -541,7 +565,9 @@ def mutate_keyword_plan_ad_group_keywords( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/__init__.py index af16ce9ab..158c9f4dd 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.py index 0bc5614e7..5a613487d 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.py index 389bd72e3..d19e6a7fc 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -145,8 +145,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -156,8 +158,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -240,8 +244,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/__init__.py index 29af45a71..1c0078472 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.py index e573bc40f..c50d17869 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class KeywordPlanAdGroupServiceClientMeta(type): _transport_registry["grpc"] = KeywordPlanAdGroupServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordPlanAdGroupServiceTransport]: """Returns an appropriate transport class. @@ -193,7 +194,8 @@ def __exit__(self, type, value, traceback): @staticmethod def keyword_plan_ad_group_path( - customer_id: str, keyword_plan_ad_group_id: str, + customer_id: str, + keyword_plan_ad_group_id: str, ) -> str: """Returns a fully-qualified keyword_plan_ad_group string.""" return "customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}".format( @@ -212,7 +214,8 @@ def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_path( - customer_id: str, keyword_plan_campaign_id: str, + customer_id: str, + keyword_plan_campaign_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign string.""" return "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}".format( @@ -230,7 +233,9 @@ def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -243,9 +248,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -254,9 +263,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -265,9 +278,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -276,10 +293,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -500,8 +521,10 @@ def mutate_keyword_plan_ad_groups( request, keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest, ): - request = keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest( - request + request = ( + keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -526,7 +549,10 @@ def mutate_keyword_plan_ad_groups( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -535,7 +561,9 @@ def mutate_keyword_plan_ad_groups( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/__init__.py index ca6751b0d..13816b5e2 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.py index d8d21a98a..857a2794c 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.py index 5092b3f8b..5c99f55e4 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/__init__.py index ae37d0652..67dbf14e0 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.py index 5527a24ce..5492eae85 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class KeywordPlanCampaignKeywordServiceClientMeta(type): _transport_registry["grpc"] = KeywordPlanCampaignKeywordServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordPlanCampaignKeywordServiceTransport]: """Returns an appropriate transport class. @@ -198,7 +199,8 @@ def __exit__(self, type, value, traceback): @staticmethod def keyword_plan_campaign_path( - customer_id: str, keyword_plan_campaign_id: str, + customer_id: str, + keyword_plan_campaign_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign string.""" return "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}".format( @@ -217,7 +219,8 @@ def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_keyword_path( - customer_id: str, keyword_plan_campaign_keyword_id: str, + customer_id: str, + keyword_plan_campaign_keyword_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign_keyword string.""" return "customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}".format( @@ -235,7 +238,9 @@ def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -248,9 +253,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -259,9 +268,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -270,9 +283,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -281,10 +298,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -530,7 +551,10 @@ def mutate_keyword_plan_campaign_keywords( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -539,7 +563,9 @@ def mutate_keyword_plan_campaign_keywords( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/__init__.py index a1e7122de..be82d5f2b 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.py index 0a295eec0..8f3817d40 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.py index 7107b35a8..7eea32e14 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -146,8 +146,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -157,8 +159,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -241,8 +245,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/__init__.py index d6514881d..c41bdd42f 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.py index 1c14f61d5..371f3e0c0 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class KeywordPlanCampaignServiceClientMeta(type): _transport_registry["grpc"] = KeywordPlanCampaignServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordPlanCampaignServiceTransport]: """Returns an appropriate transport class. @@ -192,7 +193,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def geo_target_constant_path(criterion_id: str,) -> str: + def geo_target_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified geo_target_constant string.""" return "geoTargetConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -205,10 +208,14 @@ def parse_geo_target_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def keyword_plan_path(customer_id: str, keyword_plan_id: str,) -> str: + def keyword_plan_path( + customer_id: str, + keyword_plan_id: str, + ) -> str: """Returns a fully-qualified keyword_plan string.""" return "customers/{customer_id}/keywordPlans/{keyword_plan_id}".format( - customer_id=customer_id, keyword_plan_id=keyword_plan_id, + customer_id=customer_id, + keyword_plan_id=keyword_plan_id, ) @staticmethod @@ -222,7 +229,8 @@ def parse_keyword_plan_path(path: str) -> Dict[str, str]: @staticmethod def keyword_plan_campaign_path( - customer_id: str, keyword_plan_campaign_id: str, + customer_id: str, + keyword_plan_campaign_id: str, ) -> str: """Returns a fully-qualified keyword_plan_campaign string.""" return "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}".format( @@ -240,7 +248,9 @@ def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def language_constant_path(criterion_id: str,) -> str: + def language_constant_path( + criterion_id: str, + ) -> str: """Returns a fully-qualified language_constant string.""" return "languageConstants/{criterion_id}".format( criterion_id=criterion_id, @@ -253,7 +263,9 @@ def parse_language_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -266,9 +278,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -277,9 +293,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -288,9 +308,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -299,10 +323,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -523,8 +551,10 @@ def mutate_keyword_plan_campaigns( request, keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest, ): - request = keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest( - request + request = ( + keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -549,7 +579,10 @@ def mutate_keyword_plan_campaigns( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -558,7 +591,9 @@ def mutate_keyword_plan_campaigns( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/__init__.py index 79dad0abc..e429b4f7b 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.py index d8f0f35eb..d6e8a1a1d 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.py index 0779379a8..2c5b11d5a 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/__init__.py index 22dc0368d..afcc4f808 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/client.py b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/client.py index 88cd1cac7..e6275b225 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,7 +58,8 @@ class KeywordPlanIdeaServiceClientMeta(type): _transport_registry["grpc"] = KeywordPlanIdeaServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordPlanIdeaServiceTransport]: """Returns an appropriate transport class. @@ -181,7 +182,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -194,9 +197,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -205,9 +212,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -216,9 +227,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -227,10 +242,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -434,13 +453,19 @@ def generate_keyword_ideas( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # This method is paged; wrap the response in a pager, which provides # an `__iter__` convenience method. response = pagers.GenerateKeywordIdeasPager( - method=rpc, request=request, response=response, metadata=metadata, + method=rpc, + request=request, + response=response, + metadata=metadata, ) # Done; return the response. @@ -511,7 +536,10 @@ def generate_keyword_historical_metrics( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -579,7 +607,10 @@ def generate_ad_group_themes( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -631,8 +662,10 @@ def generate_keyword_forecast_metrics( request, keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest, ): - request = keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest( - request + request = ( + keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest( + request + ) ) # Wrap the RPC method; this adds retry and timeout information, @@ -651,7 +684,10 @@ def generate_keyword_forecast_metrics( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -660,7 +696,9 @@ def generate_keyword_forecast_metrics( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.py b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.py index a2eec17d1..2f8fe54a7 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/__init__.py index 75212a05d..b0546bd0b 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.py index ee4f9117e..ebd4db873 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -147,9 +149,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.py index 4b3910da2..4c2af3c4c 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_plan_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_service/__init__.py index cecf578a5..3349792a1 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_service/client.py b/google/ads/googleads/v14/services/services/keyword_plan_service/client.py index e6a8c8442..3117ef194 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class KeywordPlanServiceClientMeta(type): _transport_registry["grpc"] = KeywordPlanServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordPlanServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def keyword_plan_path(customer_id: str, keyword_plan_id: str,) -> str: + def keyword_plan_path( + customer_id: str, + keyword_plan_id: str, + ) -> str: """Returns a fully-qualified keyword_plan string.""" return "customers/{customer_id}/keywordPlans/{keyword_plan_id}".format( - customer_id=customer_id, keyword_plan_id=keyword_plan_id, + customer_id=customer_id, + keyword_plan_id=keyword_plan_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_keyword_plan_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -484,7 +507,10 @@ def mutate_keyword_plans( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -493,7 +519,9 @@ def mutate_keyword_plans( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_plan_service/transports/__init__.py index 7fc302ba2..600029131 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_plan_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_plan_service/transports/base.py index 05c3b21a0..223848cb2 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.py index 903b9d9e5..732302775 100644 --- a/google/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/__init__.py b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/__init__.py index 9a60be858..64b383282 100644 --- a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/client.py b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/client.py index a7dddcf7a..57c3db19f 100644 --- a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/client.py +++ b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,8 @@ class KeywordThemeConstantServiceClientMeta(type): _transport_registry["grpc"] = KeywordThemeConstantServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[KeywordThemeConstantServiceTransport]: """Returns an appropriate transport class. @@ -183,7 +184,8 @@ def __exit__(self, type, value, traceback): @staticmethod def keyword_theme_constant_path( - express_category_id: str, express_sub_category_id: str, + express_category_id: str, + express_sub_category_id: str, ) -> str: """Returns a fully-qualified keyword_theme_constant string.""" return "keywordThemeConstants/{express_category_id}~{express_sub_category_id}".format( @@ -201,7 +203,9 @@ def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +218,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +233,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +248,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +263,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -447,7 +467,10 @@ def suggest_keyword_theme_constants( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -456,7 +479,9 @@ def suggest_keyword_theme_constants( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/__init__.py b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/__init__.py index 7513d5b0f..2bdb72da2 100644 --- a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.py b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.py index a465a5a11..5687238b5 100644 --- a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.py b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.py index ad5d66baf..b46662142 100644 --- a/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/label_service/__init__.py b/google/ads/googleads/v14/services/services/label_service/__init__.py index 1a6f2fa6d..ca923d763 100644 --- a/google/ads/googleads/v14/services/services/label_service/__init__.py +++ b/google/ads/googleads/v14/services/services/label_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/label_service/client.py b/google/ads/googleads/v14/services/services/label_service/client.py index 05151583a..1694ee06c 100644 --- a/google/ads/googleads/v14/services/services/label_service/client.py +++ b/google/ads/googleads/v14/services/services/label_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class LabelServiceClientMeta(type): _transport_registry["grpc"] = LabelServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[LabelServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def label_path(customer_id: str, label_id: str,) -> str: + def label_path( + customer_id: str, + label_id: str, + ) -> str: """Returns a fully-qualified label string.""" return "customers/{customer_id}/labels/{label_id}".format( - customer_id=customer_id, label_id=label_id, + customer_id=customer_id, + label_id=label_id, ) @staticmethod @@ -200,7 +205,9 @@ def parse_label_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -213,9 +220,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -224,9 +235,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -235,9 +250,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -246,10 +265,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -481,7 +504,10 @@ def mutate_labels( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -490,7 +516,9 @@ def mutate_labels( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/label_service/transports/__init__.py b/google/ads/googleads/v14/services/services/label_service/transports/__init__.py index fd9878651..fd3c07e22 100644 --- a/google/ads/googleads/v14/services/services/label_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/label_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/label_service/transports/base.py b/google/ads/googleads/v14/services/services/label_service/transports/base.py index 5d3747ae9..9027bfdc9 100644 --- a/google/ads/googleads/v14/services/services/label_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/label_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/label_service/transports/grpc.py b/google/ads/googleads/v14/services/services/label_service/transports/grpc.py index 7a5282eb8..10cf2a23f 100644 --- a/google/ads/googleads/v14/services/services/label_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/label_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/media_file_service/__init__.py b/google/ads/googleads/v14/services/services/media_file_service/__init__.py index c1376ca5d..fa39ab6ae 100644 --- a/google/ads/googleads/v14/services/services/media_file_service/__init__.py +++ b/google/ads/googleads/v14/services/services/media_file_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/media_file_service/client.py b/google/ads/googleads/v14/services/services/media_file_service/client.py index da52d11e5..cec686246 100644 --- a/google/ads/googleads/v14/services/services/media_file_service/client.py +++ b/google/ads/googleads/v14/services/services/media_file_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class MediaFileServiceClientMeta(type): _transport_registry["grpc"] = MediaFileServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[MediaFileServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def media_file_path(customer_id: str, media_file_id: str,) -> str: + def media_file_path( + customer_id: str, + media_file_id: str, + ) -> str: """Returns a fully-qualified media_file string.""" return "customers/{customer_id}/mediaFiles/{media_file_id}".format( - customer_id=customer_id, media_file_id=media_file_id, + customer_id=customer_id, + media_file_id=media_file_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_media_file_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -484,7 +507,10 @@ def mutate_media_files( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -493,7 +519,9 @@ def mutate_media_files( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/media_file_service/transports/__init__.py b/google/ads/googleads/v14/services/services/media_file_service/transports/__init__.py index 36101bc7a..d1a717e09 100644 --- a/google/ads/googleads/v14/services/services/media_file_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/media_file_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/media_file_service/transports/base.py b/google/ads/googleads/v14/services/services/media_file_service/transports/base.py index 45d3428c8..5472e1903 100644 --- a/google/ads/googleads/v14/services/services/media_file_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/media_file_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/media_file_service/transports/grpc.py b/google/ads/googleads/v14/services/services/media_file_service/transports/grpc.py index b80c70f25..d16205165 100644 --- a/google/ads/googleads/v14/services/services/media_file_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/media_file_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/merchant_center_link_service/__init__.py b/google/ads/googleads/v14/services/services/merchant_center_link_service/__init__.py index 01891e74e..d25b19712 100644 --- a/google/ads/googleads/v14/services/services/merchant_center_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/merchant_center_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/merchant_center_link_service/client.py b/google/ads/googleads/v14/services/services/merchant_center_link_service/client.py index 6664d8adc..5adaa322f 100644 --- a/google/ads/googleads/v14/services/services/merchant_center_link_service/client.py +++ b/google/ads/googleads/v14/services/services/merchant_center_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,7 +56,8 @@ class MerchantCenterLinkServiceClientMeta(type): _transport_registry["grpc"] = MerchantCenterLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[MerchantCenterLinkServiceTransport]: """Returns an appropriate transport class. @@ -184,11 +185,13 @@ def __exit__(self, type, value, traceback): @staticmethod def merchant_center_link_path( - customer_id: str, merchant_center_id: str, + customer_id: str, + merchant_center_id: str, ) -> str: """Returns a fully-qualified merchant_center_link string.""" return "customers/{customer_id}/merchantCenterLinks/{merchant_center_id}".format( - customer_id=customer_id, merchant_center_id=merchant_center_id, + customer_id=customer_id, + merchant_center_id=merchant_center_id, ) @staticmethod @@ -201,7 +204,9 @@ def parse_merchant_center_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +219,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +234,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +249,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +264,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -452,8 +473,10 @@ def list_merchant_center_links( if not isinstance( request, merchant_center_link_service.ListMerchantCenterLinksRequest ): - request = merchant_center_link_service.ListMerchantCenterLinksRequest( - request + request = ( + merchant_center_link_service.ListMerchantCenterLinksRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -476,7 +499,10 @@ def list_merchant_center_links( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -566,7 +592,10 @@ def get_merchant_center_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -644,8 +673,10 @@ def mutate_merchant_center_link( request, merchant_center_link_service.MutateMerchantCenterLinkRequest, ): - request = merchant_center_link_service.MutateMerchantCenterLinkRequest( - request + request = ( + merchant_center_link_service.MutateMerchantCenterLinkRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -670,7 +701,10 @@ def mutate_merchant_center_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -679,7 +713,9 @@ def mutate_merchant_center_link( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/__init__.py index a7edf1dd9..0f27ac812 100644 --- a/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.py b/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.py index c72af202e..a04c382be 100644 --- a/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -143,9 +145,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.py index 847f0b94d..88355fc96 100644 --- a/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/offline_user_data_job_service/__init__.py b/google/ads/googleads/v14/services/services/offline_user_data_job_service/__init__.py index e65276419..13c5c5ba1 100644 --- a/google/ads/googleads/v14/services/services/offline_user_data_job_service/__init__.py +++ b/google/ads/googleads/v14/services/services/offline_user_data_job_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/offline_user_data_job_service/client.py b/google/ads/googleads/v14/services/services/offline_user_data_job_service/client.py index f01a90560..8e94421ca 100644 --- a/google/ads/googleads/v14/services/services/offline_user_data_job_service/client.py +++ b/google/ads/googleads/v14/services/services/offline_user_data_job_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -71,7 +71,8 @@ class OfflineUserDataJobServiceClientMeta(type): _transport_registry["grpc"] = OfflineUserDataJobServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[OfflineUserDataJobServiceTransport]: """Returns an appropriate transport class. @@ -197,7 +198,8 @@ def __exit__(self, type, value, traceback): @staticmethod def offline_user_data_job_path( - customer_id: str, offline_user_data_update_id: str, + customer_id: str, + offline_user_data_update_id: str, ) -> str: """Returns a fully-qualified offline_user_data_job string.""" return "customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}".format( @@ -215,7 +217,9 @@ def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -228,9 +232,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -239,9 +247,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -250,9 +262,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -261,10 +277,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -477,8 +497,10 @@ def create_offline_user_data_job( request, offline_user_data_job_service.CreateOfflineUserDataJobRequest, ): - request = offline_user_data_job_service.CreateOfflineUserDataJobRequest( - request + request = ( + offline_user_data_job_service.CreateOfflineUserDataJobRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -503,7 +525,10 @@ def create_offline_user_data_job( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -610,7 +635,10 @@ def add_offline_user_data_job_operations( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -690,8 +718,10 @@ def run_offline_user_data_job( if not isinstance( request, offline_user_data_job_service.RunOfflineUserDataJobRequest ): - request = offline_user_data_job_service.RunOfflineUserDataJobRequest( - request + request = ( + offline_user_data_job_service.RunOfflineUserDataJobRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -714,7 +744,10 @@ def run_offline_user_data_job( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Wrap the response in an operation future. @@ -731,7 +764,9 @@ def run_offline_user_data_job( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/__init__.py b/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/__init__.py index 927cd529f..b74936992 100644 --- a/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.py b/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.py index c7dccdf28..f14ffc92e 100644 --- a/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -145,9 +147,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.py b/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.py index 6270673ec..46413ca0c 100644 --- a/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/payments_account_service/__init__.py b/google/ads/googleads/v14/services/services/payments_account_service/__init__.py index 73b3cb89e..64a7da472 100644 --- a/google/ads/googleads/v14/services/services/payments_account_service/__init__.py +++ b/google/ads/googleads/v14/services/services/payments_account_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/payments_account_service/client.py b/google/ads/googleads/v14/services/services/payments_account_service/client.py index 6f430336a..11ffcfb4d 100644 --- a/google/ads/googleads/v14/services/services/payments_account_service/client.py +++ b/google/ads/googleads/v14/services/services/payments_account_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,8 @@ class PaymentsAccountServiceClientMeta(type): _transport_registry["grpc"] = PaymentsAccountServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[PaymentsAccountServiceTransport]: """Returns an appropriate transport class. @@ -180,9 +181,13 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -192,11 +197,13 @@ def parse_customer_path(path: str) -> Dict[str, str]: @staticmethod def payments_account_path( - customer_id: str, payments_account_id: str, + customer_id: str, + payments_account_id: str, ) -> str: """Returns a fully-qualified payments_account string.""" return "customers/{customer_id}/paymentsAccounts/{payments_account_id}".format( - customer_id=customer_id, payments_account_id=payments_account_id, + customer_id=customer_id, + payments_account_id=payments_account_id, ) @staticmethod @@ -209,7 +216,9 @@ def parse_payments_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -222,9 +231,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -233,9 +246,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -244,9 +261,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -255,10 +276,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -482,7 +507,10 @@ def list_payments_accounts( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -491,7 +519,9 @@ def list_payments_accounts( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/payments_account_service/transports/__init__.py b/google/ads/googleads/v14/services/services/payments_account_service/transports/__init__.py index 4fdded24b..7106aafc6 100644 --- a/google/ads/googleads/v14/services/services/payments_account_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/payments_account_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/payments_account_service/transports/base.py b/google/ads/googleads/v14/services/services/payments_account_service/transports/base.py index e2e597fd6..b3066e933 100644 --- a/google/ads/googleads/v14/services/services/payments_account_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/payments_account_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/payments_account_service/transports/grpc.py b/google/ads/googleads/v14/services/services/payments_account_service/transports/grpc.py index 5cfa5a466..9f7fc21a3 100644 --- a/google/ads/googleads/v14/services/services/payments_account_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/payments_account_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -136,8 +136,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -147,8 +149,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -231,8 +235,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/product_link_service/__init__.py b/google/ads/googleads/v14/services/services/product_link_service/__init__.py index f790ad5fb..ab3e5d2a1 100644 --- a/google/ads/googleads/v14/services/services/product_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/product_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/product_link_service/client.py b/google/ads/googleads/v14/services/services/product_link_service/client.py index 9a6981d2a..d445e35ce 100644 --- a/google/ads/googleads/v14/services/services/product_link_service/client.py +++ b/google/ads/googleads/v14/services/services/product_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,8 @@ class ProductLinkServiceClientMeta(type): _transport_registry["grpc"] = ProductLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ProductLinkServiceTransport]: """Returns an appropriate transport class. @@ -180,9 +181,13 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def customer_path(customer_id: str,) -> str: + def customer_path( + customer_id: str, + ) -> str: """Returns a fully-qualified customer string.""" - return "customers/{customer_id}".format(customer_id=customer_id,) + return "customers/{customer_id}".format( + customer_id=customer_id, + ) @staticmethod def parse_customer_path(path: str) -> Dict[str, str]: @@ -191,10 +196,14 @@ def parse_customer_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def product_link_path(customer_id: str, product_link_id: str,) -> str: + def product_link_path( + customer_id: str, + product_link_id: str, + ) -> str: """Returns a fully-qualified product_link string.""" return "customers/{customer_id}/productLinks/{product_link_id}".format( - customer_id=customer_id, product_link_id=product_link_id, + customer_id=customer_id, + product_link_id=product_link_id, ) @staticmethod @@ -207,7 +216,9 @@ def parse_product_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -220,9 +231,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -231,9 +246,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -242,9 +261,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -253,10 +276,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -485,7 +512,10 @@ def create_product_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -583,7 +613,10 @@ def remove_product_link( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -592,7 +625,9 @@ def remove_product_link( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/product_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/product_link_service/transports/__init__.py index 075e1a87a..1114cc886 100644 --- a/google/ads/googleads/v14/services/services/product_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/product_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/product_link_service/transports/base.py b/google/ads/googleads/v14/services/services/product_link_service/transports/base.py index 0bb4bd680..228d50a00 100644 --- a/google/ads/googleads/v14/services/services/product_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/product_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -137,9 +139,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/product_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/product_link_service/transports/grpc.py index cb63f3f0f..660d0c2ef 100644 --- a/google/ads/googleads/v14/services/services/product_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/product_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -136,8 +136,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -147,8 +149,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -231,8 +235,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/reach_plan_service/__init__.py b/google/ads/googleads/v14/services/services/reach_plan_service/__init__.py index 48d2d1911..408d07456 100644 --- a/google/ads/googleads/v14/services/services/reach_plan_service/__init__.py +++ b/google/ads/googleads/v14/services/services/reach_plan_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/reach_plan_service/client.py b/google/ads/googleads/v14/services/services/reach_plan_service/client.py index 91a99a769..744450681 100644 --- a/google/ads/googleads/v14/services/services/reach_plan_service/client.py +++ b/google/ads/googleads/v14/services/services/reach_plan_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,7 +61,8 @@ class ReachPlanServiceClientMeta(type): _transport_registry["grpc"] = ReachPlanServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ReachPlanServiceTransport]: """Returns an appropriate transport class. @@ -190,7 +191,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -203,9 +206,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -214,9 +221,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -236,10 +251,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -427,7 +446,10 @@ def list_plannable_locations( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -506,7 +528,10 @@ def list_plannable_products( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -613,7 +638,10 @@ def generate_reach_forecast( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -622,7 +650,9 @@ def generate_reach_forecast( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/reach_plan_service/transports/__init__.py b/google/ads/googleads/v14/services/services/reach_plan_service/transports/__init__.py index c069ca519..f8ef4031e 100644 --- a/google/ads/googleads/v14/services/services/reach_plan_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/reach_plan_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/reach_plan_service/transports/base.py b/google/ads/googleads/v14/services/services/reach_plan_service/transports/base.py index e6585d491..0a29cd66f 100644 --- a/google/ads/googleads/v14/services/services/reach_plan_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/reach_plan_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -142,9 +144,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.py b/google/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.py index e94e851df..196036396 100644 --- a/google/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -140,8 +140,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -151,8 +153,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -235,8 +239,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/recommendation_service/__init__.py b/google/ads/googleads/v14/services/services/recommendation_service/__init__.py index 27e2df7bc..0ff05cf98 100644 --- a/google/ads/googleads/v14/services/services/recommendation_service/__init__.py +++ b/google/ads/googleads/v14/services/services/recommendation_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/recommendation_service/client.py b/google/ads/googleads/v14/services/services/recommendation_service/client.py index 228ad2828..e88d35937 100644 --- a/google/ads/googleads/v14/services/services/recommendation_service/client.py +++ b/google/ads/googleads/v14/services/services/recommendation_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class RecommendationServiceClientMeta(type): _transport_registry["grpc"] = RecommendationServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[RecommendationServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def ad_path(customer_id: str, ad_id: str,) -> str: + def ad_path( + customer_id: str, + ad_id: str, + ) -> str: """Returns a fully-qualified ad string.""" return "customers/{customer_id}/ads/{ad_id}".format( - customer_id=customer_id, ad_id=ad_id, + customer_id=customer_id, + ad_id=ad_id, ) @staticmethod @@ -200,10 +205,14 @@ def parse_ad_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def asset_path(customer_id: str, asset_id: str,) -> str: + def asset_path( + customer_id: str, + asset_id: str, + ) -> str: """Returns a fully-qualified asset string.""" return "customers/{customer_id}/assets/{asset_id}".format( - customer_id=customer_id, asset_id=asset_id, + customer_id=customer_id, + asset_id=asset_id, ) @staticmethod @@ -216,11 +225,13 @@ def parse_asset_path(path: str) -> Dict[str, str]: @staticmethod def conversion_action_path( - customer_id: str, conversion_action_id: str, + customer_id: str, + conversion_action_id: str, ) -> str: """Returns a fully-qualified conversion_action string.""" return "customers/{customer_id}/conversionActions/{conversion_action_id}".format( - customer_id=customer_id, conversion_action_id=conversion_action_id, + customer_id=customer_id, + conversion_action_id=conversion_action_id, ) @staticmethod @@ -233,10 +244,14 @@ def parse_conversion_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def recommendation_path(customer_id: str, recommendation_id: str,) -> str: + def recommendation_path( + customer_id: str, + recommendation_id: str, + ) -> str: """Returns a fully-qualified recommendation string.""" return "customers/{customer_id}/recommendations/{recommendation_id}".format( - customer_id=customer_id, recommendation_id=recommendation_id, + customer_id=customer_id, + recommendation_id=recommendation_id, ) @staticmethod @@ -249,7 +264,9 @@ def parse_recommendation_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -262,9 +279,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -273,9 +294,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -284,9 +309,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -295,10 +324,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -533,7 +566,10 @@ def apply_recommendation( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -637,7 +673,10 @@ def dismiss_recommendation( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -646,7 +685,9 @@ def dismiss_recommendation( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/recommendation_service/transports/__init__.py b/google/ads/googleads/v14/services/services/recommendation_service/transports/__init__.py index c1872127f..866c214cb 100644 --- a/google/ads/googleads/v14/services/services/recommendation_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/recommendation_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/recommendation_service/transports/base.py b/google/ads/googleads/v14/services/services/recommendation_service/transports/base.py index 8f4033563..224231b47 100644 --- a/google/ads/googleads/v14/services/services/recommendation_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/recommendation_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -137,9 +139,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/recommendation_service/transports/grpc.py b/google/ads/googleads/v14/services/services/recommendation_service/transports/grpc.py index 481baa684..dee825f51 100644 --- a/google/ads/googleads/v14/services/services/recommendation_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/recommendation_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/remarketing_action_service/__init__.py b/google/ads/googleads/v14/services/services/remarketing_action_service/__init__.py index 8db817b7a..20c75adf6 100644 --- a/google/ads/googleads/v14/services/services/remarketing_action_service/__init__.py +++ b/google/ads/googleads/v14/services/services/remarketing_action_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/remarketing_action_service/client.py b/google/ads/googleads/v14/services/services/remarketing_action_service/client.py index 5e7855b44..cba5c7b6e 100644 --- a/google/ads/googleads/v14/services/services/remarketing_action_service/client.py +++ b/google/ads/googleads/v14/services/services/remarketing_action_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class RemarketingActionServiceClientMeta(type): _transport_registry["grpc"] = RemarketingActionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[RemarketingActionServiceTransport]: """Returns an appropriate transport class. @@ -191,7 +192,8 @@ def __exit__(self, type, value, traceback): @staticmethod def remarketing_action_path( - customer_id: str, remarketing_action_id: str, + customer_id: str, + remarketing_action_id: str, ) -> str: """Returns a fully-qualified remarketing_action string.""" return "customers/{customer_id}/remarketingActions/{remarketing_action_id}".format( @@ -209,7 +211,9 @@ def parse_remarketing_action_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -222,9 +226,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -233,9 +241,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -244,9 +256,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -255,10 +271,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -474,8 +494,10 @@ def mutate_remarketing_actions( if not isinstance( request, remarketing_action_service.MutateRemarketingActionsRequest ): - request = remarketing_action_service.MutateRemarketingActionsRequest( - request + request = ( + remarketing_action_service.MutateRemarketingActionsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -500,7 +522,10 @@ def mutate_remarketing_actions( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -509,7 +534,9 @@ def mutate_remarketing_actions( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/remarketing_action_service/transports/__init__.py b/google/ads/googleads/v14/services/services/remarketing_action_service/transports/__init__.py index c393a78a3..cefc9e7ae 100644 --- a/google/ads/googleads/v14/services/services/remarketing_action_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/remarketing_action_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/remarketing_action_service/transports/base.py b/google/ads/googleads/v14/services/services/remarketing_action_service/transports/base.py index 22dde618c..a23592d08 100644 --- a/google/ads/googleads/v14/services/services/remarketing_action_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/remarketing_action_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.py b/google/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.py index 3bd7dfe15..4f965d309 100644 --- a/google/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/shared_criterion_service/__init__.py b/google/ads/googleads/v14/services/services/shared_criterion_service/__init__.py index 4bc8ba887..4d3fee989 100644 --- a/google/ads/googleads/v14/services/services/shared_criterion_service/__init__.py +++ b/google/ads/googleads/v14/services/services/shared_criterion_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/shared_criterion_service/client.py b/google/ads/googleads/v14/services/services/shared_criterion_service/client.py index 53d369c91..db9bf40ec 100644 --- a/google/ads/googleads/v14/services/services/shared_criterion_service/client.py +++ b/google/ads/googleads/v14/services/services/shared_criterion_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -65,7 +65,8 @@ class SharedCriterionServiceClientMeta(type): _transport_registry["grpc"] = SharedCriterionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[SharedCriterionServiceTransport]: """Returns an appropriate transport class. @@ -189,7 +190,9 @@ def __exit__(self, type, value, traceback): @staticmethod def shared_criterion_path( - customer_id: str, shared_set_id: str, criterion_id: str, + customer_id: str, + shared_set_id: str, + criterion_id: str, ) -> str: """Returns a fully-qualified shared_criterion string.""" return "customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}".format( @@ -208,10 +211,14 @@ def parse_shared_criterion_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def shared_set_path(customer_id: str, shared_set_id: str,) -> str: + def shared_set_path( + customer_id: str, + shared_set_id: str, + ) -> str: """Returns a fully-qualified shared_set string.""" return "customers/{customer_id}/sharedSets/{shared_set_id}".format( - customer_id=customer_id, shared_set_id=shared_set_id, + customer_id=customer_id, + shared_set_id=shared_set_id, ) @staticmethod @@ -224,7 +231,9 @@ def parse_shared_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -237,9 +246,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -248,9 +261,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -259,9 +276,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -270,10 +291,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -513,7 +538,10 @@ def mutate_shared_criteria( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -522,7 +550,9 @@ def mutate_shared_criteria( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/shared_criterion_service/transports/__init__.py b/google/ads/googleads/v14/services/services/shared_criterion_service/transports/__init__.py index 6167fdeb8..b38514608 100644 --- a/google/ads/googleads/v14/services/services/shared_criterion_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/shared_criterion_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/shared_criterion_service/transports/base.py b/google/ads/googleads/v14/services/services/shared_criterion_service/transports/base.py index 4d9bc26e9..a45baa8fb 100644 --- a/google/ads/googleads/v14/services/services/shared_criterion_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/shared_criterion_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.py b/google/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.py index cf336696a..8d3a3121e 100644 --- a/google/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/shared_set_service/__init__.py b/google/ads/googleads/v14/services/services/shared_set_service/__init__.py index c43f1b2ba..f0657edcc 100644 --- a/google/ads/googleads/v14/services/services/shared_set_service/__init__.py +++ b/google/ads/googleads/v14/services/services/shared_set_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/shared_set_service/client.py b/google/ads/googleads/v14/services/services/shared_set_service/client.py index 90e6ff5d2..897af14c8 100644 --- a/google/ads/googleads/v14/services/services/shared_set_service/client.py +++ b/google/ads/googleads/v14/services/services/shared_set_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class SharedSetServiceClientMeta(type): _transport_registry["grpc"] = SharedSetServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[SharedSetServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def shared_set_path(customer_id: str, shared_set_id: str,) -> str: + def shared_set_path( + customer_id: str, + shared_set_id: str, + ) -> str: """Returns a fully-qualified shared_set string.""" return "customers/{customer_id}/sharedSets/{shared_set_id}".format( - customer_id=customer_id, shared_set_id=shared_set_id, + customer_id=customer_id, + shared_set_id=shared_set_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_shared_set_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -486,7 +509,10 @@ def mutate_shared_sets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -495,7 +521,9 @@ def mutate_shared_sets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/shared_set_service/transports/__init__.py b/google/ads/googleads/v14/services/services/shared_set_service/transports/__init__.py index b7a721058..a9db2811f 100644 --- a/google/ads/googleads/v14/services/services/shared_set_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/shared_set_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/shared_set_service/transports/base.py b/google/ads/googleads/v14/services/services/shared_set_service/transports/base.py index d2edd1f44..e40881ec7 100644 --- a/google/ads/googleads/v14/services/services/shared_set_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/shared_set_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/shared_set_service/transports/grpc.py b/google/ads/googleads/v14/services/services/shared_set_service/transports/grpc.py index 7f4ea400f..805b899ca 100644 --- a/google/ads/googleads/v14/services/services/shared_set_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/shared_set_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/__init__.py b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/__init__.py index bf1b79372..2cb2d3411 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/__init__.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/client.py b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/client.py index 273542906..90e66c104 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/client.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,7 +67,8 @@ class SmartCampaignSettingServiceClientMeta(type): _transport_registry["grpc"] = SmartCampaignSettingServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[SmartCampaignSettingServiceTransport]: """Returns an appropriate transport class. @@ -192,10 +193,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -208,10 +213,14 @@ def parse_campaign_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def smart_campaign_setting_path(customer_id: str, campaign_id: str,) -> str: + def smart_campaign_setting_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified smart_campaign_setting string.""" return "customers/{customer_id}/smartCampaignSettings/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -224,7 +233,9 @@ def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -237,9 +248,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -248,9 +263,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -259,9 +278,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -270,10 +293,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -472,8 +499,10 @@ def get_smart_campaign_status( request, smart_campaign_setting_service.GetSmartCampaignStatusRequest, ): - request = smart_campaign_setting_service.GetSmartCampaignStatusRequest( - request + request = ( + smart_campaign_setting_service.GetSmartCampaignStatusRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -496,7 +525,10 @@ def get_smart_campaign_status( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -526,7 +558,7 @@ def mutate_smart_campaign_settings( Args: request (Union[google.ads.googleads.v14.services.types.MutateSmartCampaignSettingsRequest, dict, None]): The request object. Request message for - [SmartCampaignSettingService.MutateSmartCampaignSetting][]. + [SmartCampaignSettingService.MutateSmartCampaignSettings][google.ads.googleads.v14.services.SmartCampaignSettingService.MutateSmartCampaignSettings]. customer_id (str): Required. The ID of the customer whose Smart campaign settings are being @@ -597,7 +629,10 @@ def mutate_smart_campaign_settings( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -606,7 +641,9 @@ def mutate_smart_campaign_settings( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/__init__.py b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/__init__.py index d2c92a6f1..d6904bb88 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.py b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.py index 7f06384f1..975a13683 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -139,9 +141,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.py b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.py index d35357c3d..0cdf2a169 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/__init__.py b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/__init__.py index 6a64b2688..855a170a6 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/__init__.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.py b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.py index 3fb987992..9eb1ee0e5 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,8 @@ class SmartCampaignSuggestServiceClientMeta(type): _transport_registry["grpc"] = SmartCampaignSuggestServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[SmartCampaignSuggestServiceTransport]: """Returns an appropriate transport class. @@ -182,10 +183,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def campaign_path(customer_id: str, campaign_id: str,) -> str: + def campaign_path( + customer_id: str, + campaign_id: str, + ) -> str: """Returns a fully-qualified campaign string.""" return "customers/{customer_id}/campaigns/{campaign_id}".format( - customer_id=customer_id, campaign_id=campaign_id, + customer_id=customer_id, + campaign_id=campaign_id, ) @staticmethod @@ -199,7 +204,8 @@ def parse_campaign_path(path: str) -> Dict[str, str]: @staticmethod def keyword_theme_constant_path( - express_category_id: str, express_sub_category_id: str, + express_category_id: str, + express_sub_category_id: str, ) -> str: """Returns a fully-qualified keyword_theme_constant string.""" return "keywordThemeConstants/{express_category_id}~{express_sub_category_id}".format( @@ -217,7 +223,9 @@ def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -230,9 +238,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -241,9 +253,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -252,9 +268,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -263,10 +283,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -425,7 +449,7 @@ def suggest_smart_campaign_budget_options( Args: request (Union[google.ads.googleads.v14.services.types.SuggestSmartCampaignBudgetOptionsRequest, dict, None]): The request object. Request message for - [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. + [SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions]. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -435,7 +459,7 @@ def suggest_smart_campaign_budget_options( Returns: google.ads.googleads.v14.services.types.SuggestSmartCampaignBudgetOptionsResponse: Response message for - [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. + [SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions]. Depending on whether the system could suggest the options, either all of the options or none of them might be returned. @@ -470,7 +494,10 @@ def suggest_smart_campaign_budget_options( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -518,8 +545,10 @@ def suggest_smart_campaign_ad( request, smart_campaign_suggest_service.SuggestSmartCampaignAdRequest, ): - request = smart_campaign_suggest_service.SuggestSmartCampaignAdRequest( - request + request = ( + smart_campaign_suggest_service.SuggestSmartCampaignAdRequest( + request + ) ) # Wrap the RPC method; this adds retry and timeout information, @@ -538,7 +567,10 @@ def suggest_smart_campaign_ad( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -582,8 +614,10 @@ def suggest_keyword_themes( if not isinstance( request, smart_campaign_suggest_service.SuggestKeywordThemesRequest ): - request = smart_campaign_suggest_service.SuggestKeywordThemesRequest( - request + request = ( + smart_campaign_suggest_service.SuggestKeywordThemesRequest( + request + ) ) # Wrap the RPC method; this adds retry and timeout information, @@ -602,7 +636,10 @@ def suggest_keyword_themes( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -611,7 +648,9 @@ def suggest_keyword_themes( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/__init__.py b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/__init__.py index 9c7ca5e5c..163bd5e13 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.py b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.py index 675025300..31ed9a73c 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -144,9 +146,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.py b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.py index ba3452e75..339aaa7c0 100644 --- a/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/__init__.py b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/__init__.py index 8b5caeafa..0456ba034 100644 --- a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/__init__.py +++ b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.py b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.py index 295fff367..8d0ddd8d4 100644 --- a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.py +++ b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,8 @@ class ThirdPartyAppAnalyticsLinkServiceClientMeta(type): _transport_registry["grpc"] = ThirdPartyAppAnalyticsLinkServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[ThirdPartyAppAnalyticsLinkServiceTransport]: """Returns an appropriate transport class. @@ -185,11 +186,13 @@ def __exit__(self, type, value, traceback): @staticmethod def third_party_app_analytics_link_path( - customer_id: str, customer_link_id: str, + customer_id: str, + customer_link_id: str, ) -> str: """Returns a fully-qualified third_party_app_analytics_link string.""" return "customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}".format( - customer_id=customer_id, customer_link_id=customer_link_id, + customer_id=customer_id, + customer_link_id=customer_link_id, ) @staticmethod @@ -202,7 +205,9 @@ def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -215,9 +220,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -226,9 +235,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -237,9 +250,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -248,10 +265,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -458,7 +479,10 @@ def regenerate_shareable_link_id( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -467,7 +491,9 @@ def regenerate_shareable_link_id( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/__init__.py b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/__init__.py index 816a4ba69..91230b6a5 100644 --- a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.py b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.py index a6dd77594..95db4dd1f 100644 --- a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.py b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.py index 8a40c4ee0..e25340d75 100644 --- a/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -143,8 +143,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -154,8 +156,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -238,8 +242,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/__init__.py b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/__init__.py index c9989358c..e337c3cfc 100644 --- a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/__init__.py +++ b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.py b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.py index 23a5a8b66..f319fdef3 100644 --- a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.py +++ b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,7 +57,8 @@ class TravelAssetSuggestionServiceClientMeta(type): _transport_registry["grpc"] = TravelAssetSuggestionServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[TravelAssetSuggestionServiceTransport]: """Returns an appropriate transport class. @@ -182,7 +183,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -195,9 +198,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -206,9 +213,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -217,9 +228,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -228,10 +243,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -394,7 +413,7 @@ def suggest_travel_assets( Args: request (Union[google.ads.googleads.v14.services.types.SuggestTravelAssetsRequest, dict, None]): The request object. Request message for - [TravelSuggestAssetsService.SuggestTravelAssets][]. + [TravelAssetSuggestionService.SuggestTravelAssets][google.ads.googleads.v14.services.TravelAssetSuggestionService.SuggestTravelAssets]. customer_id (str): Required. The ID of the customer. This corresponds to the ``customer_id`` field @@ -420,7 +439,7 @@ def suggest_travel_assets( Returns: google.ads.googleads.v14.services.types.SuggestTravelAssetsResponse: Response message for - [TravelSuggestAssetsService.SuggestTravelAssets][]. + [TravelAssetSuggestionService.SuggestTravelAssets][google.ads.googleads.v14.services.TravelAssetSuggestionService.SuggestTravelAssets]. """ # Create or coerce a protobuf request object. @@ -440,8 +459,10 @@ def suggest_travel_assets( if not isinstance( request, travel_asset_suggestion_service.SuggestTravelAssetsRequest ): - request = travel_asset_suggestion_service.SuggestTravelAssetsRequest( - request + request = ( + travel_asset_suggestion_service.SuggestTravelAssetsRequest( + request + ) ) # If we have keyword arguments corresponding to fields on the # request, apply these. @@ -466,7 +487,10 @@ def suggest_travel_assets( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -475,7 +499,9 @@ def suggest_travel_assets( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/__init__.py b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/__init__.py index 230673ebc..7a3991ae8 100644 --- a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.py b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.py index a708f4999..55a5aec56 100644 --- a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -134,9 +136,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.py b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.py index 0f38f14d1..5d5d1b241 100644 --- a/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -139,8 +139,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -150,8 +152,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -234,8 +238,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/user_data_service/__init__.py b/google/ads/googleads/v14/services/services/user_data_service/__init__.py index 8ba2fca31..aecf09df5 100644 --- a/google/ads/googleads/v14/services/services/user_data_service/__init__.py +++ b/google/ads/googleads/v14/services/services/user_data_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/user_data_service/client.py b/google/ads/googleads/v14/services/services/user_data_service/client.py index c710c9d04..6ef0613d9 100644 --- a/google/ads/googleads/v14/services/services/user_data_service/client.py +++ b/google/ads/googleads/v14/services/services/user_data_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,7 +52,8 @@ class UserDataServiceClientMeta(type): _transport_registry["grpc"] = UserDataServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[UserDataServiceTransport]: """Returns an appropriate transport class. @@ -183,7 +184,9 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -196,9 +199,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -207,9 +214,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -218,9 +229,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -229,10 +244,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -430,7 +449,10 @@ def upload_user_data( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -439,7 +461,9 @@ def upload_user_data( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/user_data_service/transports/__init__.py b/google/ads/googleads/v14/services/services/user_data_service/transports/__init__.py index 06084a445..b7702aa16 100644 --- a/google/ads/googleads/v14/services/services/user_data_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/user_data_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/user_data_service/transports/base.py b/google/ads/googleads/v14/services/services/user_data_service/transports/base.py index 15ff30b90..955915024 100644 --- a/google/ads/googleads/v14/services/services/user_data_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/user_data_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/user_data_service/transports/grpc.py b/google/ads/googleads/v14/services/services/user_data_service/transports/grpc.py index 6263d36be..3076c12e1 100644 --- a/google/ads/googleads/v14/services/services/user_data_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/user_data_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -142,8 +142,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -153,8 +155,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -237,8 +241,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/services/user_list_service/__init__.py b/google/ads/googleads/v14/services/services/user_list_service/__init__.py index d7b0c7527..63f1b4e32 100644 --- a/google/ads/googleads/v14/services/services/user_list_service/__init__.py +++ b/google/ads/googleads/v14/services/services/user_list_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/user_list_service/client.py b/google/ads/googleads/v14/services/services/user_list_service/client.py index decd9f6bc..b3b4206bf 100644 --- a/google/ads/googleads/v14/services/services/user_list_service/client.py +++ b/google/ads/googleads/v14/services/services/user_list_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,7 +62,8 @@ class UserListServiceClientMeta(type): _transport_registry["grpc"] = UserListServiceGrpcTransport def get_transport_class( - cls, label: Optional[str] = None, + cls, + label: Optional[str] = None, ) -> Type[UserListServiceTransport]: """Returns an appropriate transport class. @@ -185,10 +186,14 @@ def __exit__(self, type, value, traceback): self.transport.close() @staticmethod - def user_list_path(customer_id: str, user_list_id: str,) -> str: + def user_list_path( + customer_id: str, + user_list_id: str, + ) -> str: """Returns a fully-qualified user_list string.""" return "customers/{customer_id}/userLists/{user_list_id}".format( - customer_id=customer_id, user_list_id=user_list_id, + customer_id=customer_id, + user_list_id=user_list_id, ) @staticmethod @@ -201,7 +206,9 @@ def parse_user_list_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_billing_account_path(billing_account: str,) -> str: + def common_billing_account_path( + billing_account: str, + ) -> str: """Returns a fully-qualified billing_account string.""" return "billingAccounts/{billing_account}".format( billing_account=billing_account, @@ -214,9 +221,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_folder_path(folder: str,) -> str: + def common_folder_path( + folder: str, + ) -> str: """Returns a fully-qualified folder string.""" - return "folders/{folder}".format(folder=folder,) + return "folders/{folder}".format( + folder=folder, + ) @staticmethod def parse_common_folder_path(path: str) -> Dict[str, str]: @@ -225,9 +236,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_organization_path(organization: str,) -> str: + def common_organization_path( + organization: str, + ) -> str: """Returns a fully-qualified organization string.""" - return "organizations/{organization}".format(organization=organization,) + return "organizations/{organization}".format( + organization=organization, + ) @staticmethod def parse_common_organization_path(path: str) -> Dict[str, str]: @@ -236,9 +251,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_project_path(project: str,) -> str: + def common_project_path( + project: str, + ) -> str: """Returns a fully-qualified project string.""" - return "projects/{project}".format(project=project,) + return "projects/{project}".format( + project=project, + ) @staticmethod def parse_common_project_path(path: str) -> Dict[str, str]: @@ -247,10 +266,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]: return m.groupdict() if m else {} @staticmethod - def common_location_path(project: str, location: str,) -> str: + def common_location_path( + project: str, + location: str, + ) -> str: """Returns a fully-qualified location string.""" return "projects/{project}/locations/{location}".format( - project=project, location=location, + project=project, + location=location, ) @staticmethod @@ -484,7 +507,10 @@ def mutate_user_lists( # Send the request. response = rpc( - request, retry=retry, timeout=timeout, metadata=metadata, + request, + retry=retry, + timeout=timeout, + metadata=metadata, ) # Done; return the response. @@ -493,7 +519,9 @@ def mutate_user_lists( try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() diff --git a/google/ads/googleads/v14/services/services/user_list_service/transports/__init__.py b/google/ads/googleads/v14/services/services/user_list_service/transports/__init__.py index f5c6f0642..d70910865 100644 --- a/google/ads/googleads/v14/services/services/user_list_service/transports/__init__.py +++ b/google/ads/googleads/v14/services/services/user_list_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/services/user_list_service/transports/base.py b/google/ads/googleads/v14/services/services/user_list_service/transports/base.py index 172e59578..4a4033034 100644 --- a/google/ads/googleads/v14/services/services/user_list_service/transports/base.py +++ b/google/ads/googleads/v14/services/services/user_list_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( - gapic_version=pkg_resources.get_distribution("google-ads",).version, + gapic_version=pkg_resources.get_distribution( + "google-ads", + ).version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() @@ -132,9 +134,9 @@ def _prep_wrapped_messages(self, client_info): def close(self): """Closes resources associated with the transport. - .. warning:: - Only call this method if the transport is NOT shared - with other clients - this may cause errors in other clients! + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! """ raise NotImplementedError() diff --git a/google/ads/googleads/v14/services/services/user_list_service/transports/grpc.py b/google/ads/googleads/v14/services/services/user_list_service/transports/grpc.py index 5330ff035..21f816602 100644 --- a/google/ads/googleads/v14/services/services/user_list_service/transports/grpc.py +++ b/google/ads/googleads/v14/services/services/user_list_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -135,8 +135,10 @@ def __init__( # default SSL credentials. if client_cert_source: cert, key = client_cert_source() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) else: self._ssl_channel_credentials = ( @@ -146,8 +148,10 @@ def __init__( else: if client_cert_source_for_mtls and not ssl_channel_credentials: cert, key = client_cert_source_for_mtls() - self._ssl_channel_credentials = grpc.ssl_channel_credentials( - certificate_chain=cert, private_key=key + self._ssl_channel_credentials = ( + grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) ) # The base transport sets the host, credentials and scopes @@ -230,8 +234,7 @@ def create_channel( @property def grpc_channel(self) -> grpc.Channel: - """Return the channel designed to connect to this service. - """ + """Return the channel designed to connect to this service.""" return self._grpc_channel @property diff --git a/google/ads/googleads/v14/services/types/__init__.py b/google/ads/googleads/v14/services/types/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/services/types/__init__.py +++ b/google/ads/googleads/v14/services/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/types/account_budget_proposal_service.py b/google/ads/googleads/v14/services/types/account_budget_proposal_service.py index 01fd8c8ac..cb1259c9f 100644 --- a/google/ads/googleads/v14/services/types/account_budget_proposal_service.py +++ b/google/ads/googleads/v14/services/types/account_budget_proposal_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,13 +50,17 @@ class MutateAccountBudgetProposalRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "AccountBudgetProposalOperation" = proto.Field( - proto.MESSAGE, number=2, message="AccountBudgetProposalOperation", + proto.MESSAGE, + number=2, + message="AccountBudgetProposalOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -83,9 +87,10 @@ class AccountBudgetProposalOperation(proto.Message): proposal type is considered an error. create (google.ads.googleads.v14.resources.types.AccountBudgetProposal): Create operation: A new proposal to create a - new budget, edit an existing budget, end an - actively running budget, or remove an approved - budget scheduled to start in the future. + new budget, edit an + existing budget, end an actively running budget, + or remove an approved budget scheduled to start + in the future. No resource name is expected for the new proposal. @@ -101,7 +106,9 @@ class AccountBudgetProposalOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=3, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=3, + message=field_mask_pb2.FieldMask, ) create: account_budget_proposal.AccountBudgetProposal = proto.Field( proto.MESSAGE, @@ -110,7 +117,9 @@ class AccountBudgetProposalOperation(proto.Message): message=account_budget_proposal.AccountBudgetProposal, ) remove: str = proto.Field( - proto.STRING, number=1, oneof="operation", + proto.STRING, + number=1, + oneof="operation", ) @@ -122,7 +131,9 @@ class MutateAccountBudgetProposalResponse(proto.Message): """ result: "MutateAccountBudgetProposalResult" = proto.Field( - proto.MESSAGE, number=2, message="MutateAccountBudgetProposalResult", + proto.MESSAGE, + number=2, + message="MutateAccountBudgetProposalResult", ) @@ -134,7 +145,8 @@ class MutateAccountBudgetProposalResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/account_link_service.py b/google/ads/googleads/v14/services/types/account_link_service.py index 6f148e810..a2489c68b 100644 --- a/google/ads/googleads/v14/services/types/account_link_service.py +++ b/google/ads/googleads/v14/services/types/account_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,10 +52,13 @@ class CreateAccountLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) account_link: gagr_account_link.AccountLink = proto.Field( - proto.MESSAGE, number=2, message=gagr_account_link.AccountLink, + proto.MESSAGE, + number=2, + message=gagr_account_link.AccountLink, ) @@ -70,7 +73,8 @@ class CreateAccountLinkResponse(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -97,16 +101,21 @@ class MutateAccountLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "AccountLinkOperation" = proto.Field( - proto.MESSAGE, number=2, message="AccountLinkOperation", + proto.MESSAGE, + number=2, + message="AccountLinkOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -125,7 +134,8 @@ class AccountLinkOperation(proto.Message): fields are modified in an update. update (google.ads.googleads.v14.resources.types.AccountLink): Update operation: The account link is - expected to have a valid resource name. + expected to have + a valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -138,7 +148,9 @@ class AccountLinkOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) update: gagr_account_link.AccountLink = proto.Field( proto.MESSAGE, @@ -147,7 +159,9 @@ class AccountLinkOperation(proto.Message): message=gagr_account_link.AccountLink, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -165,10 +179,14 @@ class MutateAccountLinkResponse(proto.Message): """ result: "MutateAccountLinkResult" = proto.Field( - proto.MESSAGE, number=1, message="MutateAccountLinkResult", + proto.MESSAGE, + number=1, + message="MutateAccountLinkResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -180,7 +198,8 @@ class MutateAccountLinkResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_ad_label_service.py b/google/ads/googleads/v14/services/types/ad_group_ad_label_service.py index 313a42b4c..29d121e5d 100644 --- a/google/ads/googleads/v14/services/types/ad_group_ad_label_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_ad_label_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,18 +58,23 @@ class MutateAdGroupAdLabelsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupAdLabelOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupAdLabelOperation", + proto.MESSAGE, + number=2, + message="AdGroupAdLabelOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -85,7 +90,8 @@ class AdGroupAdLabelOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AdGroupAdLabel): Create operation: No resource name is - expected for the new ad group ad label. + expected for the new ad group ad + label. This field is a member of `oneof`_ ``operation``. remove (str): @@ -104,7 +110,9 @@ class AdGroupAdLabelOperation(proto.Message): message=ad_group_ad_label.AdGroupAdLabel, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -122,12 +130,16 @@ class MutateAdGroupAdLabelsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateAdGroupAdLabelResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupAdLabelResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupAdLabelResult", ) @@ -139,7 +151,8 @@ class MutateAdGroupAdLabelResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_ad_service.py b/google/ads/googleads/v14/services/types/ad_group_ad_service.py index 1534b1642..762a3fb6d 100644 --- a/google/ads/googleads/v14/services/types/ad_group_ad_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_ad_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -69,16 +69,21 @@ class MutateAdGroupAdsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdGroupAdOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupAdOperation", + proto.MESSAGE, + number=2, + message="AdGroupAdOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -124,10 +129,14 @@ class AdGroupAdOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) policy_validation_parameter: policy.PolicyValidationParameter = proto.Field( - proto.MESSAGE, number=5, message=policy.PolicyValidationParameter, + proto.MESSAGE, + number=5, + message=policy.PolicyValidationParameter, ) create: gagr_ad_group_ad.AdGroupAd = proto.Field( proto.MESSAGE, @@ -142,7 +151,9 @@ class AdGroupAdOperation(proto.Message): message=gagr_ad_group_ad.AdGroupAd, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -160,10 +171,14 @@ class MutateAdGroupAdsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAdGroupAdResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupAdResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupAdResult", ) @@ -180,10 +195,13 @@ class MutateAdGroupAdResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_ad: gagr_ad_group_ad.AdGroupAd = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad_group_ad.AdGroupAd, + proto.MESSAGE, + number=2, + message=gagr_ad_group_ad.AdGroupAd, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_asset_service.py b/google/ads/googleads/v14/services/types/ad_group_asset_service.py index 047dc5d7b..52d066cd0 100644 --- a/google/ads/googleads/v14/services/types/ad_group_asset_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_asset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateAdGroupAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdGroupAssetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupAssetOperation", + proto.MESSAGE, + number=2, + message="AdGroupAssetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -103,12 +108,14 @@ class AdGroupAssetOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.AdGroupAsset): Create operation: No resource name is - expected for the new ad group asset. + expected for the new ad group + asset. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AdGroupAsset): Update operation: The ad group asset is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +128,9 @@ class AdGroupAssetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_ad_group_asset.AdGroupAsset = proto.Field( proto.MESSAGE, @@ -136,7 +145,9 @@ class AdGroupAssetOperation(proto.Message): message=gagr_ad_group_asset.AdGroupAsset, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -154,10 +165,14 @@ class MutateAdGroupAssetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence["MutateAdGroupAssetResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupAssetResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupAssetResult", ) @@ -173,10 +188,13 @@ class MutateAdGroupAssetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_asset: gagr_ad_group_asset.AdGroupAsset = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad_group_asset.AdGroupAsset, + proto.MESSAGE, + number=2, + message=gagr_ad_group_asset.AdGroupAsset, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_asset_set_service.py b/google/ads/googleads/v14/services/types/ad_group_asset_set_service.py index 83c38d64e..13502e611 100644 --- a/google/ads/googleads/v14/services/types/ad_group_asset_set_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_asset_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateAdGroupAssetSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupAssetSetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupAssetSetOperation", + proto.MESSAGE, + number=2, + message="AdGroupAssetSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,7 +104,8 @@ class AdGroupAssetSetOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AdGroupAssetSet): Create operation: No resource name is - expected for the new ad group asset set. + expected for the new ad group asset + set. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class AdGroupAssetSetOperation(proto.Message): message=gagr_ad_group_asset_set.AdGroupAssetSet, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -137,10 +145,14 @@ class MutateAdGroupAssetSetsResponse(proto.Message): results: MutableSequence[ "MutateAdGroupAssetSetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAdGroupAssetSetResult", + proto.MESSAGE, + number=1, + message="MutateAdGroupAssetSetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -156,7 +168,8 @@ class MutateAdGroupAssetSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_asset_set: gagr_ad_group_asset_set.AdGroupAssetSet = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/ad_group_bid_modifier_service.py b/google/ads/googleads/v14/services/types/ad_group_bid_modifier_service.py index c18da92ac..f36f8e2f9 100644 --- a/google/ads/googleads/v14/services/types/ad_group_bid_modifier_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_bid_modifier_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateAdGroupBidModifiersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupBidModifierOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupBidModifierOperation", + proto.MESSAGE, + number=2, + message="AdGroupBidModifierOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class AdGroupBidModifierOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.AdGroupBidModifier): Create operation: No resource name is - expected for the new ad group bid modifier. + expected for the new ad group bid + modifier. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AdGroupBidModifier): Update operation: The ad group bid modifier - is expected to have a valid resource name. + is expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class AdGroupBidModifierOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_ad_group_bid_modifier.AdGroupBidModifier = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class AdGroupBidModifierOperation(proto.Message): message=gagr_ad_group_bid_modifier.AdGroupBidModifier, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +167,16 @@ class MutateAdGroupBidModifiersResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateAdGroupBidModifierResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupBidModifierResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupBidModifierResult", ) @@ -177,12 +192,15 @@ class MutateAdGroupBidModifierResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - ad_group_bid_modifier: gagr_ad_group_bid_modifier.AdGroupBidModifier = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_ad_group_bid_modifier.AdGroupBidModifier, + ad_group_bid_modifier: gagr_ad_group_bid_modifier.AdGroupBidModifier = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_ad_group_bid_modifier.AdGroupBidModifier, + ) ) diff --git a/google/ads/googleads/v14/services/types/ad_group_criterion_customizer_service.py b/google/ads/googleads/v14/services/types/ad_group_criterion_customizer_service.py index 742bcf5ad..4447c1f94 100644 --- a/google/ads/googleads/v14/services/types/ad_group_criterion_customizer_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_criterion_customizer_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateAdGroupCriterionCustomizersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupCriterionCustomizerOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupCriterionCustomizerOperation", + proto.MESSAGE, + number=2, + message="AdGroupCriterionCustomizerOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -101,8 +106,8 @@ class AdGroupCriterionCustomizerOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AdGroupCriterionCustomizer): Create operation: No resource name is - expected for the new ad group criterion - customizer. + expected for the new ad group + criterion customizer. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +126,9 @@ class AdGroupCriterionCustomizerOperation(proto.Message): message=gagr_ad_group_criterion_customizer.AdGroupCriterionCustomizer, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -146,7 +153,9 @@ class MutateAdGroupCriterionCustomizersResponse(proto.Message): message="MutateAdGroupCriterionCustomizerResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -162,7 +171,8 @@ class MutateAdGroupCriterionCustomizerResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_criterion_customizer: gagr_ad_group_criterion_customizer.AdGroupCriterionCustomizer = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/ad_group_criterion_label_service.py b/google/ads/googleads/v14/services/types/ad_group_criterion_label_service.py index 016fe73e8..771bdc5b5 100644 --- a/google/ads/googleads/v14/services/types/ad_group_criterion_label_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_criterion_label_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,18 +58,23 @@ class MutateAdGroupCriterionLabelsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupCriterionLabelOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupCriterionLabelOperation", + proto.MESSAGE, + number=2, + message="AdGroupCriterionLabelOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -87,7 +92,8 @@ class AdGroupCriterionLabelOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AdGroupCriterionLabel): Create operation: No resource name is - expected for the new ad group label. + expected for the new ad group + label. This field is a member of `oneof`_ ``operation``. remove (str): @@ -106,7 +112,9 @@ class AdGroupCriterionLabelOperation(proto.Message): message=ad_group_criterion_label.AdGroupCriterionLabel, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -124,12 +132,16 @@ class MutateAdGroupCriterionLabelsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateAdGroupCriterionLabelResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupCriterionLabelResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupCriterionLabelResult", ) @@ -141,7 +153,8 @@ class MutateAdGroupCriterionLabelResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_criterion_service.py b/google/ads/googleads/v14/services/types/ad_group_criterion_service.py index dc150d331..c6fb52b88 100644 --- a/google/ads/googleads/v14/services/types/ad_group_criterion_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_criterion_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -69,18 +69,23 @@ class MutateAdGroupCriteriaRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupCriterionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupCriterionOperation", + proto.MESSAGE, + number=2, + message="AdGroupCriterionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -121,7 +126,8 @@ class AdGroupCriterionOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AdGroupCriterion): Update operation: The criterion is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -134,12 +140,16 @@ class AdGroupCriterionOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) exempt_policy_violation_keys: MutableSequence[ policy.PolicyViolationKey ] = proto.RepeatedField( - proto.MESSAGE, number=5, message=policy.PolicyViolationKey, + proto.MESSAGE, + number=5, + message=policy.PolicyViolationKey, ) create: gagr_ad_group_criterion.AdGroupCriterion = proto.Field( proto.MESSAGE, @@ -154,7 +164,9 @@ class AdGroupCriterionOperation(proto.Message): message=gagr_ad_group_criterion.AdGroupCriterion, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -172,12 +184,16 @@ class MutateAdGroupCriteriaResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateAdGroupCriterionResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupCriterionResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupCriterionResult", ) @@ -193,7 +209,8 @@ class MutateAdGroupCriterionResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_criterion: gagr_ad_group_criterion.AdGroupCriterion = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/ad_group_customizer_service.py b/google/ads/googleads/v14/services/types/ad_group_customizer_service.py index ad4243008..0e774fd03 100644 --- a/google/ads/googleads/v14/services/types/ad_group_customizer_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_customizer_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateAdGroupCustomizersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupCustomizerOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupCustomizerOperation", + proto.MESSAGE, + number=2, + message="AdGroupCustomizerOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -101,7 +106,8 @@ class AdGroupCustomizerOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AdGroupCustomizer): Create operation: No resource name is - expected for the new ad group customizer + expected for the new ad group + customizer This field is a member of `oneof`_ ``operation``. remove (str): @@ -119,7 +125,9 @@ class AdGroupCustomizerOperation(proto.Message): message=gagr_ad_group_customizer.AdGroupCustomizer, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -139,10 +147,14 @@ class MutateAdGroupCustomizersResponse(proto.Message): results: MutableSequence[ "MutateAdGroupCustomizerResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAdGroupCustomizerResult", + proto.MESSAGE, + number=1, + message="MutateAdGroupCustomizerResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -158,12 +170,15 @@ class MutateAdGroupCustomizerResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - ad_group_customizer: gagr_ad_group_customizer.AdGroupCustomizer = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_ad_group_customizer.AdGroupCustomizer, + ad_group_customizer: gagr_ad_group_customizer.AdGroupCustomizer = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_ad_group_customizer.AdGroupCustomizer, + ) ) diff --git a/google/ads/googleads/v14/services/types/ad_group_extension_setting_service.py b/google/ads/googleads/v14/services/types/ad_group_extension_setting_service.py index 3ac455ca7..ed10a57d2 100644 --- a/google/ads/googleads/v14/services/types/ad_group_extension_setting_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_extension_setting_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -64,18 +64,23 @@ class MutateAdGroupExtensionSettingsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AdGroupExtensionSettingOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupExtensionSettingOperation", + proto.MESSAGE, + number=2, + message="AdGroupExtensionSettingOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -100,13 +105,14 @@ class AdGroupExtensionSettingOperation(proto.Message): resource name should be returned post mutation. create (google.ads.googleads.v14.resources.types.AdGroupExtensionSetting): Create operation: No resource name is - expected for the new ad group extension setting. + expected for the new ad group + extension setting. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AdGroupExtensionSetting): Update operation: The ad group extension - setting is expected to have a valid resource - name. + setting is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -119,27 +125,35 @@ class AdGroupExtensionSettingOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, number=5, enum=gage_response_content_type.ResponseContentTypeEnum.ResponseContentType, ) - create: gagr_ad_group_extension_setting.AdGroupExtensionSetting = proto.Field( - proto.MESSAGE, - number=1, - oneof="operation", - message=gagr_ad_group_extension_setting.AdGroupExtensionSetting, + create: gagr_ad_group_extension_setting.AdGroupExtensionSetting = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_ad_group_extension_setting.AdGroupExtensionSetting, + ) ) - update: gagr_ad_group_extension_setting.AdGroupExtensionSetting = proto.Field( - proto.MESSAGE, - number=2, - oneof="operation", - message=gagr_ad_group_extension_setting.AdGroupExtensionSetting, + update: gagr_ad_group_extension_setting.AdGroupExtensionSetting = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_ad_group_extension_setting.AdGroupExtensionSetting, + ) ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -157,12 +171,16 @@ class MutateAdGroupExtensionSettingsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateAdGroupExtensionSettingResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupExtensionSettingResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupExtensionSettingResult", ) @@ -178,7 +196,8 @@ class MutateAdGroupExtensionSettingResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_extension_setting: gagr_ad_group_extension_setting.AdGroupExtensionSetting = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/ad_group_feed_service.py b/google/ads/googleads/v14/services/types/ad_group_feed_service.py index ac5dd53f9..59bb808ff 100644 --- a/google/ads/googleads/v14/services/types/ad_group_feed_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_feed_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateAdGroupFeedsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdGroupFeedOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupFeedOperation", + proto.MESSAGE, + number=2, + message="AdGroupFeedOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -108,7 +113,8 @@ class AdGroupFeedOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AdGroupFeed): Update operation: The ad group feed is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +127,9 @@ class AdGroupFeedOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_ad_group_feed.AdGroupFeed = proto.Field( proto.MESSAGE, @@ -136,7 +144,9 @@ class AdGroupFeedOperation(proto.Message): message=gagr_ad_group_feed.AdGroupFeed, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -154,10 +164,14 @@ class MutateAdGroupFeedsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAdGroupFeedResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupFeedResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupFeedResult", ) @@ -173,10 +187,13 @@ class MutateAdGroupFeedResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group_feed: gagr_ad_group_feed.AdGroupFeed = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad_group_feed.AdGroupFeed, + proto.MESSAGE, + number=2, + message=gagr_ad_group_feed.AdGroupFeed, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_label_service.py b/google/ads/googleads/v14/services/types/ad_group_label_service.py index 2d5f43e1c..a63b973a3 100644 --- a/google/ads/googleads/v14/services/types/ad_group_label_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_label_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,16 +58,21 @@ class MutateAdGroupLabelsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdGroupLabelOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupLabelOperation", + proto.MESSAGE, + number=2, + message="AdGroupLabelOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -83,7 +88,8 @@ class AdGroupLabelOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AdGroupLabel): Create operation: No resource name is - expected for the new ad group label. + expected for the new ad group + label. This field is a member of `oneof`_ ``operation``. remove (str): @@ -102,7 +108,9 @@ class AdGroupLabelOperation(proto.Message): message=ad_group_label.AdGroupLabel, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -120,10 +128,14 @@ class MutateAdGroupLabelsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAdGroupLabelResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupLabelResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupLabelResult", ) @@ -135,7 +147,8 @@ class MutateAdGroupLabelResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/ad_group_service.py b/google/ads/googleads/v14/services/types/ad_group_service.py index bd1cff669..51fcd1ee8 100644 --- a/google/ads/googleads/v14/services/types/ad_group_service.py +++ b/google/ads/googleads/v14/services/types/ad_group_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateAdGroupsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdGroupOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdGroupOperation", + proto.MESSAGE, + number=2, + message="AdGroupOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -117,7 +122,9 @@ class AdGroupOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_ad_group.AdGroup = proto.Field( proto.MESSAGE, @@ -132,7 +139,9 @@ class AdGroupOperation(proto.Message): message=gagr_ad_group.AdGroup, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -150,10 +159,14 @@ class MutateAdGroupsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAdGroupResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdGroupResult", + proto.MESSAGE, + number=2, + message="MutateAdGroupResult", ) @@ -169,10 +182,13 @@ class MutateAdGroupResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_group: gagr_ad_group.AdGroup = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad_group.AdGroup, + proto.MESSAGE, + number=2, + message=gagr_ad_group.AdGroup, ) diff --git a/google/ads/googleads/v14/services/types/ad_parameter_service.py b/google/ads/googleads/v14/services/types/ad_parameter_service.py index 20c850010..9416bde32 100644 --- a/google/ads/googleads/v14/services/types/ad_parameter_service.py +++ b/google/ads/googleads/v14/services/types/ad_parameter_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateAdParametersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdParameterOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdParameterOperation", + proto.MESSAGE, + number=2, + message="AdParameterOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -106,7 +111,8 @@ class AdParameterOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AdParameter): Update operation: The ad parameter is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -119,7 +125,9 @@ class AdParameterOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_ad_parameter.AdParameter = proto.Field( proto.MESSAGE, @@ -134,7 +142,9 @@ class AdParameterOperation(proto.Message): message=gagr_ad_parameter.AdParameter, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -152,10 +162,14 @@ class MutateAdParametersResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAdParameterResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdParameterResult", + proto.MESSAGE, + number=2, + message="MutateAdParameterResult", ) @@ -172,10 +186,13 @@ class MutateAdParameterResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad_parameter: gagr_ad_parameter.AdParameter = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad_parameter.AdParameter, + proto.MESSAGE, + number=2, + message=gagr_ad_parameter.AdParameter, ) diff --git a/google/ads/googleads/v14/services/types/ad_service.py b/google/ads/googleads/v14/services/types/ad_service.py index 6dce14d92..551678d5f 100644 --- a/google/ads/googleads/v14/services/types/ad_service.py +++ b/google/ads/googleads/v14/services/types/ad_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,7 +52,8 @@ class GetAdRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -83,13 +84,17 @@ class MutateAdsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AdOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AdOperation", + proto.MESSAGE, + number=2, + message="AdOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -97,7 +102,8 @@ class MutateAdsRequest(proto.Message): enum=gage_response_content_type.ResponseContentTypeEnum.ResponseContentType, ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -121,13 +127,20 @@ class AdOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) policy_validation_parameter: policy.PolicyValidationParameter = proto.Field( - proto.MESSAGE, number=3, message=policy.PolicyValidationParameter, + proto.MESSAGE, + number=3, + message=policy.PolicyValidationParameter, ) update: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=1, oneof="operation", message=gagr_ad.Ad, + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_ad.Ad, ) @@ -145,10 +158,14 @@ class MutateAdsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAdResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAdResult", + proto.MESSAGE, + number=2, + message="MutateAdResult", ) @@ -165,10 +182,13 @@ class MutateAdResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=2, message=gagr_ad.Ad, + proto.MESSAGE, + number=2, + message=gagr_ad.Ad, ) diff --git a/google/ads/googleads/v14/services/types/asset_group_asset_service.py b/google/ads/googleads/v14/services/types/asset_group_asset_service.py index dbcbeb422..d240f5c95 100644 --- a/google/ads/googleads/v14/services/types/asset_group_asset_service.py +++ b/google/ads/googleads/v14/services/types/asset_group_asset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,18 +59,23 @@ class MutateAssetGroupAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AssetGroupAssetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AssetGroupAssetOperation", + proto.MESSAGE, + number=2, + message="AssetGroupAssetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -89,12 +94,14 @@ class AssetGroupAssetOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.AssetGroupAsset): Create operation: No resource name is - expected for the new asset group asset. + expected for the new asset group + asset. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AssetGroupAsset): Update operation: The asset group asset is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -106,7 +113,9 @@ class AssetGroupAssetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: asset_group_asset.AssetGroupAsset = proto.Field( proto.MESSAGE, @@ -121,7 +130,9 @@ class AssetGroupAssetOperation(proto.Message): message=asset_group_asset.AssetGroupAsset, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -141,10 +152,14 @@ class MutateAssetGroupAssetsResponse(proto.Message): results: MutableSequence[ "MutateAssetGroupAssetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAssetGroupAssetResult", + proto.MESSAGE, + number=1, + message="MutateAssetGroupAssetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -156,7 +171,8 @@ class MutateAssetGroupAssetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/asset_group_listing_group_filter_service.py b/google/ads/googleads/v14/services/types/asset_group_listing_group_filter_service.py index f71e53316..ccc508bb0 100644 --- a/google/ads/googleads/v14/services/types/asset_group_listing_group_filter_service.py +++ b/google/ads/googleads/v14/services/types/asset_group_listing_group_filter_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -63,7 +63,8 @@ class MutateAssetGroupListingGroupFiltersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AssetGroupListingGroupFilterOperation" @@ -73,7 +74,8 @@ class MutateAssetGroupListingGroupFiltersRequest(proto.Message): message="AssetGroupListingGroupFilterOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,14 +101,14 @@ class AssetGroupListingGroupFilterOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.AssetGroupListingGroupFilter): Create operation: No resource name is - expected for the new asset group listing group - filter. + expected for the new asset group + listing group filter. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AssetGroupListingGroupFilter): Update operation: The asset group listing - group filter is expected to have a valid - resource name. + group filter is expected to + have a valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +123,9 @@ class AssetGroupListingGroupFilterOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_asset_group_listing_group_filter.AssetGroupListingGroupFilter = proto.Field( proto.MESSAGE, @@ -136,7 +140,9 @@ class AssetGroupListingGroupFilterOperation(proto.Message): message=gagr_asset_group_listing_group_filter.AssetGroupListingGroupFilter, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -170,7 +176,8 @@ class MutateAssetGroupListingGroupFilterResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_group_listing_group_filter: gagr_asset_group_listing_group_filter.AssetGroupListingGroupFilter = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/asset_group_service.py b/google/ads/googleads/v14/services/types/asset_group_service.py index 271c9169d..498327598 100644 --- a/google/ads/googleads/v14/services/types/asset_group_service.py +++ b/google/ads/googleads/v14/services/types/asset_group_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -53,13 +53,17 @@ class MutateAssetGroupsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AssetGroupOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AssetGroupOperation", + proto.MESSAGE, + number=2, + message="AssetGroupOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -83,7 +87,8 @@ class AssetGroupOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AssetGroup): Update operation: The asset group is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -95,7 +100,9 @@ class AssetGroupOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: asset_group.AssetGroup = proto.Field( proto.MESSAGE, @@ -110,7 +117,9 @@ class AssetGroupOperation(proto.Message): message=asset_group.AssetGroup, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -128,10 +137,14 @@ class MutateAssetGroupsResponse(proto.Message): """ results: MutableSequence["MutateAssetGroupResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAssetGroupResult", + proto.MESSAGE, + number=1, + message="MutateAssetGroupResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -143,7 +156,8 @@ class MutateAssetGroupResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/asset_group_signal_service.py b/google/ads/googleads/v14/services/types/asset_group_signal_service.py index 3443d3800..5b4ead2b9 100644 --- a/google/ads/googleads/v14/services/types/asset_group_signal_service.py +++ b/google/ads/googleads/v14/services/types/asset_group_signal_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateAssetGroupSignalsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "AssetGroupSignalOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AssetGroupSignalOperation", + proto.MESSAGE, + number=2, + message="AssetGroupSignalOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,7 +104,8 @@ class AssetGroupSignalOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AssetGroupSignal): Create operation: No resource name is - expected for the new asset group signal. + expected for the new asset group + signal. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class AssetGroupSignalOperation(proto.Message): message=gagr_asset_group_signal.AssetGroupSignal, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -137,10 +145,14 @@ class MutateAssetGroupSignalsResponse(proto.Message): results: MutableSequence[ "MutateAssetGroupSignalResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAssetGroupSignalResult", + proto.MESSAGE, + number=1, + message="MutateAssetGroupSignalResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -156,7 +168,8 @@ class MutateAssetGroupSignalResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_group_signal: gagr_asset_group_signal.AssetGroupSignal = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/asset_service.py b/google/ads/googleads/v14/services/types/asset_service.py index a8c80d8a8..f660d0fa8 100644 --- a/google/ads/googleads/v14/services/types/asset_service.py +++ b/google/ads/googleads/v14/services/types/asset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,13 +66,17 @@ class MutateAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AssetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AssetOperation", + proto.MESSAGE, + number=2, + message="AssetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -80,7 +84,8 @@ class MutateAssetsRequest(proto.Message): enum=gage_response_content_type.ResponseContentTypeEnum.ResponseContentType, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -117,13 +122,21 @@ class AssetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=3, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=3, + message=field_mask_pb2.FieldMask, ) create: gagr_asset.Asset = proto.Field( - proto.MESSAGE, number=1, oneof="operation", message=gagr_asset.Asset, + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_asset.Asset, ) update: gagr_asset.Asset = proto.Field( - proto.MESSAGE, number=2, oneof="operation", message=gagr_asset.Asset, + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_asset.Asset, ) @@ -141,10 +154,14 @@ class MutateAssetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateAssetResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateAssetResult", + proto.MESSAGE, + number=2, + message="MutateAssetResult", ) @@ -161,10 +178,13 @@ class MutateAssetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset: gagr_asset.Asset = proto.Field( - proto.MESSAGE, number=2, message=gagr_asset.Asset, + proto.MESSAGE, + number=2, + message=gagr_asset.Asset, ) diff --git a/google/ads/googleads/v14/services/types/asset_set_asset_service.py b/google/ads/googleads/v14/services/types/asset_set_asset_service.py index 7c967c809..6a212a28f 100644 --- a/google/ads/googleads/v14/services/types/asset_set_asset_service.py +++ b/google/ads/googleads/v14/services/types/asset_set_asset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,16 +67,21 @@ class MutateAssetSetAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AssetSetAssetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AssetSetAssetOperation", + proto.MESSAGE, + number=2, + message="AssetSetAssetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -97,7 +102,8 @@ class AssetSetAssetOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.AssetSetAsset): Create operation: No resource name is - expected for the new asset set asset + expected for the new asset set + asset This field is a member of `oneof`_ ``operation``. remove (str): @@ -115,7 +121,9 @@ class AssetSetAssetOperation(proto.Message): message=gagr_asset_set_asset.AssetSetAsset, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -133,10 +141,14 @@ class MutateAssetSetAssetsResponse(proto.Message): """ results: MutableSequence["MutateAssetSetAssetResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAssetSetAssetResult", + proto.MESSAGE, + number=1, + message="MutateAssetSetAssetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -152,10 +164,13 @@ class MutateAssetSetAssetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_set_asset: gagr_asset_set_asset.AssetSetAsset = proto.Field( - proto.MESSAGE, number=2, message=gagr_asset_set_asset.AssetSetAsset, + proto.MESSAGE, + number=2, + message=gagr_asset_set_asset.AssetSetAsset, ) diff --git a/google/ads/googleads/v14/services/types/asset_set_service.py b/google/ads/googleads/v14/services/types/asset_set_service.py index 35cf80636..971503ac6 100644 --- a/google/ads/googleads/v14/services/types/asset_set_service.py +++ b/google/ads/googleads/v14/services/types/asset_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateAssetSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AssetSetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AssetSetOperation", + proto.MESSAGE, + number=2, + message="AssetSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -104,7 +109,8 @@ class AssetSetOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.AssetSet): Update operation: The asset set is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -116,7 +122,9 @@ class AssetSetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_asset_set.AssetSet = proto.Field( proto.MESSAGE, @@ -131,7 +139,9 @@ class AssetSetOperation(proto.Message): message=gagr_asset_set.AssetSet, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -149,10 +159,14 @@ class MutateAssetSetsResponse(proto.Message): """ results: MutableSequence["MutateAssetSetResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAssetSetResult", + proto.MESSAGE, + number=1, + message="MutateAssetSetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -168,10 +182,13 @@ class MutateAssetSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_set: gagr_asset_set.AssetSet = proto.Field( - proto.MESSAGE, number=2, message=gagr_asset_set.AssetSet, + proto.MESSAGE, + number=2, + message=gagr_asset_set.AssetSet, ) diff --git a/google/ads/googleads/v14/services/types/audience_insights_service.py b/google/ads/googleads/v14/services/types/audience_insights_service.py index 4db76bef8..7c1fb6deb 100644 --- a/google/ads/googleads/v14/services/types/audience_insights_service.py +++ b/google/ads/googleads/v14/services/types/audience_insights_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -78,16 +78,22 @@ class GenerateInsightsFinderReportRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) baseline_audience: "BasicInsightsAudience" = proto.Field( - proto.MESSAGE, number=2, message="BasicInsightsAudience", + proto.MESSAGE, + number=2, + message="BasicInsightsAudience", ) specific_audience: "BasicInsightsAudience" = proto.Field( - proto.MESSAGE, number=3, message="BasicInsightsAudience", + proto.MESSAGE, + number=3, + message="BasicInsightsAudience", ) customer_insights_group: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -104,7 +110,8 @@ class GenerateInsightsFinderReportResponse(proto.Message): """ saved_report_url: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -135,16 +142,22 @@ class GenerateAudienceCompositionInsightsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) audience: "InsightsAudience" = proto.Field( - proto.MESSAGE, number=2, message="InsightsAudience", + proto.MESSAGE, + number=2, + message="InsightsAudience", ) baseline_audience: "InsightsAudience" = proto.Field( - proto.MESSAGE, number=6, message="InsightsAudience", + proto.MESSAGE, + number=6, + message="InsightsAudience", ) data_month: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) dimensions: MutableSequence[ audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension @@ -154,7 +167,8 @@ class GenerateAudienceCompositionInsightsRequest(proto.Message): enum=audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension, ) customer_insights_group: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) @@ -175,7 +189,9 @@ class GenerateAudienceCompositionInsightsResponse(proto.Message): sections: MutableSequence[ "AudienceCompositionSection" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="AudienceCompositionSection", + proto.MESSAGE, + number=1, + message="AudienceCompositionSection", ) @@ -209,7 +225,8 @@ class ListAudienceInsightsAttributesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) dimensions: MutableSequence[ audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension @@ -219,15 +236,19 @@ class ListAudienceInsightsAttributesRequest(proto.Message): enum=audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension, ) query_text: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) customer_insights_group: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) location_country_filters: MutableSequence[ criteria.LocationInfo ] = proto.RepeatedField( - proto.MESSAGE, number=5, message=criteria.LocationInfo, + proto.MESSAGE, + number=5, + message=criteria.LocationInfo, ) @@ -243,20 +264,22 @@ class ListAudienceInsightsAttributesResponse(proto.Message): attributes: MutableSequence[ "AudienceInsightsAttributeMetadata" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="AudienceInsightsAttributeMetadata", + proto.MESSAGE, + number=1, + message="AudienceInsightsAttributeMetadata", ) class ListInsightsEligibleDatesRequest(proto.Message): r"""Request message for - [AudienceInsightsService.ListAudienceInsightsDates][]. + [AudienceInsightsService.ListInsightsEligibleDates][google.ads.googleads.v14.services.AudienceInsightsService.ListInsightsEligibleDates]. """ class ListInsightsEligibleDatesResponse(proto.Message): r"""Response message for - [AudienceInsightsService.ListAudienceInsightsDates][]. + [AudienceInsightsService.ListInsightsEligibleDates][google.ads.googleads.v14.services.AudienceInsightsService.ListInsightsEligibleDates]. Attributes: data_months (MutableSequence[str]): @@ -271,10 +294,13 @@ class ListInsightsEligibleDatesResponse(proto.Message): """ data_months: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) last_thirty_days: dates.DateRange = proto.Field( - proto.MESSAGE, number=2, message=dates.DateRange, + proto.MESSAGE, + number=2, + message=dates.DateRange, ) @@ -344,7 +370,10 @@ class AudienceInsightsAttribute(proto.Message): message=criteria.AgeRangeInfo, ) gender: criteria.GenderInfo = proto.Field( - proto.MESSAGE, number=2, oneof="attribute", message=criteria.GenderInfo, + proto.MESSAGE, + number=2, + oneof="attribute", + message=criteria.GenderInfo, ) location: criteria.LocationInfo = proto.Field( proto.MESSAGE, @@ -441,7 +470,8 @@ class AudienceInsightsEntity(proto.Message): """ knowledge_graph_machine_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -453,7 +483,8 @@ class AudienceInsightsCategory(proto.Message): """ category_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -466,7 +497,8 @@ class AudienceInsightsDynamicLineup(proto.Message): """ dynamic_lineup_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -498,26 +530,38 @@ class BasicInsightsAudience(proto.Message): country_location: MutableSequence[ criteria.LocationInfo ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=criteria.LocationInfo, + proto.MESSAGE, + number=1, + message=criteria.LocationInfo, ) sub_country_locations: MutableSequence[ criteria.LocationInfo ] = proto.RepeatedField( - proto.MESSAGE, number=2, message=criteria.LocationInfo, + proto.MESSAGE, + number=2, + message=criteria.LocationInfo, ) gender: criteria.GenderInfo = proto.Field( - proto.MESSAGE, number=3, message=criteria.GenderInfo, + proto.MESSAGE, + number=3, + message=criteria.GenderInfo, ) age_ranges: MutableSequence[criteria.AgeRangeInfo] = proto.RepeatedField( - proto.MESSAGE, number=4, message=criteria.AgeRangeInfo, + proto.MESSAGE, + number=4, + message=criteria.AgeRangeInfo, ) user_interests: MutableSequence[ criteria.UserInterestInfo ] = proto.RepeatedField( - proto.MESSAGE, number=5, message=criteria.UserInterestInfo, + proto.MESSAGE, + number=5, + message=criteria.UserInterestInfo, ) topics: MutableSequence["AudienceInsightsTopic"] = proto.RepeatedField( - proto.MESSAGE, number=6, message="AudienceInsightsTopic", + proto.MESSAGE, + number=6, + message="AudienceInsightsTopic", ) @@ -570,16 +614,21 @@ class AudienceInsightsAttributeMetadata(proto.Message): enum=audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension, ) attribute: "AudienceInsightsAttribute" = proto.Field( - proto.MESSAGE, number=2, message="AudienceInsightsAttribute", + proto.MESSAGE, + number=2, + message="AudienceInsightsAttribute", ) display_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) score: float = proto.Field( - proto.DOUBLE, number=4, + proto.DOUBLE, + number=4, ) display_info: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) youtube_channel_metadata: "YouTubeChannelAttributeMetadata" = proto.Field( proto.MESSAGE, @@ -610,7 +659,8 @@ class YouTubeChannelAttributeMetadata(proto.Message): """ subscriber_count: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) @@ -656,29 +706,46 @@ class SampleChannel(proto.Message): """ youtube_channel: criteria.YouTubeChannelInfo = proto.Field( - proto.MESSAGE, number=1, message=criteria.YouTubeChannelInfo, + proto.MESSAGE, + number=1, + message=criteria.YouTubeChannelInfo, ) display_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) - youtube_channel_metadata: "YouTubeChannelAttributeMetadata" = proto.Field( - proto.MESSAGE, number=3, message="YouTubeChannelAttributeMetadata", + youtube_channel_metadata: "YouTubeChannelAttributeMetadata" = ( + proto.Field( + proto.MESSAGE, + number=3, + message="YouTubeChannelAttributeMetadata", + ) ) inventory_country: criteria.LocationInfo = proto.Field( - proto.MESSAGE, number=1, message=criteria.LocationInfo, + proto.MESSAGE, + number=1, + message=criteria.LocationInfo, ) median_monthly_inventory: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) channel_count_lower_bound: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) channel_count_upper_bound: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) sample_channels: MutableSequence[SampleChannel] = proto.RepeatedField( - proto.MESSAGE, number=5, message=SampleChannel, + proto.MESSAGE, + number=5, + message=SampleChannel, ) @@ -691,7 +758,9 @@ class LocationAttributeMetadata(proto.Message): """ country_location: criteria.LocationInfo = proto.Field( - proto.MESSAGE, number=1, message=criteria.LocationInfo, + proto.MESSAGE, + number=1, + message=criteria.LocationInfo, ) @@ -742,36 +811,52 @@ class InsightsAudience(proto.Message): country_locations: MutableSequence[ criteria.LocationInfo ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=criteria.LocationInfo, + proto.MESSAGE, + number=1, + message=criteria.LocationInfo, ) sub_country_locations: MutableSequence[ criteria.LocationInfo ] = proto.RepeatedField( - proto.MESSAGE, number=2, message=criteria.LocationInfo, + proto.MESSAGE, + number=2, + message=criteria.LocationInfo, ) gender: criteria.GenderInfo = proto.Field( - proto.MESSAGE, number=3, message=criteria.GenderInfo, + proto.MESSAGE, + number=3, + message=criteria.GenderInfo, ) age_ranges: MutableSequence[criteria.AgeRangeInfo] = proto.RepeatedField( - proto.MESSAGE, number=4, message=criteria.AgeRangeInfo, + proto.MESSAGE, + number=4, + message=criteria.AgeRangeInfo, ) parental_status: criteria.ParentalStatusInfo = proto.Field( - proto.MESSAGE, number=5, message=criteria.ParentalStatusInfo, + proto.MESSAGE, + number=5, + message=criteria.ParentalStatusInfo, ) income_ranges: MutableSequence[ criteria.IncomeRangeInfo ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=criteria.IncomeRangeInfo, + proto.MESSAGE, + number=6, + message=criteria.IncomeRangeInfo, ) dynamic_lineups: MutableSequence[ "AudienceInsightsDynamicLineup" ] = proto.RepeatedField( - proto.MESSAGE, number=7, message="AudienceInsightsDynamicLineup", + proto.MESSAGE, + number=7, + message="AudienceInsightsDynamicLineup", ) topic_audience_combinations: MutableSequence[ "InsightsAudienceAttributeGroup" ] = proto.RepeatedField( - proto.MESSAGE, number=8, message="InsightsAudienceAttributeGroup", + proto.MESSAGE, + number=8, + message="InsightsAudienceAttributeGroup", ) @@ -790,7 +875,9 @@ class InsightsAudienceAttributeGroup(proto.Message): attributes: MutableSequence[ "AudienceInsightsAttribute" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="AudienceInsightsAttribute", + proto.MESSAGE, + number=1, + message="AudienceInsightsAttribute", ) @@ -818,12 +905,16 @@ class AudienceCompositionSection(proto.Message): top_attributes: MutableSequence[ "AudienceCompositionAttribute" ] = proto.RepeatedField( - proto.MESSAGE, number=3, message="AudienceCompositionAttribute", + proto.MESSAGE, + number=3, + message="AudienceCompositionAttribute", ) clustered_attributes: MutableSequence[ "AudienceCompositionAttributeCluster" ] = proto.RepeatedField( - proto.MESSAGE, number=4, message="AudienceCompositionAttributeCluster", + proto.MESSAGE, + number=4, + message="AudienceCompositionAttributeCluster", ) @@ -845,15 +936,20 @@ class AudienceCompositionAttributeCluster(proto.Message): """ cluster_display_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) cluster_metrics: "AudienceCompositionMetrics" = proto.Field( - proto.MESSAGE, number=3, message="AudienceCompositionMetrics", + proto.MESSAGE, + number=3, + message="AudienceCompositionMetrics", ) attributes: MutableSequence[ "AudienceCompositionAttribute" ] = proto.RepeatedField( - proto.MESSAGE, number=4, message="AudienceCompositionAttribute", + proto.MESSAGE, + number=4, + message="AudienceCompositionAttribute", ) @@ -876,16 +972,20 @@ class AudienceCompositionMetrics(proto.Message): """ baseline_audience_share: float = proto.Field( - proto.DOUBLE, number=1, + proto.DOUBLE, + number=1, ) audience_share: float = proto.Field( - proto.DOUBLE, number=2, + proto.DOUBLE, + number=2, ) index: float = proto.Field( - proto.DOUBLE, number=3, + proto.DOUBLE, + number=3, ) score: float = proto.Field( - proto.DOUBLE, number=4, + proto.DOUBLE, + number=4, ) @@ -899,10 +999,14 @@ class AudienceCompositionAttribute(proto.Message): """ attribute_metadata: "AudienceInsightsAttributeMetadata" = proto.Field( - proto.MESSAGE, number=1, message="AudienceInsightsAttributeMetadata", + proto.MESSAGE, + number=1, + message="AudienceInsightsAttributeMetadata", ) metrics: "AudienceCompositionMetrics" = proto.Field( - proto.MESSAGE, number=2, message="AudienceCompositionMetrics", + proto.MESSAGE, + number=2, + message="AudienceCompositionMetrics", ) diff --git a/google/ads/googleads/v14/services/types/audience_service.py b/google/ads/googleads/v14/services/types/audience_service.py index 340e0bfaa..8649c5d5a 100644 --- a/google/ads/googleads/v14/services/types/audience_service.py +++ b/google/ads/googleads/v14/services/types/audience_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateAudiencesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["AudienceOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="AudienceOperation", + proto.MESSAGE, + number=2, + message="AudienceOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -98,10 +103,14 @@ class MutateAudiencesResponse(proto.Message): """ results: MutableSequence["MutateAudienceResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateAudienceResult", + proto.MESSAGE, + number=1, + message="MutateAudienceResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -125,13 +134,16 @@ class AudienceOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.Audience): Update operation: The audience is expected to - have a valid resource name. + have a valid resource + name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_audience.Audience = proto.Field( proto.MESSAGE, @@ -159,10 +171,13 @@ class MutateAudienceResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) audience: gagr_audience.Audience = proto.Field( - proto.MESSAGE, number=2, message=gagr_audience.Audience, + proto.MESSAGE, + number=2, + message=gagr_audience.Audience, ) diff --git a/google/ads/googleads/v14/services/types/batch_job_service.py b/google/ads/googleads/v14/services/types/batch_job_service.py index 9900f0b95..0d4fa1be8 100644 --- a/google/ads/googleads/v14/services/types/batch_job_service.py +++ b/google/ads/googleads/v14/services/types/batch_job_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,10 +59,13 @@ class MutateBatchJobRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "BatchJobOperation" = proto.Field( - proto.MESSAGE, number=2, message="BatchJobOperation", + proto.MESSAGE, + number=2, + message="BatchJobOperation", ) @@ -92,10 +95,15 @@ class BatchJobOperation(proto.Message): """ create: batch_job.BatchJob = proto.Field( - proto.MESSAGE, number=1, oneof="operation", message=batch_job.BatchJob, + proto.MESSAGE, + number=1, + oneof="operation", + message=batch_job.BatchJob, ) remove: str = proto.Field( - proto.STRING, number=4, oneof="operation", + proto.STRING, + number=4, + oneof="operation", ) @@ -109,7 +117,9 @@ class MutateBatchJobResponse(proto.Message): """ result: "MutateBatchJobResult" = proto.Field( - proto.MESSAGE, number=1, message="MutateBatchJobResult", + proto.MESSAGE, + number=1, + message="MutateBatchJobResult", ) @@ -121,7 +131,8 @@ class MutateBatchJobResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -136,7 +147,8 @@ class RunBatchJobRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -169,15 +181,19 @@ class AddBatchJobOperationsRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) sequence_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) mutate_operations: MutableSequence[ google_ads_service.MutateOperation ] = proto.RepeatedField( - proto.MESSAGE, number=3, message=google_ads_service.MutateOperation, + proto.MESSAGE, + number=3, + message=google_ads_service.MutateOperation, ) @@ -197,10 +213,12 @@ class AddBatchJobOperationsResponse(proto.Message): """ total_operations: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) next_sequence_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -229,13 +247,16 @@ class ListBatchJobResultsRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) page_size: int = proto.Field( - proto.INT32, number=3, + proto.INT32, + number=3, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -263,10 +284,13 @@ def raw_page(self): return self results: MutableSequence["BatchJobResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="BatchJobResult", + proto.MESSAGE, + number=1, + message="BatchJobResult", ) next_page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -284,15 +308,20 @@ class BatchJobResult(proto.Message): """ operation_index: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) - mutate_operation_response: google_ads_service.MutateOperationResponse = proto.Field( - proto.MESSAGE, - number=2, - message=google_ads_service.MutateOperationResponse, + mutate_operation_response: google_ads_service.MutateOperationResponse = ( + proto.Field( + proto.MESSAGE, + number=2, + message=google_ads_service.MutateOperationResponse, + ) ) status: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) diff --git a/google/ads/googleads/v14/services/types/bidding_data_exclusion_service.py b/google/ads/googleads/v14/services/types/bidding_data_exclusion_service.py index 507b6279a..ff6992e5b 100644 --- a/google/ads/googleads/v14/services/types/bidding_data_exclusion_service.py +++ b/google/ads/googleads/v14/services/types/bidding_data_exclusion_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateBiddingDataExclusionsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "BiddingDataExclusionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="BiddingDataExclusionOperation", + proto.MESSAGE, + number=2, + message="BiddingDataExclusionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class BiddingDataExclusionOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.BiddingDataExclusion): Create operation: No resource name is - expected for the new data exclusion. + expected for the new data + exclusion. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.BiddingDataExclusion): Update operation: The data exclusion is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class BiddingDataExclusionOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_bidding_data_exclusion.BiddingDataExclusion = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class BiddingDataExclusionOperation(proto.Message): message=gagr_bidding_data_exclusion.BiddingDataExclusion, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +167,16 @@ class MutateBiddingDataExclusionsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateBiddingDataExclusionsResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateBiddingDataExclusionsResult", + proto.MESSAGE, + number=2, + message="MutateBiddingDataExclusionsResult", ) @@ -177,12 +192,15 @@ class MutateBiddingDataExclusionsResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - bidding_data_exclusion: gagr_bidding_data_exclusion.BiddingDataExclusion = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_bidding_data_exclusion.BiddingDataExclusion, + bidding_data_exclusion: gagr_bidding_data_exclusion.BiddingDataExclusion = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_bidding_data_exclusion.BiddingDataExclusion, + ) ) diff --git a/google/ads/googleads/v14/services/types/bidding_seasonality_adjustment_service.py b/google/ads/googleads/v14/services/types/bidding_seasonality_adjustment_service.py index 1008bb126..d7d24642f 100644 --- a/google/ads/googleads/v14/services/types/bidding_seasonality_adjustment_service.py +++ b/google/ads/googleads/v14/services/types/bidding_seasonality_adjustment_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,7 +68,8 @@ class MutateBiddingSeasonalityAdjustmentsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "BiddingSeasonalityAdjustmentOperation" @@ -78,10 +79,12 @@ class MutateBiddingSeasonalityAdjustmentsRequest(proto.Message): message="BiddingSeasonalityAdjustmentOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -107,12 +110,14 @@ class BiddingSeasonalityAdjustmentOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.BiddingSeasonalityAdjustment): Create operation: No resource name is - expected for the new seasonality adjustment. + expected for the new seasonality + adjustment. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.BiddingSeasonalityAdjustment): Update operation: The seasonality adjustment - is expected to have a valid resource name. + is expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -125,7 +130,9 @@ class BiddingSeasonalityAdjustmentOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_bidding_seasonality_adjustment.BiddingSeasonalityAdjustment = proto.Field( proto.MESSAGE, @@ -140,7 +147,9 @@ class BiddingSeasonalityAdjustmentOperation(proto.Message): message=gagr_bidding_seasonality_adjustment.BiddingSeasonalityAdjustment, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -158,7 +167,9 @@ class MutateBiddingSeasonalityAdjustmentsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateBiddingSeasonalityAdjustmentsResult" @@ -181,7 +192,8 @@ class MutateBiddingSeasonalityAdjustmentsResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) bidding_seasonality_adjustment: gagr_bidding_seasonality_adjustment.BiddingSeasonalityAdjustment = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/bidding_strategy_service.py b/google/ads/googleads/v14/services/types/bidding_strategy_service.py index ab958c123..ecb64b121 100644 --- a/google/ads/googleads/v14/services/types/bidding_strategy_service.py +++ b/google/ads/googleads/v14/services/types/bidding_strategy_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateBiddingStrategiesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "BiddingStrategyOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="BiddingStrategyOperation", + proto.MESSAGE, + number=2, + message="BiddingStrategyOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class BiddingStrategyOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.BiddingStrategy): Create operation: No resource name is - expected for the new bidding strategy. + expected for the new bidding + strategy. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.BiddingStrategy): Update operation: The bidding strategy is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class BiddingStrategyOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_bidding_strategy.BiddingStrategy = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class BiddingStrategyOperation(proto.Message): message=gagr_bidding_strategy.BiddingStrategy, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +167,16 @@ class MutateBiddingStrategiesResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateBiddingStrategyResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateBiddingStrategyResult", + proto.MESSAGE, + number=2, + message="MutateBiddingStrategyResult", ) @@ -177,10 +192,13 @@ class MutateBiddingStrategyResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) bidding_strategy: gagr_bidding_strategy.BiddingStrategy = proto.Field( - proto.MESSAGE, number=2, message=gagr_bidding_strategy.BiddingStrategy, + proto.MESSAGE, + number=2, + message=gagr_bidding_strategy.BiddingStrategy, ) diff --git a/google/ads/googleads/v14/services/types/billing_setup_service.py b/google/ads/googleads/v14/services/types/billing_setup_service.py index 9f7decef6..282735960 100644 --- a/google/ads/googleads/v14/services/types/billing_setup_service.py +++ b/google/ads/googleads/v14/services/types/billing_setup_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,10 +44,13 @@ class MutateBillingSetupRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "BillingSetupOperation" = proto.Field( - proto.MESSAGE, number=2, message="BillingSetupOperation", + proto.MESSAGE, + number=2, + message="BillingSetupOperation", ) @@ -84,7 +87,9 @@ class BillingSetupOperation(proto.Message): message=billing_setup.BillingSetup, ) remove: str = proto.Field( - proto.STRING, number=1, oneof="operation", + proto.STRING, + number=1, + oneof="operation", ) @@ -97,7 +102,9 @@ class MutateBillingSetupResponse(proto.Message): """ result: "MutateBillingSetupResult" = proto.Field( - proto.MESSAGE, number=1, message="MutateBillingSetupResult", + proto.MESSAGE, + number=1, + message="MutateBillingSetupResult", ) @@ -109,7 +116,8 @@ class MutateBillingSetupResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/campaign_asset_service.py b/google/ads/googleads/v14/services/types/campaign_asset_service.py index 32a7d2904..4ce5a8203 100644 --- a/google/ads/googleads/v14/services/types/campaign_asset_service.py +++ b/google/ads/googleads/v14/services/types/campaign_asset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateCampaignAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CampaignAssetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignAssetOperation", + proto.MESSAGE, + number=2, + message="CampaignAssetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -103,12 +108,14 @@ class CampaignAssetOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CampaignAsset): Create operation: No resource name is - expected for the new campaign asset. + expected for the new campaign + asset. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignAsset): Update operation: The campaign asset is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +128,9 @@ class CampaignAssetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_asset.CampaignAsset = proto.Field( proto.MESSAGE, @@ -136,7 +145,9 @@ class CampaignAssetOperation(proto.Message): message=gagr_campaign_asset.CampaignAsset, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -154,10 +165,14 @@ class MutateCampaignAssetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence["MutateCampaignAssetResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignAssetResult", + proto.MESSAGE, + number=2, + message="MutateCampaignAssetResult", ) @@ -173,10 +188,13 @@ class MutateCampaignAssetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_asset: gagr_campaign_asset.CampaignAsset = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign_asset.CampaignAsset, + proto.MESSAGE, + number=2, + message=gagr_campaign_asset.CampaignAsset, ) diff --git a/google/ads/googleads/v14/services/types/campaign_asset_set_service.py b/google/ads/googleads/v14/services/types/campaign_asset_set_service.py index 16fa3484f..76a6c3c73 100644 --- a/google/ads/googleads/v14/services/types/campaign_asset_set_service.py +++ b/google/ads/googleads/v14/services/types/campaign_asset_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateCampaignAssetSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignAssetSetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignAssetSetOperation", + proto.MESSAGE, + number=2, + message="CampaignAssetSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,7 +104,8 @@ class CampaignAssetSetOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.CampaignAssetSet): Create operation: No resource name is - expected for the new campaign asset set. + expected for the new campaign asset + set. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class CampaignAssetSetOperation(proto.Message): message=gagr_campaign_asset_set.CampaignAssetSet, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -137,10 +145,14 @@ class MutateCampaignAssetSetsResponse(proto.Message): results: MutableSequence[ "MutateCampaignAssetSetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCampaignAssetSetResult", + proto.MESSAGE, + number=1, + message="MutateCampaignAssetSetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -156,7 +168,8 @@ class MutateCampaignAssetSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_asset_set: gagr_campaign_asset_set.CampaignAssetSet = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/campaign_bid_modifier_service.py b/google/ads/googleads/v14/services/types/campaign_bid_modifier_service.py index d74445a9c..41fbb07dd 100644 --- a/google/ads/googleads/v14/services/types/campaign_bid_modifier_service.py +++ b/google/ads/googleads/v14/services/types/campaign_bid_modifier_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateCampaignBidModifiersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignBidModifierOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignBidModifierOperation", + proto.MESSAGE, + number=2, + message="CampaignBidModifierOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class CampaignBidModifierOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CampaignBidModifier): Create operation: No resource name is - expected for the new campaign bid modifier. + expected for the new campaign bid + modifier. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignBidModifier): Update operation: The campaign bid modifier - is expected to have a valid resource name. + is expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class CampaignBidModifierOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_bid_modifier.CampaignBidModifier = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class CampaignBidModifierOperation(proto.Message): message=gagr_campaign_bid_modifier.CampaignBidModifier, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +167,16 @@ class MutateCampaignBidModifiersResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCampaignBidModifierResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignBidModifierResult", + proto.MESSAGE, + number=2, + message="MutateCampaignBidModifierResult", ) @@ -177,12 +192,15 @@ class MutateCampaignBidModifierResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - campaign_bid_modifier: gagr_campaign_bid_modifier.CampaignBidModifier = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_campaign_bid_modifier.CampaignBidModifier, + campaign_bid_modifier: gagr_campaign_bid_modifier.CampaignBidModifier = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_campaign_bid_modifier.CampaignBidModifier, + ) ) diff --git a/google/ads/googleads/v14/services/types/campaign_budget_service.py b/google/ads/googleads/v14/services/types/campaign_budget_service.py index 72f4d094f..971af64b8 100644 --- a/google/ads/googleads/v14/services/types/campaign_budget_service.py +++ b/google/ads/googleads/v14/services/types/campaign_budget_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateCampaignBudgetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignBudgetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignBudgetOperation", + proto.MESSAGE, + number=2, + message="CampaignBudgetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -110,7 +115,8 @@ class CampaignBudgetOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignBudget): Update operation: The campaign budget is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +129,9 @@ class CampaignBudgetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_budget.CampaignBudget = proto.Field( proto.MESSAGE, @@ -138,7 +146,9 @@ class CampaignBudgetOperation(proto.Message): message=gagr_campaign_budget.CampaignBudget, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +166,16 @@ class MutateCampaignBudgetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCampaignBudgetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignBudgetResult", + proto.MESSAGE, + number=2, + message="MutateCampaignBudgetResult", ) @@ -177,10 +191,13 @@ class MutateCampaignBudgetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_budget: gagr_campaign_budget.CampaignBudget = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign_budget.CampaignBudget, + proto.MESSAGE, + number=2, + message=gagr_campaign_budget.CampaignBudget, ) diff --git a/google/ads/googleads/v14/services/types/campaign_conversion_goal_service.py b/google/ads/googleads/v14/services/types/campaign_conversion_goal_service.py index e93ae5f92..c85924d60 100644 --- a/google/ads/googleads/v14/services/types/campaign_conversion_goal_service.py +++ b/google/ads/googleads/v14/services/types/campaign_conversion_goal_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,15 +52,19 @@ class MutateCampaignConversionGoalsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignConversionGoalOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignConversionGoalOperation", + proto.MESSAGE, + number=2, + message="CampaignConversionGoalOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -74,13 +78,16 @@ class CampaignConversionGoalOperation(proto.Message): fields are modified in an update. update (google.ads.googleads.v14.resources.types.CampaignConversionGoal): Update operation: The customer conversion - goal is expected to have a valid resource name. + goal is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) update: campaign_conversion_goal.CampaignConversionGoal = proto.Field( proto.MESSAGE, @@ -100,7 +107,9 @@ class MutateCampaignConversionGoalsResponse(proto.Message): results: MutableSequence[ "MutateCampaignConversionGoalResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCampaignConversionGoalResult", + proto.MESSAGE, + number=1, + message="MutateCampaignConversionGoalResult", ) @@ -112,7 +121,8 @@ class MutateCampaignConversionGoalResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/campaign_criterion_service.py b/google/ads/googleads/v14/services/types/campaign_criterion_service.py index 9cdec0d2f..3b7475dc3 100644 --- a/google/ads/googleads/v14/services/types/campaign_criterion_service.py +++ b/google/ads/googleads/v14/services/types/campaign_criterion_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateCampaignCriteriaRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignCriterionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignCriterionOperation", + proto.MESSAGE, + number=2, + message="CampaignCriterionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -110,7 +115,8 @@ class CampaignCriterionOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignCriterion): Update operation: The criterion is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +129,9 @@ class CampaignCriterionOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_criterion.CampaignCriterion = proto.Field( proto.MESSAGE, @@ -138,7 +146,9 @@ class CampaignCriterionOperation(proto.Message): message=gagr_campaign_criterion.CampaignCriterion, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +166,16 @@ class MutateCampaignCriteriaResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCampaignCriterionResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignCriterionResult", + proto.MESSAGE, + number=2, + message="MutateCampaignCriterionResult", ) @@ -177,7 +191,8 @@ class MutateCampaignCriterionResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_criterion: gagr_campaign_criterion.CampaignCriterion = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/campaign_customizer_service.py b/google/ads/googleads/v14/services/types/campaign_customizer_service.py index 7f79091d1..0b9f14b8b 100644 --- a/google/ads/googleads/v14/services/types/campaign_customizer_service.py +++ b/google/ads/googleads/v14/services/types/campaign_customizer_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateCampaignCustomizersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignCustomizerOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignCustomizerOperation", + proto.MESSAGE, + number=2, + message="CampaignCustomizerOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -101,7 +106,8 @@ class CampaignCustomizerOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.CampaignCustomizer): Create operation: No resource name is - expected for the new campaign customizer + expected for the new campaign + customizer This field is a member of `oneof`_ ``operation``. remove (str): @@ -119,7 +125,9 @@ class CampaignCustomizerOperation(proto.Message): message=gagr_campaign_customizer.CampaignCustomizer, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -139,10 +147,14 @@ class MutateCampaignCustomizersResponse(proto.Message): results: MutableSequence[ "MutateCampaignCustomizerResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCampaignCustomizerResult", + proto.MESSAGE, + number=1, + message="MutateCampaignCustomizerResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -158,12 +170,15 @@ class MutateCampaignCustomizerResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - campaign_customizer: gagr_campaign_customizer.CampaignCustomizer = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_campaign_customizer.CampaignCustomizer, + campaign_customizer: gagr_campaign_customizer.CampaignCustomizer = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_campaign_customizer.CampaignCustomizer, + ) ) diff --git a/google/ads/googleads/v14/services/types/campaign_draft_service.py b/google/ads/googleads/v14/services/types/campaign_draft_service.py index 3fdbc16c1..cc28c0c47 100644 --- a/google/ads/googleads/v14/services/types/campaign_draft_service.py +++ b/google/ads/googleads/v14/services/types/campaign_draft_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -71,16 +71,21 @@ class MutateCampaignDraftsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CampaignDraftOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignDraftOperation", + proto.MESSAGE, + number=2, + message="CampaignDraftOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -104,10 +109,12 @@ class PromoteCampaignDraftRequest(proto.Message): """ campaign_draft: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) validate_only: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -128,12 +135,14 @@ class CampaignDraftOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CampaignDraft): Create operation: No resource name is - expected for the new campaign draft. + expected for the new campaign + draft. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignDraft): Update operation: The campaign draft is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -146,7 +155,9 @@ class CampaignDraftOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_draft.CampaignDraft = proto.Field( proto.MESSAGE, @@ -161,7 +172,9 @@ class CampaignDraftOperation(proto.Message): message=gagr_campaign_draft.CampaignDraft, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -179,10 +192,14 @@ class MutateCampaignDraftsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateCampaignDraftResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignDraftResult", + proto.MESSAGE, + number=2, + message="MutateCampaignDraftResult", ) @@ -198,10 +215,13 @@ class MutateCampaignDraftResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_draft: gagr_campaign_draft.CampaignDraft = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign_draft.CampaignDraft, + proto.MESSAGE, + number=2, + message=gagr_campaign_draft.CampaignDraft, ) @@ -226,13 +246,16 @@ class ListCampaignDraftAsyncErrorsRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) page_size: int = proto.Field( - proto.INT32, number=3, + proto.INT32, + number=3, ) @@ -256,10 +279,13 @@ def raw_page(self): return self errors: MutableSequence[status_pb2.Status] = proto.RepeatedField( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) next_page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) diff --git a/google/ads/googleads/v14/services/types/campaign_extension_setting_service.py b/google/ads/googleads/v14/services/types/campaign_extension_setting_service.py index 5d70e1613..797ca2f99 100644 --- a/google/ads/googleads/v14/services/types/campaign_extension_setting_service.py +++ b/google/ads/googleads/v14/services/types/campaign_extension_setting_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateCampaignExtensionSettingsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignExtensionSettingOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignExtensionSettingOperation", + proto.MESSAGE, + number=2, + message="CampaignExtensionSettingOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,13 +110,14 @@ class CampaignExtensionSettingOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CampaignExtensionSetting): Create operation: No resource name is - expected for the new campaign extension setting. + expected for the new campaign + extension setting. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignExtensionSetting): Update operation: The campaign extension - setting is expected to have a valid resource - name. + setting is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -124,22 +130,30 @@ class CampaignExtensionSettingOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, - ) - create: gagr_campaign_extension_setting.CampaignExtensionSetting = proto.Field( proto.MESSAGE, - number=1, - oneof="operation", - message=gagr_campaign_extension_setting.CampaignExtensionSetting, + number=4, + message=field_mask_pb2.FieldMask, ) - update: gagr_campaign_extension_setting.CampaignExtensionSetting = proto.Field( - proto.MESSAGE, - number=2, - oneof="operation", - message=gagr_campaign_extension_setting.CampaignExtensionSetting, + create: gagr_campaign_extension_setting.CampaignExtensionSetting = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_campaign_extension_setting.CampaignExtensionSetting, + ) + ) + update: gagr_campaign_extension_setting.CampaignExtensionSetting = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_campaign_extension_setting.CampaignExtensionSetting, + ) ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -157,12 +171,16 @@ class MutateCampaignExtensionSettingsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCampaignExtensionSettingResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignExtensionSettingResult", + proto.MESSAGE, + number=2, + message="MutateCampaignExtensionSettingResult", ) @@ -178,7 +196,8 @@ class MutateCampaignExtensionSettingResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_extension_setting: gagr_campaign_extension_setting.CampaignExtensionSetting = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/campaign_feed_service.py b/google/ads/googleads/v14/services/types/campaign_feed_service.py index 5af9e3015..dd43f82a1 100644 --- a/google/ads/googleads/v14/services/types/campaign_feed_service.py +++ b/google/ads/googleads/v14/services/types/campaign_feed_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateCampaignFeedsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CampaignFeedOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignFeedOperation", + proto.MESSAGE, + number=2, + message="CampaignFeedOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -108,7 +113,8 @@ class CampaignFeedOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignFeed): Update operation: The campaign feed is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +127,9 @@ class CampaignFeedOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_feed.CampaignFeed = proto.Field( proto.MESSAGE, @@ -136,7 +144,9 @@ class CampaignFeedOperation(proto.Message): message=gagr_campaign_feed.CampaignFeed, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -154,10 +164,14 @@ class MutateCampaignFeedsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateCampaignFeedResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignFeedResult", + proto.MESSAGE, + number=2, + message="MutateCampaignFeedResult", ) @@ -173,10 +187,13 @@ class MutateCampaignFeedResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_feed: gagr_campaign_feed.CampaignFeed = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign_feed.CampaignFeed, + proto.MESSAGE, + number=2, + message=gagr_campaign_feed.CampaignFeed, ) diff --git a/google/ads/googleads/v14/services/types/campaign_group_service.py b/google/ads/googleads/v14/services/types/campaign_group_service.py index 84777d020..4f3129b94 100644 --- a/google/ads/googleads/v14/services/types/campaign_group_service.py +++ b/google/ads/googleads/v14/services/types/campaign_group_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateCampaignGroupsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CampaignGroupOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignGroupOperation", + proto.MESSAGE, + number=2, + message="CampaignGroupOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -103,12 +108,14 @@ class CampaignGroupOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CampaignGroup): Create operation: No resource name is - expected for the new campaign group. + expected for the new campaign + group. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CampaignGroup): Update operation: The campaign group is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +128,9 @@ class CampaignGroupOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign_group.CampaignGroup = proto.Field( proto.MESSAGE, @@ -136,7 +145,9 @@ class CampaignGroupOperation(proto.Message): message=gagr_campaign_group.CampaignGroup, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -154,10 +165,14 @@ class MutateCampaignGroupsResponse(proto.Message): """ results: MutableSequence["MutateCampaignGroupResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignGroupResult", + proto.MESSAGE, + number=2, + message="MutateCampaignGroupResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) @@ -173,10 +188,13 @@ class MutateCampaignGroupResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_group: gagr_campaign_group.CampaignGroup = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign_group.CampaignGroup, + proto.MESSAGE, + number=2, + message=gagr_campaign_group.CampaignGroup, ) diff --git a/google/ads/googleads/v14/services/types/campaign_label_service.py b/google/ads/googleads/v14/services/types/campaign_label_service.py index 41bb52d54..4db96926d 100644 --- a/google/ads/googleads/v14/services/types/campaign_label_service.py +++ b/google/ads/googleads/v14/services/types/campaign_label_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,16 +58,21 @@ class MutateCampaignLabelsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CampaignLabelOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignLabelOperation", + proto.MESSAGE, + number=2, + message="CampaignLabelOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -105,7 +110,9 @@ class CampaignLabelOperation(proto.Message): message=campaign_label.CampaignLabel, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -123,10 +130,14 @@ class MutateCampaignLabelsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateCampaignLabelResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignLabelResult", + proto.MESSAGE, + number=2, + message="MutateCampaignLabelResult", ) @@ -138,7 +149,8 @@ class MutateCampaignLabelResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/campaign_service.py b/google/ads/googleads/v14/services/types/campaign_service.py index 193b10707..ea45c2a93 100644 --- a/google/ads/googleads/v14/services/types/campaign_service.py +++ b/google/ads/googleads/v14/services/types/campaign_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateCampaignsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CampaignOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignOperation", + proto.MESSAGE, + number=2, + message="CampaignOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -104,7 +109,8 @@ class CampaignOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.Campaign): Update operation: The campaign is expected to - have a valid resource name. + have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class CampaignOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_campaign.Campaign = proto.Field( proto.MESSAGE, @@ -132,7 +140,9 @@ class CampaignOperation(proto.Message): message=gagr_campaign.Campaign, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -150,10 +160,14 @@ class MutateCampaignsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateCampaignResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignResult", + proto.MESSAGE, + number=2, + message="MutateCampaignResult", ) @@ -169,10 +183,13 @@ class MutateCampaignResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: gagr_campaign.Campaign = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign.Campaign, + proto.MESSAGE, + number=2, + message=gagr_campaign.Campaign, ) diff --git a/google/ads/googleads/v14/services/types/campaign_shared_set_service.py b/google/ads/googleads/v14/services/types/campaign_shared_set_service.py index 1197059ac..e247ce5b9 100644 --- a/google/ads/googleads/v14/services/types/campaign_shared_set_service.py +++ b/google/ads/googleads/v14/services/types/campaign_shared_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateCampaignSharedSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CampaignSharedSetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignSharedSetOperation", + proto.MESSAGE, + number=2, + message="CampaignSharedSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,7 +104,8 @@ class CampaignSharedSetOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.CampaignSharedSet): Create operation: No resource name is - expected for the new campaign shared set. + expected for the new campaign + shared set. This field is a member of `oneof`_ ``operation``. remove (str): @@ -118,7 +124,9 @@ class CampaignSharedSetOperation(proto.Message): message=gagr_campaign_shared_set.CampaignSharedSet, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -136,12 +144,16 @@ class MutateCampaignSharedSetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCampaignSharedSetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCampaignSharedSetResult", + proto.MESSAGE, + number=2, + message="MutateCampaignSharedSetResult", ) @@ -157,12 +169,15 @@ class MutateCampaignSharedSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - campaign_shared_set: gagr_campaign_shared_set.CampaignSharedSet = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_campaign_shared_set.CampaignSharedSet, + campaign_shared_set: gagr_campaign_shared_set.CampaignSharedSet = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_campaign_shared_set.CampaignSharedSet, + ) ) diff --git a/google/ads/googleads/v14/services/types/conversion_action_service.py b/google/ads/googleads/v14/services/types/conversion_action_service.py index 6d66df1b5..0da6cf315 100644 --- a/google/ads/googleads/v14/services/types/conversion_action_service.py +++ b/google/ads/googleads/v14/services/types/conversion_action_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateConversionActionsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ConversionActionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ConversionActionOperation", + proto.MESSAGE, + number=2, + message="ConversionActionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class ConversionActionOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.ConversionAction): Create operation: No resource name is - expected for the new conversion action. + expected for the new conversion + action. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.ConversionAction): Update operation: The conversion action is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class ConversionActionOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_conversion_action.ConversionAction = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class ConversionActionOperation(proto.Message): message=gagr_conversion_action.ConversionAction, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -158,12 +169,16 @@ class MutateConversionActionsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateConversionActionResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateConversionActionResult", + proto.MESSAGE, + number=2, + message="MutateConversionActionResult", ) @@ -179,7 +194,8 @@ class MutateConversionActionResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) conversion_action: gagr_conversion_action.ConversionAction = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/conversion_adjustment_upload_service.py b/google/ads/googleads/v14/services/types/conversion_adjustment_upload_service.py index fb35d5ce9..db5abd257 100644 --- a/google/ads/googleads/v14/services/types/conversion_adjustment_upload_service.py +++ b/google/ads/googleads/v14/services/types/conversion_adjustment_upload_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/types/conversion_custom_variable_service.py b/google/ads/googleads/v14/services/types/conversion_custom_variable_service.py index 7b1b3ea26..dd157d885 100644 --- a/google/ads/googleads/v14/services/types/conversion_custom_variable_service.py +++ b/google/ads/googleads/v14/services/types/conversion_custom_variable_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateConversionCustomVariablesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ConversionCustomVariableOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ConversionCustomVariableOperation", + proto.MESSAGE, + number=2, + message="ConversionCustomVariableOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,31 +110,38 @@ class ConversionCustomVariableOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.ConversionCustomVariable): Create operation: No resource name is - expected for the new conversion custom variable. + expected for the new conversion + custom variable. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.ConversionCustomVariable): Update operation: The conversion custom - variable is expected to have a valid resource - name. + variable is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=3, message=field_mask_pb2.FieldMask, - ) - create: gagr_conversion_custom_variable.ConversionCustomVariable = proto.Field( proto.MESSAGE, - number=1, - oneof="operation", - message=gagr_conversion_custom_variable.ConversionCustomVariable, + number=3, + message=field_mask_pb2.FieldMask, ) - update: gagr_conversion_custom_variable.ConversionCustomVariable = proto.Field( - proto.MESSAGE, - number=2, - oneof="operation", - message=gagr_conversion_custom_variable.ConversionCustomVariable, + create: gagr_conversion_custom_variable.ConversionCustomVariable = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_conversion_custom_variable.ConversionCustomVariable, + ) + ) + update: gagr_conversion_custom_variable.ConversionCustomVariable = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_conversion_custom_variable.ConversionCustomVariable, + ) ) @@ -149,12 +161,16 @@ class MutateConversionCustomVariablesResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence[ "MutateConversionCustomVariableResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateConversionCustomVariableResult", + proto.MESSAGE, + number=2, + message="MutateConversionCustomVariableResult", ) @@ -170,7 +186,8 @@ class MutateConversionCustomVariableResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) conversion_custom_variable: gagr_conversion_custom_variable.ConversionCustomVariable = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/conversion_goal_campaign_config_service.py b/google/ads/googleads/v14/services/types/conversion_goal_campaign_config_service.py index 5553693d1..c713560f4 100644 --- a/google/ads/googleads/v14/services/types/conversion_goal_campaign_config_service.py +++ b/google/ads/googleads/v14/services/types/conversion_goal_campaign_config_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ class MutateConversionGoalCampaignConfigsRequest(proto.Message): r"""Request message for - [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfig][]. + [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfigs][google.ads.googleads.v14.services.ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfigs]. Attributes: customer_id (str): @@ -61,7 +61,8 @@ class MutateConversionGoalCampaignConfigsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ConversionGoalCampaignConfigOperation" @@ -71,7 +72,8 @@ class MutateConversionGoalCampaignConfigsRequest(proto.Message): message="ConversionGoalCampaignConfigOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -92,14 +94,16 @@ class ConversionGoalCampaignConfigOperation(proto.Message): fields are modified in an update. update (google.ads.googleads.v14.resources.types.ConversionGoalCampaignConfig): Update operation: The conversion goal - campaign config is expected to have a valid - resource name. + campaign config is expected to have + a valid resource name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) update: gagr_conversion_goal_campaign_config.ConversionGoalCampaignConfig = proto.Field( proto.MESSAGE, @@ -139,7 +143,8 @@ class MutateConversionGoalCampaignConfigResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) conversion_goal_campaign_config: gagr_conversion_goal_campaign_config.ConversionGoalCampaignConfig = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/conversion_upload_service.py b/google/ads/googleads/v14/services/types/conversion_upload_service.py index 0c5c0c3a9..dc4f51da9 100644 --- a/google/ads/googleads/v14/services/types/conversion_upload_service.py +++ b/google/ads/googleads/v14/services/types/conversion_upload_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/google/ads/googleads/v14/services/types/conversion_value_rule_service.py b/google/ads/googleads/v14/services/types/conversion_value_rule_service.py index 12511b9dc..8a7843ab4 100644 --- a/google/ads/googleads/v14/services/types/conversion_value_rule_service.py +++ b/google/ads/googleads/v14/services/types/conversion_value_rule_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateConversionValueRulesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ConversionValueRuleOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ConversionValueRuleOperation", + proto.MESSAGE, + number=2, + message="ConversionValueRuleOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class ConversionValueRuleOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.ConversionValueRule): Create operation: No resource name is - expected for the new conversion value rule. + expected for the new conversion + value rule. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.ConversionValueRule): Update operation: The conversion value rule - is expected to have a valid resource name. + is expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class ConversionValueRuleOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_conversion_value_rule.ConversionValueRule = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class ConversionValueRuleOperation(proto.Message): message=gagr_conversion_value_rule.ConversionValueRule, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -160,10 +171,14 @@ class MutateConversionValueRulesResponse(proto.Message): results: MutableSequence[ "MutateConversionValueRuleResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateConversionValueRuleResult", + proto.MESSAGE, + number=2, + message="MutateConversionValueRuleResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) @@ -179,12 +194,15 @@ class MutateConversionValueRuleResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - conversion_value_rule: gagr_conversion_value_rule.ConversionValueRule = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_conversion_value_rule.ConversionValueRule, + conversion_value_rule: gagr_conversion_value_rule.ConversionValueRule = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_conversion_value_rule.ConversionValueRule, + ) ) diff --git a/google/ads/googleads/v14/services/types/conversion_value_rule_set_service.py b/google/ads/googleads/v14/services/types/conversion_value_rule_set_service.py index a552ce8d8..0779243bc 100644 --- a/google/ads/googleads/v14/services/types/conversion_value_rule_set_service.py +++ b/google/ads/googleads/v14/services/types/conversion_value_rule_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateConversionValueRuleSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ConversionValueRuleSetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ConversionValueRuleSetOperation", + proto.MESSAGE, + number=2, + message="ConversionValueRuleSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class ConversionValueRuleSetOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.ConversionValueRuleSet): Create operation: No resource name is - expected for the new conversion value rule set. + expected for the new conversion + value rule set. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.ConversionValueRuleSet): Update operation: The conversion value rule - set is expected to have a valid resource name. + set is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class ConversionValueRuleSetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_conversion_value_rule_set.ConversionValueRuleSet = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class ConversionValueRuleSetOperation(proto.Message): message=gagr_conversion_value_rule_set.ConversionValueRuleSet, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -160,10 +171,14 @@ class MutateConversionValueRuleSetsResponse(proto.Message): results: MutableSequence[ "MutateConversionValueRuleSetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateConversionValueRuleSetResult", + proto.MESSAGE, + number=1, + message="MutateConversionValueRuleSetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -179,7 +194,8 @@ class MutateConversionValueRuleSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) conversion_value_rule_set: gagr_conversion_value_rule_set.ConversionValueRuleSet = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/custom_audience_service.py b/google/ads/googleads/v14/services/types/custom_audience_service.py index 3427c0180..1fa7e807a 100644 --- a/google/ads/googleads/v14/services/types/custom_audience_service.py +++ b/google/ads/googleads/v14/services/types/custom_audience_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,15 +52,19 @@ class MutateCustomAudiencesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomAudienceOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomAudienceOperation", + proto.MESSAGE, + number=2, + message="CustomAudienceOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -79,12 +83,14 @@ class CustomAudienceOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CustomAudience): Create operation: No resource name is - expected for the new custom audience. + expected for the new custom + audience. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CustomAudience): Update operation: The custom audience is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -97,7 +103,9 @@ class CustomAudienceOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: custom_audience.CustomAudience = proto.Field( proto.MESSAGE, @@ -112,7 +120,9 @@ class CustomAudienceOperation(proto.Message): message=custom_audience.CustomAudience, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -126,7 +136,9 @@ class MutateCustomAudiencesResponse(proto.Message): results: MutableSequence[ "MutateCustomAudienceResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomAudienceResult", + proto.MESSAGE, + number=1, + message="MutateCustomAudienceResult", ) @@ -138,7 +150,8 @@ class MutateCustomAudienceResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/custom_conversion_goal_service.py b/google/ads/googleads/v14/services/types/custom_conversion_goal_service.py index 2098d865d..e1d794b6e 100644 --- a/google/ads/googleads/v14/services/types/custom_conversion_goal_service.py +++ b/google/ads/googleads/v14/services/types/custom_conversion_goal_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,15 +61,19 @@ class MutateCustomConversionGoalsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomConversionGoalOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomConversionGoalOperation", + proto.MESSAGE, + number=2, + message="CustomConversionGoalOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -95,12 +99,14 @@ class CustomConversionGoalOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CustomConversionGoal): Create operation: No resource name is - expected for the new custom conversion goal + expected for the new custom + conversion goal This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CustomConversionGoal): Update operation: The custom conversion goal - is expected to have a valid resource name. + is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -113,7 +119,9 @@ class CustomConversionGoalOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_custom_conversion_goal.CustomConversionGoal = proto.Field( proto.MESSAGE, @@ -128,7 +136,9 @@ class CustomConversionGoalOperation(proto.Message): message=gagr_custom_conversion_goal.CustomConversionGoal, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -142,7 +152,9 @@ class MutateCustomConversionGoalsResponse(proto.Message): results: MutableSequence[ "MutateCustomConversionGoalResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomConversionGoalResult", + proto.MESSAGE, + number=1, + message="MutateCustomConversionGoalResult", ) @@ -158,12 +170,15 @@ class MutateCustomConversionGoalResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - custom_conversion_goal: gagr_custom_conversion_goal.CustomConversionGoal = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_custom_conversion_goal.CustomConversionGoal, + custom_conversion_goal: gagr_custom_conversion_goal.CustomConversionGoal = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_custom_conversion_goal.CustomConversionGoal, + ) ) diff --git a/google/ads/googleads/v14/services/types/custom_interest_service.py b/google/ads/googleads/v14/services/types/custom_interest_service.py index a4adfe8bc..21763c384 100644 --- a/google/ads/googleads/v14/services/types/custom_interest_service.py +++ b/google/ads/googleads/v14/services/types/custom_interest_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,15 +52,19 @@ class MutateCustomInterestsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomInterestOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomInterestOperation", + proto.MESSAGE, + number=2, + message="CustomInterestOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -79,18 +83,22 @@ class CustomInterestOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CustomInterest): Create operation: No resource name is - expected for the new custom interest. + expected for the new custom + interest. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CustomInterest): Update operation: The custom interest is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: custom_interest.CustomInterest = proto.Field( proto.MESSAGE, @@ -116,7 +124,9 @@ class MutateCustomInterestsResponse(proto.Message): results: MutableSequence[ "MutateCustomInterestResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCustomInterestResult", + proto.MESSAGE, + number=2, + message="MutateCustomInterestResult", ) @@ -128,7 +138,8 @@ class MutateCustomInterestResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_asset_service.py b/google/ads/googleads/v14/services/types/customer_asset_service.py index 61d1ab52f..36dd7518f 100644 --- a/google/ads/googleads/v14/services/types/customer_asset_service.py +++ b/google/ads/googleads/v14/services/types/customer_asset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateCustomerAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CustomerAssetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerAssetOperation", + proto.MESSAGE, + number=2, + message="CustomerAssetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -103,12 +108,14 @@ class CustomerAssetOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CustomerAsset): Create operation: No resource name is - expected for the new customer asset. + expected for the new customer + asset. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CustomerAsset): Update operation: The customer asset is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +128,9 @@ class CustomerAssetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_customer_asset.CustomerAsset = proto.Field( proto.MESSAGE, @@ -136,7 +145,9 @@ class CustomerAssetOperation(proto.Message): message=gagr_customer_asset.CustomerAsset, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -154,10 +165,14 @@ class MutateCustomerAssetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence["MutateCustomerAssetResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCustomerAssetResult", + proto.MESSAGE, + number=2, + message="MutateCustomerAssetResult", ) @@ -173,10 +188,13 @@ class MutateCustomerAssetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_asset: gagr_customer_asset.CustomerAsset = proto.Field( - proto.MESSAGE, number=2, message=gagr_customer_asset.CustomerAsset, + proto.MESSAGE, + number=2, + message=gagr_customer_asset.CustomerAsset, ) diff --git a/google/ads/googleads/v14/services/types/customer_asset_set_service.py b/google/ads/googleads/v14/services/types/customer_asset_set_service.py index 81afc99c3..6e0bd6ae8 100644 --- a/google/ads/googleads/v14/services/types/customer_asset_set_service.py +++ b/google/ads/googleads/v14/services/types/customer_asset_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateCustomerAssetSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomerAssetSetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerAssetSetOperation", + proto.MESSAGE, + number=2, + message="CustomerAssetSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,7 +104,8 @@ class CustomerAssetSetOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.CustomerAssetSet): Create operation: No resource name is - expected for the new customer asset set. + expected for the new customer asset + set. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class CustomerAssetSetOperation(proto.Message): message=gagr_customer_asset_set.CustomerAssetSet, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -137,10 +145,14 @@ class MutateCustomerAssetSetsResponse(proto.Message): results: MutableSequence[ "MutateCustomerAssetSetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomerAssetSetResult", + proto.MESSAGE, + number=1, + message="MutateCustomerAssetSetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -156,7 +168,8 @@ class MutateCustomerAssetSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_asset_set: gagr_customer_asset_set.CustomerAssetSet = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/customer_client_link_service.py b/google/ads/googleads/v14/services/types/customer_client_link_service.py index ef307eced..1d50df0f2 100644 --- a/google/ads/googleads/v14/services/types/customer_client_link_service.py +++ b/google/ads/googleads/v14/services/types/customer_client_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -51,13 +51,17 @@ class MutateCustomerClientLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "CustomerClientLinkOperation" = proto.Field( - proto.MESSAGE, number=2, message="CustomerClientLinkOperation", + proto.MESSAGE, + number=2, + message="CustomerClientLinkOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -87,7 +91,9 @@ class CustomerClientLinkOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: customer_client_link.CustomerClientLink = proto.Field( proto.MESSAGE, @@ -112,7 +118,9 @@ class MutateCustomerClientLinkResponse(proto.Message): """ result: "MutateCustomerClientLinkResult" = proto.Field( - proto.MESSAGE, number=1, message="MutateCustomerClientLinkResult", + proto.MESSAGE, + number=1, + message="MutateCustomerClientLinkResult", ) @@ -124,7 +132,8 @@ class MutateCustomerClientLinkResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_conversion_goal_service.py b/google/ads/googleads/v14/services/types/customer_conversion_goal_service.py index a84b490de..93300a23c 100644 --- a/google/ads/googleads/v14/services/types/customer_conversion_goal_service.py +++ b/google/ads/googleads/v14/services/types/customer_conversion_goal_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,15 +52,19 @@ class MutateCustomerConversionGoalsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomerConversionGoalOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerConversionGoalOperation", + proto.MESSAGE, + number=2, + message="CustomerConversionGoalOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -74,13 +78,16 @@ class CustomerConversionGoalOperation(proto.Message): fields are modified in an update. update (google.ads.googleads.v14.resources.types.CustomerConversionGoal): Update operation: The customer conversion - goal is expected to have a valid resource name. + goal is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) update: customer_conversion_goal.CustomerConversionGoal = proto.Field( proto.MESSAGE, @@ -100,7 +107,9 @@ class MutateCustomerConversionGoalsResponse(proto.Message): results: MutableSequence[ "MutateCustomerConversionGoalResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomerConversionGoalResult", + proto.MESSAGE, + number=1, + message="MutateCustomerConversionGoalResult", ) @@ -112,7 +121,8 @@ class MutateCustomerConversionGoalResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_customizer_service.py b/google/ads/googleads/v14/services/types/customer_customizer_service.py index 58a58c03c..f1f75680a 100644 --- a/google/ads/googleads/v14/services/types/customer_customizer_service.py +++ b/google/ads/googleads/v14/services/types/customer_customizer_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateCustomerCustomizersRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomerCustomizerOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerCustomizerOperation", + proto.MESSAGE, + number=2, + message="CustomerCustomizerOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -101,7 +106,8 @@ class CustomerCustomizerOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.CustomerCustomizer): Create operation: No resource name is - expected for the new customer customizer + expected for the new customer + customizer This field is a member of `oneof`_ ``operation``. remove (str): @@ -119,7 +125,9 @@ class CustomerCustomizerOperation(proto.Message): message=gagr_customer_customizer.CustomerCustomizer, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -139,10 +147,14 @@ class MutateCustomerCustomizersResponse(proto.Message): results: MutableSequence[ "MutateCustomerCustomizerResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomerCustomizerResult", + proto.MESSAGE, + number=1, + message="MutateCustomerCustomizerResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -158,12 +170,15 @@ class MutateCustomerCustomizerResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - customer_customizer: gagr_customer_customizer.CustomerCustomizer = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_customer_customizer.CustomerCustomizer, + customer_customizer: gagr_customer_customizer.CustomerCustomizer = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_customer_customizer.CustomerCustomizer, + ) ) diff --git a/google/ads/googleads/v14/services/types/customer_extension_setting_service.py b/google/ads/googleads/v14/services/types/customer_extension_setting_service.py index 27d866e1d..292dc44de 100644 --- a/google/ads/googleads/v14/services/types/customer_extension_setting_service.py +++ b/google/ads/googleads/v14/services/types/customer_extension_setting_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateCustomerExtensionSettingsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomerExtensionSettingOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerExtensionSettingOperation", + proto.MESSAGE, + number=2, + message="CustomerExtensionSettingOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,13 +110,14 @@ class CustomerExtensionSettingOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CustomerExtensionSetting): Create operation: No resource name is - expected for the new customer extension setting. + expected for the new customer + extension setting. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CustomerExtensionSetting): Update operation: The customer extension - setting is expected to have a valid resource - name. + setting is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -124,22 +130,30 @@ class CustomerExtensionSettingOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, - ) - create: gagr_customer_extension_setting.CustomerExtensionSetting = proto.Field( proto.MESSAGE, - number=1, - oneof="operation", - message=gagr_customer_extension_setting.CustomerExtensionSetting, + number=4, + message=field_mask_pb2.FieldMask, ) - update: gagr_customer_extension_setting.CustomerExtensionSetting = proto.Field( - proto.MESSAGE, - number=2, - oneof="operation", - message=gagr_customer_extension_setting.CustomerExtensionSetting, + create: gagr_customer_extension_setting.CustomerExtensionSetting = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_customer_extension_setting.CustomerExtensionSetting, + ) + ) + update: gagr_customer_extension_setting.CustomerExtensionSetting = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_customer_extension_setting.CustomerExtensionSetting, + ) ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -157,12 +171,16 @@ class MutateCustomerExtensionSettingsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCustomerExtensionSettingResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCustomerExtensionSettingResult", + proto.MESSAGE, + number=2, + message="MutateCustomerExtensionSettingResult", ) @@ -178,7 +196,8 @@ class MutateCustomerExtensionSettingResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_extension_setting: gagr_customer_extension_setting.CustomerExtensionSetting = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/customer_feed_service.py b/google/ads/googleads/v14/services/types/customer_feed_service.py index ebdd1625a..a7f536e93 100644 --- a/google/ads/googleads/v14/services/types/customer_feed_service.py +++ b/google/ads/googleads/v14/services/types/customer_feed_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateCustomerFeedsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CustomerFeedOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerFeedOperation", + proto.MESSAGE, + number=2, + message="CustomerFeedOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -108,7 +113,8 @@ class CustomerFeedOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.CustomerFeed): Update operation: The customer feed is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -121,7 +127,9 @@ class CustomerFeedOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_customer_feed.CustomerFeed = proto.Field( proto.MESSAGE, @@ -136,7 +144,9 @@ class CustomerFeedOperation(proto.Message): message=gagr_customer_feed.CustomerFeed, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -154,10 +164,14 @@ class MutateCustomerFeedsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateCustomerFeedResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCustomerFeedResult", + proto.MESSAGE, + number=2, + message="MutateCustomerFeedResult", ) @@ -173,10 +187,13 @@ class MutateCustomerFeedResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_feed: gagr_customer_feed.CustomerFeed = proto.Field( - proto.MESSAGE, number=2, message=gagr_customer_feed.CustomerFeed, + proto.MESSAGE, + number=2, + message=gagr_customer_feed.CustomerFeed, ) diff --git a/google/ads/googleads/v14/services/types/customer_label_service.py b/google/ads/googleads/v14/services/types/customer_label_service.py index d1deaed87..e8c24f1b1 100644 --- a/google/ads/googleads/v14/services/types/customer_label_service.py +++ b/google/ads/googleads/v14/services/types/customer_label_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,16 +58,21 @@ class MutateCustomerLabelsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["CustomerLabelOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerLabelOperation", + proto.MESSAGE, + number=2, + message="CustomerLabelOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -105,7 +110,9 @@ class CustomerLabelOperation(proto.Message): message=customer_label.CustomerLabel, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -123,10 +130,14 @@ class MutateCustomerLabelsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateCustomerLabelResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCustomerLabelResult", + proto.MESSAGE, + number=2, + message="MutateCustomerLabelResult", ) @@ -138,7 +149,8 @@ class MutateCustomerLabelResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_manager_link_service.py b/google/ads/googleads/v14/services/types/customer_manager_link_service.py index 546c17c71..787f48420 100644 --- a/google/ads/googleads/v14/services/types/customer_manager_link_service.py +++ b/google/ads/googleads/v14/services/types/customer_manager_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -54,15 +54,19 @@ class MutateCustomerManagerLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomerManagerLinkOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerManagerLinkOperation", + proto.MESSAGE, + number=2, + message="CustomerManagerLinkOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -88,22 +92,27 @@ class MoveManagerLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) previous_customer_manager_link: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) new_manager: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) class CustomerManagerLinkOperation(proto.Message): r"""Updates the status of a CustomerManagerLink. The following actions are possible: + 1. Update operation with status ACTIVE accepts a pending invitation. 2. Update operation with status REFUSED declines a pending invitation. 3. Update operation with status INACTIVE @@ -123,7 +132,9 @@ class CustomerManagerLinkOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) update: customer_manager_link.CustomerManagerLink = proto.Field( proto.MESSAGE, @@ -144,7 +155,9 @@ class MutateCustomerManagerLinkResponse(proto.Message): results: MutableSequence[ "MutateCustomerManagerLinkResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomerManagerLinkResult", + proto.MESSAGE, + number=1, + message="MutateCustomerManagerLinkResult", ) @@ -159,7 +172,8 @@ class MoveManagerLinkResponse(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -171,7 +185,8 @@ class MutateCustomerManagerLinkResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_negative_criterion_service.py b/google/ads/googleads/v14/services/types/customer_negative_criterion_service.py index 516f04a96..43327a33d 100644 --- a/google/ads/googleads/v14/services/types/customer_negative_criterion_service.py +++ b/google/ads/googleads/v14/services/types/customer_negative_criterion_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateCustomerNegativeCriteriaRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomerNegativeCriterionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomerNegativeCriterionOperation", + proto.MESSAGE, + number=2, + message="CustomerNegativeCriterionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -113,14 +118,18 @@ class CustomerNegativeCriterionOperation(proto.Message): This field is a member of `oneof`_ ``operation``. """ - create: gagr_customer_negative_criterion.CustomerNegativeCriterion = proto.Field( - proto.MESSAGE, - number=1, - oneof="operation", - message=gagr_customer_negative_criterion.CustomerNegativeCriterion, + create: gagr_customer_negative_criterion.CustomerNegativeCriterion = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_customer_negative_criterion.CustomerNegativeCriterion, + ) ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -138,12 +147,16 @@ class MutateCustomerNegativeCriteriaResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateCustomerNegativeCriteriaResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateCustomerNegativeCriteriaResult", + proto.MESSAGE, + number=2, + message="MutateCustomerNegativeCriteriaResult", ) @@ -159,7 +172,8 @@ class MutateCustomerNegativeCriteriaResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_negative_criterion: gagr_customer_negative_criterion.CustomerNegativeCriterion = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/customer_service.py b/google/ads/googleads/v14/services/types/customer_service.py index 6f2481914..15b977e41 100644 --- a/google/ads/googleads/v14/services/types/customer_service.py +++ b/google/ads/googleads/v14/services/types/customer_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -64,13 +64,17 @@ class MutateCustomerRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "CustomerOperation" = proto.Field( - proto.MESSAGE, number=4, message="CustomerOperation", + proto.MESSAGE, + number=4, + message="CustomerOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -109,19 +113,27 @@ class CreateCustomerClientRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_client: gagr_customer.Customer = proto.Field( - proto.MESSAGE, number=2, message=gagr_customer.Customer, + proto.MESSAGE, + number=2, + message=gagr_customer.Customer, ) email_address: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) access_role: gage_access_role.AccessRoleEnum.AccessRole = proto.Field( - proto.ENUM, number=4, enum=gage_access_role.AccessRoleEnum.AccessRole, + proto.ENUM, + number=4, + enum=gage_access_role.AccessRoleEnum.AccessRole, ) validate_only: bool = proto.Field( - proto.BOOL, number=6, + proto.BOOL, + number=6, ) @@ -137,10 +149,14 @@ class CustomerOperation(proto.Message): """ update: gagr_customer.Customer = proto.Field( - proto.MESSAGE, number=1, message=gagr_customer.Customer, + proto.MESSAGE, + number=1, + message=gagr_customer.Customer, ) update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) @@ -157,10 +173,12 @@ class CreateCustomerClientResponse(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) invitation_link: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) @@ -172,7 +190,9 @@ class MutateCustomerResponse(proto.Message): """ result: "MutateCustomerResult" = proto.Field( - proto.MESSAGE, number=2, message="MutateCustomerResult", + proto.MESSAGE, + number=2, + message="MutateCustomerResult", ) @@ -188,10 +208,13 @@ class MutateCustomerResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer: gagr_customer.Customer = proto.Field( - proto.MESSAGE, number=2, message=gagr_customer.Customer, + proto.MESSAGE, + number=2, + message=gagr_customer.Customer, ) @@ -213,7 +236,8 @@ class ListAccessibleCustomersResponse(proto.Message): """ resource_names: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_sk_ad_network_conversion_value_schema_service.py b/google/ads/googleads/v14/services/types/customer_sk_ad_network_conversion_value_schema_service.py index ab8060bd8..b4ffcc847 100644 --- a/google/ads/googleads/v14/services/types/customer_sk_ad_network_conversion_value_schema_service.py +++ b/google/ads/googleads/v14/services/types/customer_sk_ad_network_conversion_value_schema_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,15 +68,19 @@ class MutateCustomerSkAdNetworkConversionValueSchemaRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - operation: "CustomerSkAdNetworkConversionValueSchemaOperation" = proto.Field( - proto.MESSAGE, - number=2, - message="CustomerSkAdNetworkConversionValueSchemaOperation", + operation: "CustomerSkAdNetworkConversionValueSchemaOperation" = ( + proto.Field( + proto.MESSAGE, + number=2, + message="CustomerSkAdNetworkConversionValueSchemaOperation", + ) ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -93,10 +97,12 @@ class MutateCustomerSkAdNetworkConversionValueSchemaResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) app_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -109,10 +115,12 @@ class MutateCustomerSkAdNetworkConversionValueSchemaResponse(proto.Message): All results for the mutate. """ - result: "MutateCustomerSkAdNetworkConversionValueSchemaResult" = proto.Field( - proto.MESSAGE, - number=1, - message="MutateCustomerSkAdNetworkConversionValueSchemaResult", + result: "MutateCustomerSkAdNetworkConversionValueSchemaResult" = ( + proto.Field( + proto.MESSAGE, + number=1, + message="MutateCustomerSkAdNetworkConversionValueSchemaResult", + ) ) diff --git a/google/ads/googleads/v14/services/types/customer_user_access_invitation_service.py b/google/ads/googleads/v14/services/types/customer_user_access_invitation_service.py index f6240b86b..e6a7a4c44 100644 --- a/google/ads/googleads/v14/services/types/customer_user_access_invitation_service.py +++ b/google/ads/googleads/v14/services/types/customer_user_access_invitation_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ class MutateCustomerUserAccessInvitationRequest(proto.Message): r"""Request message for - [CustomerUserAccessInvitation.MutateCustomerUserAccessInvitation][] + [CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation][google.ads.googleads.v14.services.CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation] Attributes: customer_id (str): @@ -49,7 +49,8 @@ class MutateCustomerUserAccessInvitationRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "CustomerUserAccessInvitationOperation" = proto.Field( proto.MESSAGE, @@ -72,7 +73,8 @@ class CustomerUserAccessInvitationOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.CustomerUserAccessInvitation): Create operation: No resource name is - expected for the new access invitation. + expected for the new access + invitation. This field is a member of `oneof`_ ``operation``. remove (str): @@ -91,7 +93,9 @@ class CustomerUserAccessInvitationOperation(proto.Message): message=customer_user_access_invitation.CustomerUserAccessInvitation, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -117,7 +121,8 @@ class MutateCustomerUserAccessInvitationResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customer_user_access_service.py b/google/ads/googleads/v14/services/types/customer_user_access_service.py index 39ee6e01e..a9143b08c 100644 --- a/google/ads/googleads/v14/services/types/customer_user_access_service.py +++ b/google/ads/googleads/v14/services/types/customer_user_access_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -48,10 +48,13 @@ class MutateCustomerUserAccessRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "CustomerUserAccessOperation" = proto.Field( - proto.MESSAGE, number=2, message="CustomerUserAccessOperation", + proto.MESSAGE, + number=2, + message="CustomerUserAccessOperation", ) @@ -70,7 +73,8 @@ class CustomerUserAccessOperation(proto.Message): fields are modified in an update. update (google.ads.googleads.v14.resources.types.CustomerUserAccess): Update operation: The customer user access is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -83,7 +87,9 @@ class CustomerUserAccessOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=3, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=3, + message=field_mask_pb2.FieldMask, ) update: customer_user_access.CustomerUserAccess = proto.Field( proto.MESSAGE, @@ -92,7 +98,9 @@ class CustomerUserAccessOperation(proto.Message): message=customer_user_access.CustomerUserAccess, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -104,7 +112,9 @@ class MutateCustomerUserAccessResponse(proto.Message): """ result: "MutateCustomerUserAccessResult" = proto.Field( - proto.MESSAGE, number=1, message="MutateCustomerUserAccessResult", + proto.MESSAGE, + number=1, + message="MutateCustomerUserAccessResult", ) @@ -116,7 +126,8 @@ class MutateCustomerUserAccessResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/customizer_attribute_service.py b/google/ads/googleads/v14/services/types/customizer_attribute_service.py index e29d56707..ef32f3031 100644 --- a/google/ads/googleads/v14/services/types/customizer_attribute_service.py +++ b/google/ads/googleads/v14/services/types/customizer_attribute_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateCustomizerAttributesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "CustomizerAttributeOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CustomizerAttributeOperation", + proto.MESSAGE, + number=2, + message="CustomizerAttributeOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,7 +110,8 @@ class CustomizerAttributeOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.CustomizerAttribute): Create operation: No resource name is - expected for the new customizer attribute + expected for the new customizer + attribute This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class CustomizerAttributeOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_customizer_attribute.CustomizerAttribute = proto.Field( proto.MESSAGE, @@ -126,7 +134,9 @@ class CustomizerAttributeOperation(proto.Message): message=gagr_customizer_attribute.CustomizerAttribute, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -146,10 +156,14 @@ class MutateCustomizerAttributesResponse(proto.Message): results: MutableSequence[ "MutateCustomizerAttributeResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateCustomizerAttributeResult", + proto.MESSAGE, + number=1, + message="MutateCustomizerAttributeResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -165,12 +179,15 @@ class MutateCustomizerAttributeResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - customizer_attribute: gagr_customizer_attribute.CustomizerAttribute = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_customizer_attribute.CustomizerAttribute, + customizer_attribute: gagr_customizer_attribute.CustomizerAttribute = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_customizer_attribute.CustomizerAttribute, + ) ) diff --git a/google/ads/googleads/v14/services/types/experiment_arm_service.py b/google/ads/googleads/v14/services/types/experiment_arm_service.py index 55bd419eb..30f56d6fd 100644 --- a/google/ads/googleads/v14/services/types/experiment_arm_service.py +++ b/google/ads/googleads/v14/services/types/experiment_arm_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateExperimentArmsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["ExperimentArmOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ExperimentArmOperation", + proto.MESSAGE, + number=2, + message="ExperimentArmOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,7 +110,8 @@ class ExperimentArmOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.ExperimentArm): Update operation: The experiment arm is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -118,7 +124,9 @@ class ExperimentArmOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_experiment_arm.ExperimentArm = proto.Field( proto.MESSAGE, @@ -133,7 +141,9 @@ class ExperimentArmOperation(proto.Message): message=gagr_experiment_arm.ExperimentArm, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -151,10 +161,14 @@ class MutateExperimentArmsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence["MutateExperimentArmResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateExperimentArmResult", + proto.MESSAGE, + number=2, + message="MutateExperimentArmResult", ) @@ -170,10 +184,13 @@ class MutateExperimentArmResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) experiment_arm: gagr_experiment_arm.ExperimentArm = proto.Field( - proto.MESSAGE, number=2, message=gagr_experiment_arm.ExperimentArm, + proto.MESSAGE, + number=2, + message=gagr_experiment_arm.ExperimentArm, ) diff --git a/google/ads/googleads/v14/services/types/experiment_service.py b/google/ads/googleads/v14/services/types/experiment_service.py index eb44fc21c..33e6aad77 100644 --- a/google/ads/googleads/v14/services/types/experiment_service.py +++ b/google/ads/googleads/v14/services/types/experiment_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -70,16 +70,21 @@ class MutateExperimentsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["ExperimentOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ExperimentOperation", + proto.MESSAGE, + number=2, + message="ExperimentOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -102,7 +107,8 @@ class ExperimentOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.Experiment): Update operation: The experiment is expected - to have a valid resource name. + to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -115,7 +121,9 @@ class ExperimentOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_experiment.Experiment = proto.Field( proto.MESSAGE, @@ -130,7 +138,9 @@ class ExperimentOperation(proto.Message): message=gagr_experiment.Experiment, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -148,10 +158,14 @@ class MutateExperimentsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence["MutateExperimentResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateExperimentResult", + proto.MESSAGE, + number=2, + message="MutateExperimentResult", ) @@ -163,7 +177,8 @@ class MutateExperimentResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -181,10 +196,12 @@ class EndExperimentRequest(proto.Message): """ experiment: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) validate_only: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -210,13 +227,16 @@ class ListExperimentAsyncErrorsRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) page_size: int = proto.Field( - proto.INT32, number=3, + proto.INT32, + number=3, ) @@ -240,10 +260,13 @@ def raw_page(self): return self errors: MutableSequence[status_pb2.Status] = proto.RepeatedField( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) next_page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -266,15 +289,19 @@ class GraduateExperimentRequest(proto.Message): """ experiment: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_budget_mappings: MutableSequence[ "CampaignBudgetMapping" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CampaignBudgetMapping", + proto.MESSAGE, + number=2, + message="CampaignBudgetMapping", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -292,10 +319,12 @@ class CampaignBudgetMapping(proto.Message): """ experiment_campaign: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_budget: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -312,10 +341,12 @@ class ScheduleExperimentRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) validate_only: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -327,7 +358,8 @@ class ScheduleExperimentMetadata(proto.Message): """ experiment: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -345,10 +377,12 @@ class PromoteExperimentRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) validate_only: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -360,7 +394,8 @@ class PromoteExperimentMetadata(proto.Message): """ experiment: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/extension_feed_item_service.py b/google/ads/googleads/v14/services/types/extension_feed_item_service.py index e0fa4e127..ee9ef1f63 100644 --- a/google/ads/googleads/v14/services/types/extension_feed_item_service.py +++ b/google/ads/googleads/v14/services/types/extension_feed_item_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,18 +68,23 @@ class MutateExtensionFeedItemsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ExtensionFeedItemOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ExtensionFeedItemOperation", + proto.MESSAGE, + number=2, + message="ExtensionFeedItemOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -105,12 +110,14 @@ class ExtensionFeedItemOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.ExtensionFeedItem): Create operation: No resource name is - expected for the new extension feed item. + expected for the new extension + feed item. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.ExtensionFeedItem): Update operation: The extension feed item is - expected to have a valid resource name. + expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -123,7 +130,9 @@ class ExtensionFeedItemOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_extension_feed_item.ExtensionFeedItem = proto.Field( proto.MESSAGE, @@ -138,7 +147,9 @@ class ExtensionFeedItemOperation(proto.Message): message=gagr_extension_feed_item.ExtensionFeedItem, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -156,12 +167,16 @@ class MutateExtensionFeedItemsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateExtensionFeedItemResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateExtensionFeedItemResult", + proto.MESSAGE, + number=2, + message="MutateExtensionFeedItemResult", ) @@ -177,12 +192,15 @@ class MutateExtensionFeedItemResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - extension_feed_item: gagr_extension_feed_item.ExtensionFeedItem = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_extension_feed_item.ExtensionFeedItem, + extension_feed_item: gagr_extension_feed_item.ExtensionFeedItem = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_extension_feed_item.ExtensionFeedItem, + ) ) diff --git a/google/ads/googleads/v14/services/types/feed_item_service.py b/google/ads/googleads/v14/services/types/feed_item_service.py index 9f58e1199..e0449bfe8 100644 --- a/google/ads/googleads/v14/services/types/feed_item_service.py +++ b/google/ads/googleads/v14/services/types/feed_item_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateFeedItemsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["FeedItemOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FeedItemOperation", + proto.MESSAGE, + number=2, + message="FeedItemOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -104,7 +109,8 @@ class FeedItemOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.FeedItem): Update operation: The feed item is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,7 +123,9 @@ class FeedItemOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_feed_item.FeedItem = proto.Field( proto.MESSAGE, @@ -132,7 +140,9 @@ class FeedItemOperation(proto.Message): message=gagr_feed_item.FeedItem, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -150,10 +160,14 @@ class MutateFeedItemsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateFeedItemResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateFeedItemResult", + proto.MESSAGE, + number=2, + message="MutateFeedItemResult", ) @@ -169,10 +183,13 @@ class MutateFeedItemResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed_item: gagr_feed_item.FeedItem = proto.Field( - proto.MESSAGE, number=2, message=gagr_feed_item.FeedItem, + proto.MESSAGE, + number=2, + message=gagr_feed_item.FeedItem, ) diff --git a/google/ads/googleads/v14/services/types/feed_item_set_link_service.py b/google/ads/googleads/v14/services/types/feed_item_set_link_service.py index 7b940b8bc..6d111b15a 100644 --- a/google/ads/googleads/v14/services/types/feed_item_set_link_service.py +++ b/google/ads/googleads/v14/services/types/feed_item_set_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -58,18 +58,23 @@ class MutateFeedItemSetLinksRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "FeedItemSetLinkOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FeedItemSetLinkOperation", + proto.MESSAGE, + number=2, + message="FeedItemSetLinkOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -87,7 +92,8 @@ class FeedItemSetLinkOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.FeedItemSetLink): Create operation: No resource name is - expected for the new feed item set link. + expected for the + new feed item set link. This field is a member of `oneof`_ ``operation``. remove (str): @@ -106,7 +112,9 @@ class FeedItemSetLinkOperation(proto.Message): message=feed_item_set_link.FeedItemSetLink, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -126,10 +134,14 @@ class MutateFeedItemSetLinksResponse(proto.Message): results: MutableSequence[ "MutateFeedItemSetLinkResult" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateFeedItemSetLinkResult", + proto.MESSAGE, + number=1, + message="MutateFeedItemSetLinkResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -141,7 +153,8 @@ class MutateFeedItemSetLinkResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/feed_item_set_service.py b/google/ads/googleads/v14/services/types/feed_item_set_service.py index 07d69aaf2..6015fbd06 100644 --- a/google/ads/googleads/v14/services/types/feed_item_set_service.py +++ b/google/ads/googleads/v14/services/types/feed_item_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,16 +59,21 @@ class MutateFeedItemSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["FeedItemSetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FeedItemSetOperation", + proto.MESSAGE, + number=2, + message="FeedItemSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -92,7 +97,8 @@ class FeedItemSetOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.FeedItemSet): Update operation: The feed item set is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -104,7 +110,9 @@ class FeedItemSetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: feed_item_set.FeedItemSet = proto.Field( proto.MESSAGE, @@ -119,7 +127,9 @@ class FeedItemSetOperation(proto.Message): message=feed_item_set.FeedItemSet, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -137,10 +147,14 @@ class MutateFeedItemSetsResponse(proto.Message): """ results: MutableSequence["MutateFeedItemSetResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateFeedItemSetResult", + proto.MESSAGE, + number=1, + message="MutateFeedItemSetResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -152,7 +166,8 @@ class MutateFeedItemSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/feed_item_target_service.py b/google/ads/googleads/v14/services/types/feed_item_target_service.py index d7d028909..7fb0a60dc 100644 --- a/google/ads/googleads/v14/services/types/feed_item_target_service.py +++ b/google/ads/googleads/v14/services/types/feed_item_target_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,15 +67,19 @@ class MutateFeedItemTargetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "FeedItemTargetOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FeedItemTargetOperation", + proto.MESSAGE, + number=2, + message="FeedItemTargetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -83,7 +87,8 @@ class MutateFeedItemTargetsRequest(proto.Message): enum=gage_response_content_type.ResponseContentTypeEnum.ResponseContentType, ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -99,7 +104,8 @@ class FeedItemTargetOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.FeedItemTarget): Create operation: No resource name is - expected for the new feed item target. + expected for the new feed item + target. This field is a member of `oneof`_ ``operation``. remove (str): @@ -118,7 +124,9 @@ class FeedItemTargetOperation(proto.Message): message=gagr_feed_item_target.FeedItemTarget, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -136,12 +144,16 @@ class MutateFeedItemTargetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateFeedItemTargetResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateFeedItemTargetResult", + proto.MESSAGE, + number=2, + message="MutateFeedItemTargetResult", ) @@ -157,10 +169,13 @@ class MutateFeedItemTargetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed_item_target: gagr_feed_item_target.FeedItemTarget = proto.Field( - proto.MESSAGE, number=2, message=gagr_feed_item_target.FeedItemTarget, + proto.MESSAGE, + number=2, + message=gagr_feed_item_target.FeedItemTarget, ) diff --git a/google/ads/googleads/v14/services/types/feed_mapping_service.py b/google/ads/googleads/v14/services/types/feed_mapping_service.py index 8e9b80ca1..31a45653f 100644 --- a/google/ads/googleads/v14/services/types/feed_mapping_service.py +++ b/google/ads/googleads/v14/services/types/feed_mapping_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,16 +67,21 @@ class MutateFeedMappingsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["FeedMappingOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FeedMappingOperation", + proto.MESSAGE, + number=2, + message="FeedMappingOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -116,7 +121,9 @@ class FeedMappingOperation(proto.Message): message=gagr_feed_mapping.FeedMapping, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -134,10 +141,14 @@ class MutateFeedMappingsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateFeedMappingResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateFeedMappingResult", + proto.MESSAGE, + number=2, + message="MutateFeedMappingResult", ) @@ -153,10 +164,13 @@ class MutateFeedMappingResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed_mapping: gagr_feed_mapping.FeedMapping = proto.Field( - proto.MESSAGE, number=2, message=gagr_feed_mapping.FeedMapping, + proto.MESSAGE, + number=2, + message=gagr_feed_mapping.FeedMapping, ) diff --git a/google/ads/googleads/v14/services/types/feed_service.py b/google/ads/googleads/v14/services/types/feed_service.py index 58d7a0d2e..255aaa485 100644 --- a/google/ads/googleads/v14/services/types/feed_service.py +++ b/google/ads/googleads/v14/services/types/feed_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateFeedsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["FeedOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="FeedOperation", + proto.MESSAGE, + number=2, + message="FeedOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -104,7 +109,8 @@ class FeedOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.Feed): Update operation: The feed is expected to - have a valid resource name. + have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -117,16 +123,26 @@ class FeedOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_feed.Feed = proto.Field( - proto.MESSAGE, number=1, oneof="operation", message=gagr_feed.Feed, + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_feed.Feed, ) update: gagr_feed.Feed = proto.Field( - proto.MESSAGE, number=2, oneof="operation", message=gagr_feed.Feed, + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_feed.Feed, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -144,10 +160,14 @@ class MutateFeedsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateFeedResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateFeedResult", + proto.MESSAGE, + number=2, + message="MutateFeedResult", ) @@ -163,10 +183,13 @@ class MutateFeedResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) feed: gagr_feed.Feed = proto.Field( - proto.MESSAGE, number=2, message=gagr_feed.Feed, + proto.MESSAGE, + number=2, + message=gagr_feed.Feed, ) diff --git a/google/ads/googleads/v14/services/types/geo_target_constant_service.py b/google/ads/googleads/v14/services/types/geo_target_constant_service.py index c6000b7cc..c2b261969 100644 --- a/google/ads/googleads/v14/services/types/geo_target_constant_service.py +++ b/google/ads/googleads/v14/services/types/geo_target_constant_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -79,7 +79,8 @@ class LocationNames(proto.Message): """ names: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) class GeoTargets(proto.Message): @@ -90,20 +91,31 @@ class GeoTargets(proto.Message): """ geo_target_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) locale: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) location_names: LocationNames = proto.Field( - proto.MESSAGE, number=1, oneof="query", message=LocationNames, + proto.MESSAGE, + number=1, + oneof="query", + message=LocationNames, ) geo_targets: GeoTargets = proto.Field( - proto.MESSAGE, number=2, oneof="query", message=GeoTargets, + proto.MESSAGE, + number=2, + oneof="query", + message=GeoTargets, ) @@ -119,7 +131,9 @@ class SuggestGeoTargetConstantsResponse(proto.Message): geo_target_constant_suggestions: MutableSequence[ "GeoTargetConstantSuggestion" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="GeoTargetConstantSuggestion", + proto.MESSAGE, + number=1, + message="GeoTargetConstantSuggestion", ) @@ -157,18 +171,26 @@ class GeoTargetConstantSuggestion(proto.Message): """ locale: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) reach: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) search_term: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) - geo_target_constant: gagr_geo_target_constant.GeoTargetConstant = proto.Field( - proto.MESSAGE, - number=4, - message=gagr_geo_target_constant.GeoTargetConstant, + geo_target_constant: gagr_geo_target_constant.GeoTargetConstant = ( + proto.Field( + proto.MESSAGE, + number=4, + message=gagr_geo_target_constant.GeoTargetConstant, + ) ) geo_target_constant_parents: MutableSequence[ gagr_geo_target_constant.GeoTargetConstant diff --git a/google/ads/googleads/v14/services/types/google_ads_field_service.py b/google/ads/googleads/v14/services/types/google_ads_field_service.py index 0b9804f9f..9eae26c99 100644 --- a/google/ads/googleads/v14/services/types/google_ads_field_service.py +++ b/google/ads/googleads/v14/services/types/google_ads_field_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,7 +44,8 @@ class GetGoogleAdsFieldRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -68,13 +69,16 @@ class SearchGoogleAdsFieldsRequest(proto.Message): """ query: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) page_size: int = proto.Field( - proto.INT32, number=3, + proto.INT32, + number=3, ) @@ -102,13 +106,17 @@ def raw_page(self): results: MutableSequence[ google_ads_field.GoogleAdsField ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=google_ads_field.GoogleAdsField, + proto.MESSAGE, + number=1, + message=google_ads_field.GoogleAdsField, ) next_page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) total_results_count: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) diff --git a/google/ads/googleads/v14/services/types/google_ads_service.py b/google/ads/googleads/v14/services/types/google_ads_service.py index a3452041a..ec76c8a69 100644 --- a/google/ads/googleads/v14/services/types/google_ads_service.py +++ b/google/ads/googleads/v14/services/types/google_ads_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -184,6 +184,9 @@ from google.ads.googleads.v14.resources.types import ( campaign_label as gagr_campaign_label, ) +from google.ads.googleads.v14.resources.types import ( + campaign_search_term_insight as gagr_campaign_search_term_insight, +) from google.ads.googleads.v14.resources.types import ( campaign_shared_set as gagr_campaign_shared_set, ) @@ -266,6 +269,9 @@ from google.ads.googleads.v14.resources.types import ( customer_negative_criterion as gagr_customer_negative_criterion, ) +from google.ads.googleads.v14.resources.types import ( + customer_search_term_insight as gagr_customer_search_term_insight, +) from google.ads.googleads.v14.resources.types import ( customer_user_access as gagr_customer_user_access, ) @@ -650,22 +656,28 @@ class SearchGoogleAdsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) query: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) page_token: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) page_size: int = proto.Field( - proto.INT32, number=4, + proto.INT32, + number=4, ) validate_only: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) return_total_results_count: bool = proto.Field( - proto.BOOL, number=7, + proto.BOOL, + number=7, ) summary_row_setting: gage_summary_row_setting.SummaryRowSettingEnum.SummaryRowSetting = proto.Field( proto.ENUM, @@ -704,19 +716,27 @@ def raw_page(self): return self results: MutableSequence["GoogleAdsRow"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="GoogleAdsRow", + proto.MESSAGE, + number=1, + message="GoogleAdsRow", ) next_page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) total_results_count: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) field_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=5, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=5, + message=field_mask_pb2.FieldMask, ) summary_row: "GoogleAdsRow" = proto.Field( - proto.MESSAGE, number=6, message="GoogleAdsRow", + proto.MESSAGE, + number=6, + message="GoogleAdsRow", ) @@ -739,10 +759,12 @@ class SearchGoogleAdsStreamRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) query: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) summary_row_setting: gage_summary_row_setting.SummaryRowSettingEnum.SummaryRowSetting = proto.Field( proto.ENUM, @@ -772,16 +794,23 @@ class SearchGoogleAdsStreamResponse(proto.Message): """ results: MutableSequence["GoogleAdsRow"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="GoogleAdsRow", + proto.MESSAGE, + number=1, + message="GoogleAdsRow", ) field_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) summary_row: "GoogleAdsRow" = proto.Field( - proto.MESSAGE, number=3, message="GoogleAdsRow", + proto.MESSAGE, + number=3, + message="GoogleAdsRow", ) request_id: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -927,6 +956,9 @@ class GoogleAdsRow(proto.Message): Campaign Group referenced in AWQL query. campaign_label (google.ads.googleads.v14.resources.types.CampaignLabel): The campaign label referenced in the query. + campaign_search_term_insight (google.ads.googleads.v14.resources.types.CampaignSearchTermInsight): + The campaign search term insight referenced + in the query. campaign_shared_set (google.ads.googleads.v14.resources.types.CampaignSharedSet): Campaign Shared Set referenced in AWQL query. campaign_simulation (google.ads.googleads.v14.resources.types.CampaignSimulation): @@ -1003,6 +1035,9 @@ class GoogleAdsRow(proto.Message): customer_negative_criterion (google.ads.googleads.v14.resources.types.CustomerNegativeCriterion): The customer negative criterion referenced in the query. + customer_search_term_insight (google.ads.googleads.v14.resources.types.CustomerSearchTermInsight): + The customer search term insight referenced + in the query. customer_user_access (google.ads.googleads.v14.resources.types.CustomerUserAccess): The CustomerUserAccess referenced in the query. @@ -1193,7 +1228,9 @@ class GoogleAdsRow(proto.Message): """ account_budget: gagr_account_budget.AccountBudget = proto.Field( - proto.MESSAGE, number=42, message=gagr_account_budget.AccountBudget, + proto.MESSAGE, + number=42, + message=gagr_account_budget.AccountBudget, ) account_budget_proposal: gagr_account_budget_proposal.AccountBudgetProposal = proto.Field( proto.MESSAGE, @@ -1201,23 +1238,31 @@ class GoogleAdsRow(proto.Message): message=gagr_account_budget_proposal.AccountBudgetProposal, ) account_link: gagr_account_link.AccountLink = proto.Field( - proto.MESSAGE, number=143, message=gagr_account_link.AccountLink, + proto.MESSAGE, + number=143, + message=gagr_account_link.AccountLink, ) ad_group: gagr_ad_group.AdGroup = proto.Field( - proto.MESSAGE, number=3, message=gagr_ad_group.AdGroup, + proto.MESSAGE, + number=3, + message=gagr_ad_group.AdGroup, ) ad_group_ad: gagr_ad_group_ad.AdGroupAd = proto.Field( - proto.MESSAGE, number=16, message=gagr_ad_group_ad.AdGroupAd, + proto.MESSAGE, + number=16, + message=gagr_ad_group_ad.AdGroupAd, ) ad_group_ad_asset_combination_view: gagr_ad_group_ad_asset_combination_view.AdGroupAdAssetCombinationView = proto.Field( proto.MESSAGE, number=193, message=gagr_ad_group_ad_asset_combination_view.AdGroupAdAssetCombinationView, ) - ad_group_ad_asset_view: gagr_ad_group_ad_asset_view.AdGroupAdAssetView = proto.Field( - proto.MESSAGE, - number=131, - message=gagr_ad_group_ad_asset_view.AdGroupAdAssetView, + ad_group_ad_asset_view: gagr_ad_group_ad_asset_view.AdGroupAdAssetView = ( + proto.Field( + proto.MESSAGE, + number=131, + message=gagr_ad_group_ad_asset_view.AdGroupAdAssetView, + ) ) ad_group_ad_label: gagr_ad_group_ad_label.AdGroupAdLabel = proto.Field( proto.MESSAGE, @@ -1225,22 +1270,28 @@ class GoogleAdsRow(proto.Message): message=gagr_ad_group_ad_label.AdGroupAdLabel, ) ad_group_asset: gagr_ad_group_asset.AdGroupAsset = proto.Field( - proto.MESSAGE, number=154, message=gagr_ad_group_asset.AdGroupAsset, + proto.MESSAGE, + number=154, + message=gagr_ad_group_asset.AdGroupAsset, ) ad_group_asset_set: gagr_ad_group_asset_set.AdGroupAssetSet = proto.Field( proto.MESSAGE, number=196, message=gagr_ad_group_asset_set.AdGroupAssetSet, ) - ad_group_audience_view: gagr_ad_group_audience_view.AdGroupAudienceView = proto.Field( - proto.MESSAGE, - number=57, - message=gagr_ad_group_audience_view.AdGroupAudienceView, + ad_group_audience_view: gagr_ad_group_audience_view.AdGroupAudienceView = ( + proto.Field( + proto.MESSAGE, + number=57, + message=gagr_ad_group_audience_view.AdGroupAudienceView, + ) ) - ad_group_bid_modifier: gagr_ad_group_bid_modifier.AdGroupBidModifier = proto.Field( - proto.MESSAGE, - number=24, - message=gagr_ad_group_bid_modifier.AdGroupBidModifier, + ad_group_bid_modifier: gagr_ad_group_bid_modifier.AdGroupBidModifier = ( + proto.Field( + proto.MESSAGE, + number=24, + message=gagr_ad_group_bid_modifier.AdGroupBidModifier, + ) ) ad_group_criterion: gagr_ad_group_criterion.AdGroupCriterion = proto.Field( proto.MESSAGE, @@ -1262,10 +1313,12 @@ class GoogleAdsRow(proto.Message): number=110, message=gagr_ad_group_criterion_simulation.AdGroupCriterionSimulation, ) - ad_group_customizer: gagr_ad_group_customizer.AdGroupCustomizer = proto.Field( - proto.MESSAGE, - number=185, - message=gagr_ad_group_customizer.AdGroupCustomizer, + ad_group_customizer: gagr_ad_group_customizer.AdGroupCustomizer = ( + proto.Field( + proto.MESSAGE, + number=185, + message=gagr_ad_group_customizer.AdGroupCustomizer, + ) ) ad_group_extension_setting: gagr_ad_group_extension_setting.AdGroupExtensionSetting = proto.Field( proto.MESSAGE, @@ -1273,35 +1326,53 @@ class GoogleAdsRow(proto.Message): message=gagr_ad_group_extension_setting.AdGroupExtensionSetting, ) ad_group_feed: gagr_ad_group_feed.AdGroupFeed = proto.Field( - proto.MESSAGE, number=67, message=gagr_ad_group_feed.AdGroupFeed, + proto.MESSAGE, + number=67, + message=gagr_ad_group_feed.AdGroupFeed, ) ad_group_label: gagr_ad_group_label.AdGroupLabel = proto.Field( - proto.MESSAGE, number=115, message=gagr_ad_group_label.AdGroupLabel, - ) - ad_group_simulation: gagr_ad_group_simulation.AdGroupSimulation = proto.Field( proto.MESSAGE, - number=107, - message=gagr_ad_group_simulation.AdGroupSimulation, + number=115, + message=gagr_ad_group_label.AdGroupLabel, + ) + ad_group_simulation: gagr_ad_group_simulation.AdGroupSimulation = ( + proto.Field( + proto.MESSAGE, + number=107, + message=gagr_ad_group_simulation.AdGroupSimulation, + ) ) ad_parameter: gagr_ad_parameter.AdParameter = proto.Field( - proto.MESSAGE, number=130, message=gagr_ad_parameter.AdParameter, + proto.MESSAGE, + number=130, + message=gagr_ad_parameter.AdParameter, ) age_range_view: gagr_age_range_view.AgeRangeView = proto.Field( - proto.MESSAGE, number=48, message=gagr_age_range_view.AgeRangeView, + proto.MESSAGE, + number=48, + message=gagr_age_range_view.AgeRangeView, ) ad_schedule_view: gagr_ad_schedule_view.AdScheduleView = proto.Field( - proto.MESSAGE, number=89, message=gagr_ad_schedule_view.AdScheduleView, + proto.MESSAGE, + number=89, + message=gagr_ad_schedule_view.AdScheduleView, ) domain_category: gagr_domain_category.DomainCategory = proto.Field( - proto.MESSAGE, number=91, message=gagr_domain_category.DomainCategory, + proto.MESSAGE, + number=91, + message=gagr_domain_category.DomainCategory, ) asset: gagr_asset.Asset = proto.Field( - proto.MESSAGE, number=105, message=gagr_asset.Asset, - ) - asset_field_type_view: gagr_asset_field_type_view.AssetFieldTypeView = proto.Field( proto.MESSAGE, - number=168, - message=gagr_asset_field_type_view.AssetFieldTypeView, + number=105, + message=gagr_asset.Asset, + ) + asset_field_type_view: gagr_asset_field_type_view.AssetFieldTypeView = ( + proto.Field( + proto.MESSAGE, + number=168, + message=gagr_asset_field_type_view.AssetFieldTypeView, + ) ) asset_group_asset: gagr_asset_group_asset.AssetGroupAsset = proto.Field( proto.MESSAGE, @@ -1324,26 +1395,38 @@ class GoogleAdsRow(proto.Message): message=gagr_asset_group_product_group_view.AssetGroupProductGroupView, ) asset_group: gagr_asset_group.AssetGroup = proto.Field( - proto.MESSAGE, number=172, message=gagr_asset_group.AssetGroup, + proto.MESSAGE, + number=172, + message=gagr_asset_group.AssetGroup, ) asset_set_asset: gagr_asset_set_asset.AssetSetAsset = proto.Field( - proto.MESSAGE, number=180, message=gagr_asset_set_asset.AssetSetAsset, + proto.MESSAGE, + number=180, + message=gagr_asset_set_asset.AssetSetAsset, ) asset_set: gagr_asset_set.AssetSet = proto.Field( - proto.MESSAGE, number=179, message=gagr_asset_set.AssetSet, - ) - asset_set_type_view: gagr_asset_set_type_view.AssetSetTypeView = proto.Field( proto.MESSAGE, - number=197, - message=gagr_asset_set_type_view.AssetSetTypeView, + number=179, + message=gagr_asset_set.AssetSet, ) - batch_job: gagr_batch_job.BatchJob = proto.Field( - proto.MESSAGE, number=139, message=gagr_batch_job.BatchJob, + asset_set_type_view: gagr_asset_set_type_view.AssetSetTypeView = ( + proto.Field( + proto.MESSAGE, + number=197, + message=gagr_asset_set_type_view.AssetSetTypeView, + ) ) - bidding_data_exclusion: gagr_bidding_data_exclusion.BiddingDataExclusion = proto.Field( + batch_job: gagr_batch_job.BatchJob = proto.Field( proto.MESSAGE, - number=159, - message=gagr_bidding_data_exclusion.BiddingDataExclusion, + number=139, + message=gagr_batch_job.BatchJob, + ) + bidding_data_exclusion: gagr_bidding_data_exclusion.BiddingDataExclusion = ( + proto.Field( + proto.MESSAGE, + number=159, + message=gagr_bidding_data_exclusion.BiddingDataExclusion, + ) ) bidding_seasonality_adjustment: gagr_bidding_seasonality_adjustment.BiddingSeasonalityAdjustment = proto.Field( proto.MESSAGE, @@ -1351,7 +1434,9 @@ class GoogleAdsRow(proto.Message): message=gagr_bidding_seasonality_adjustment.BiddingSeasonalityAdjustment, ) bidding_strategy: gagr_bidding_strategy.BiddingStrategy = proto.Field( - proto.MESSAGE, number=18, message=gagr_bidding_strategy.BiddingStrategy, + proto.MESSAGE, + number=18, + message=gagr_bidding_strategy.BiddingStrategy, ) bidding_strategy_simulation: gagr_bidding_strategy_simulation.BiddingStrategySimulation = proto.Field( proto.MESSAGE, @@ -1359,34 +1444,48 @@ class GoogleAdsRow(proto.Message): message=gagr_bidding_strategy_simulation.BiddingStrategySimulation, ) billing_setup: gagr_billing_setup.BillingSetup = proto.Field( - proto.MESSAGE, number=41, message=gagr_billing_setup.BillingSetup, + proto.MESSAGE, + number=41, + message=gagr_billing_setup.BillingSetup, ) call_view: gagr_call_view.CallView = proto.Field( - proto.MESSAGE, number=152, message=gagr_call_view.CallView, + proto.MESSAGE, + number=152, + message=gagr_call_view.CallView, ) campaign_budget: gagr_campaign_budget.CampaignBudget = proto.Field( - proto.MESSAGE, number=19, message=gagr_campaign_budget.CampaignBudget, + proto.MESSAGE, + number=19, + message=gagr_campaign_budget.CampaignBudget, ) campaign: gagr_campaign.Campaign = proto.Field( - proto.MESSAGE, number=2, message=gagr_campaign.Campaign, + proto.MESSAGE, + number=2, + message=gagr_campaign.Campaign, ) campaign_asset: gagr_campaign_asset.CampaignAsset = proto.Field( - proto.MESSAGE, number=142, message=gagr_campaign_asset.CampaignAsset, + proto.MESSAGE, + number=142, + message=gagr_campaign_asset.CampaignAsset, ) campaign_asset_set: gagr_campaign_asset_set.CampaignAssetSet = proto.Field( proto.MESSAGE, number=181, message=gagr_campaign_asset_set.CampaignAssetSet, ) - campaign_audience_view: gagr_campaign_audience_view.CampaignAudienceView = proto.Field( - proto.MESSAGE, - number=69, - message=gagr_campaign_audience_view.CampaignAudienceView, + campaign_audience_view: gagr_campaign_audience_view.CampaignAudienceView = ( + proto.Field( + proto.MESSAGE, + number=69, + message=gagr_campaign_audience_view.CampaignAudienceView, + ) ) - campaign_bid_modifier: gagr_campaign_bid_modifier.CampaignBidModifier = proto.Field( - proto.MESSAGE, - number=26, - message=gagr_campaign_bid_modifier.CampaignBidModifier, + campaign_bid_modifier: gagr_campaign_bid_modifier.CampaignBidModifier = ( + proto.Field( + proto.MESSAGE, + number=26, + message=gagr_campaign_bid_modifier.CampaignBidModifier, + ) ) campaign_conversion_goal: gagr_campaign_conversion_goal.CampaignConversionGoal = proto.Field( proto.MESSAGE, @@ -1398,13 +1497,17 @@ class GoogleAdsRow(proto.Message): number=20, message=gagr_campaign_criterion.CampaignCriterion, ) - campaign_customizer: gagr_campaign_customizer.CampaignCustomizer = proto.Field( - proto.MESSAGE, - number=186, - message=gagr_campaign_customizer.CampaignCustomizer, + campaign_customizer: gagr_campaign_customizer.CampaignCustomizer = ( + proto.Field( + proto.MESSAGE, + number=186, + message=gagr_campaign_customizer.CampaignCustomizer, + ) ) campaign_draft: gagr_campaign_draft.CampaignDraft = proto.Field( - proto.MESSAGE, number=49, message=gagr_campaign_draft.CampaignDraft, + proto.MESSAGE, + number=49, + message=gagr_campaign_draft.CampaignDraft, ) campaign_extension_setting: gagr_campaign_extension_setting.CampaignExtensionSetting = proto.Field( proto.MESSAGE, @@ -1412,32 +1515,53 @@ class GoogleAdsRow(proto.Message): message=gagr_campaign_extension_setting.CampaignExtensionSetting, ) campaign_feed: gagr_campaign_feed.CampaignFeed = proto.Field( - proto.MESSAGE, number=63, message=gagr_campaign_feed.CampaignFeed, + proto.MESSAGE, + number=63, + message=gagr_campaign_feed.CampaignFeed, ) campaign_group: gagr_campaign_group.CampaignGroup = proto.Field( - proto.MESSAGE, number=25, message=gagr_campaign_group.CampaignGroup, + proto.MESSAGE, + number=25, + message=gagr_campaign_group.CampaignGroup, ) campaign_label: gagr_campaign_label.CampaignLabel = proto.Field( - proto.MESSAGE, number=108, message=gagr_campaign_label.CampaignLabel, - ) - campaign_shared_set: gagr_campaign_shared_set.CampaignSharedSet = proto.Field( proto.MESSAGE, - number=30, - message=gagr_campaign_shared_set.CampaignSharedSet, + number=108, + message=gagr_campaign_label.CampaignLabel, ) - campaign_simulation: gagr_campaign_simulation.CampaignSimulation = proto.Field( + campaign_search_term_insight: gagr_campaign_search_term_insight.CampaignSearchTermInsight = proto.Field( proto.MESSAGE, - number=157, - message=gagr_campaign_simulation.CampaignSimulation, + number=204, + message=gagr_campaign_search_term_insight.CampaignSearchTermInsight, + ) + campaign_shared_set: gagr_campaign_shared_set.CampaignSharedSet = ( + proto.Field( + proto.MESSAGE, + number=30, + message=gagr_campaign_shared_set.CampaignSharedSet, + ) + ) + campaign_simulation: gagr_campaign_simulation.CampaignSimulation = ( + proto.Field( + proto.MESSAGE, + number=157, + message=gagr_campaign_simulation.CampaignSimulation, + ) ) carrier_constant: gagr_carrier_constant.CarrierConstant = proto.Field( - proto.MESSAGE, number=66, message=gagr_carrier_constant.CarrierConstant, + proto.MESSAGE, + number=66, + message=gagr_carrier_constant.CarrierConstant, ) change_event: gagr_change_event.ChangeEvent = proto.Field( - proto.MESSAGE, number=145, message=gagr_change_event.ChangeEvent, + proto.MESSAGE, + number=145, + message=gagr_change_event.ChangeEvent, ) change_status: gagr_change_status.ChangeStatus = proto.Field( - proto.MESSAGE, number=37, message=gagr_change_status.ChangeStatus, + proto.MESSAGE, + number=37, + message=gagr_change_status.ChangeStatus, ) combined_audience: gagr_combined_audience.CombinedAudience = proto.Field( proto.MESSAGE, @@ -1445,7 +1569,9 @@ class GoogleAdsRow(proto.Message): message=gagr_combined_audience.CombinedAudience, ) audience: gagr_audience.Audience = proto.Field( - proto.MESSAGE, number=190, message=gagr_audience.Audience, + proto.MESSAGE, + number=190, + message=gagr_audience.Audience, ) conversion_action: gagr_conversion_action.ConversionAction = proto.Field( proto.MESSAGE, @@ -1462,10 +1588,12 @@ class GoogleAdsRow(proto.Message): number=177, message=gagr_conversion_goal_campaign_config.ConversionGoalCampaignConfig, ) - conversion_value_rule: gagr_conversion_value_rule.ConversionValueRule = proto.Field( - proto.MESSAGE, - number=164, - message=gagr_conversion_value_rule.ConversionValueRule, + conversion_value_rule: gagr_conversion_value_rule.ConversionValueRule = ( + proto.Field( + proto.MESSAGE, + number=164, + message=gagr_conversion_value_rule.ConversionValueRule, + ) ) conversion_value_rule_set: gagr_conversion_value_rule_set.ConversionValueRuleSet = proto.Field( proto.MESSAGE, @@ -1473,7 +1601,9 @@ class GoogleAdsRow(proto.Message): message=gagr_conversion_value_rule_set.ConversionValueRuleSet, ) click_view: gagr_click_view.ClickView = proto.Field( - proto.MESSAGE, number=122, message=gagr_click_view.ClickView, + proto.MESSAGE, + number=122, + message=gagr_click_view.ClickView, ) currency_constant: gagr_currency_constant.CurrencyConstant = proto.Field( proto.MESSAGE, @@ -1481,21 +1611,31 @@ class GoogleAdsRow(proto.Message): message=gagr_currency_constant.CurrencyConstant, ) custom_audience: gagr_custom_audience.CustomAudience = proto.Field( - proto.MESSAGE, number=147, message=gagr_custom_audience.CustomAudience, - ) - custom_conversion_goal: gagr_custom_conversion_goal.CustomConversionGoal = proto.Field( proto.MESSAGE, - number=176, - message=gagr_custom_conversion_goal.CustomConversionGoal, + number=147, + message=gagr_custom_audience.CustomAudience, + ) + custom_conversion_goal: gagr_custom_conversion_goal.CustomConversionGoal = ( + proto.Field( + proto.MESSAGE, + number=176, + message=gagr_custom_conversion_goal.CustomConversionGoal, + ) ) custom_interest: gagr_custom_interest.CustomInterest = proto.Field( - proto.MESSAGE, number=104, message=gagr_custom_interest.CustomInterest, + proto.MESSAGE, + number=104, + message=gagr_custom_interest.CustomInterest, ) customer: gagr_customer.Customer = proto.Field( - proto.MESSAGE, number=1, message=gagr_customer.Customer, + proto.MESSAGE, + number=1, + message=gagr_customer.Customer, ) customer_asset: gagr_customer_asset.CustomerAsset = proto.Field( - proto.MESSAGE, number=155, message=gagr_customer_asset.CustomerAsset, + proto.MESSAGE, + number=155, + message=gagr_customer_asset.CustomerAsset, ) customer_asset_set: gagr_customer_asset_set.CustomerAssetSet = proto.Field( proto.MESSAGE, @@ -1507,23 +1647,31 @@ class GoogleAdsRow(proto.Message): number=169, message=gagr_accessible_bidding_strategy.AccessibleBiddingStrategy, ) - customer_customizer: gagr_customer_customizer.CustomerCustomizer = proto.Field( - proto.MESSAGE, - number=184, - message=gagr_customer_customizer.CustomerCustomizer, - ) - customer_manager_link: gagr_customer_manager_link.CustomerManagerLink = proto.Field( - proto.MESSAGE, - number=61, - message=gagr_customer_manager_link.CustomerManagerLink, - ) - customer_client_link: gagr_customer_client_link.CustomerClientLink = proto.Field( - proto.MESSAGE, - number=62, - message=gagr_customer_client_link.CustomerClientLink, + customer_customizer: gagr_customer_customizer.CustomerCustomizer = ( + proto.Field( + proto.MESSAGE, + number=184, + message=gagr_customer_customizer.CustomerCustomizer, + ) + ) + customer_manager_link: gagr_customer_manager_link.CustomerManagerLink = ( + proto.Field( + proto.MESSAGE, + number=61, + message=gagr_customer_manager_link.CustomerManagerLink, + ) + ) + customer_client_link: gagr_customer_client_link.CustomerClientLink = ( + proto.Field( + proto.MESSAGE, + number=62, + message=gagr_customer_client_link.CustomerClientLink, + ) ) customer_client: gagr_customer_client.CustomerClient = proto.Field( - proto.MESSAGE, number=70, message=gagr_customer_client.CustomerClient, + proto.MESSAGE, + number=70, + message=gagr_customer_client.CustomerClient, ) customer_conversion_goal: gagr_customer_conversion_goal.CustomerConversionGoal = proto.Field( proto.MESSAGE, @@ -1536,48 +1684,69 @@ class GoogleAdsRow(proto.Message): message=gagr_customer_extension_setting.CustomerExtensionSetting, ) customer_feed: gagr_customer_feed.CustomerFeed = proto.Field( - proto.MESSAGE, number=64, message=gagr_customer_feed.CustomerFeed, + proto.MESSAGE, + number=64, + message=gagr_customer_feed.CustomerFeed, ) customer_label: gagr_customer_label.CustomerLabel = proto.Field( - proto.MESSAGE, number=124, message=gagr_customer_label.CustomerLabel, + proto.MESSAGE, + number=124, + message=gagr_customer_label.CustomerLabel, ) customer_negative_criterion: gagr_customer_negative_criterion.CustomerNegativeCriterion = proto.Field( proto.MESSAGE, number=88, message=gagr_customer_negative_criterion.CustomerNegativeCriterion, ) - customer_user_access: gagr_customer_user_access.CustomerUserAccess = proto.Field( + customer_search_term_insight: gagr_customer_search_term_insight.CustomerSearchTermInsight = proto.Field( proto.MESSAGE, - number=146, - message=gagr_customer_user_access.CustomerUserAccess, + number=205, + message=gagr_customer_search_term_insight.CustomerSearchTermInsight, + ) + customer_user_access: gagr_customer_user_access.CustomerUserAccess = ( + proto.Field( + proto.MESSAGE, + number=146, + message=gagr_customer_user_access.CustomerUserAccess, + ) ) customer_user_access_invitation: gagr_customer_user_access_invitation.CustomerUserAccessInvitation = proto.Field( proto.MESSAGE, number=150, message=gagr_customer_user_access_invitation.CustomerUserAccessInvitation, ) - customizer_attribute: gagr_customizer_attribute.CustomizerAttribute = proto.Field( - proto.MESSAGE, - number=178, - message=gagr_customizer_attribute.CustomizerAttribute, - ) - detail_placement_view: gagr_detail_placement_view.DetailPlacementView = proto.Field( - proto.MESSAGE, - number=118, - message=gagr_detail_placement_view.DetailPlacementView, - ) - detailed_demographic: gagr_detailed_demographic.DetailedDemographic = proto.Field( - proto.MESSAGE, - number=166, - message=gagr_detailed_demographic.DetailedDemographic, - ) - display_keyword_view: gagr_display_keyword_view.DisplayKeywordView = proto.Field( - proto.MESSAGE, - number=47, - message=gagr_display_keyword_view.DisplayKeywordView, + customizer_attribute: gagr_customizer_attribute.CustomizerAttribute = ( + proto.Field( + proto.MESSAGE, + number=178, + message=gagr_customizer_attribute.CustomizerAttribute, + ) + ) + detail_placement_view: gagr_detail_placement_view.DetailPlacementView = ( + proto.Field( + proto.MESSAGE, + number=118, + message=gagr_detail_placement_view.DetailPlacementView, + ) + ) + detailed_demographic: gagr_detailed_demographic.DetailedDemographic = ( + proto.Field( + proto.MESSAGE, + number=166, + message=gagr_detailed_demographic.DetailedDemographic, + ) + ) + display_keyword_view: gagr_display_keyword_view.DisplayKeywordView = ( + proto.Field( + proto.MESSAGE, + number=47, + message=gagr_display_keyword_view.DisplayKeywordView, + ) ) distance_view: gagr_distance_view.DistanceView = proto.Field( - proto.MESSAGE, number=132, message=gagr_distance_view.DistanceView, + proto.MESSAGE, + number=132, + message=gagr_distance_view.DistanceView, ) dynamic_search_ads_search_term_view: gagr_dynamic_search_ads_search_term_view.DynamicSearchAdsSearchTermView = proto.Field( proto.MESSAGE, @@ -1589,19 +1758,27 @@ class GoogleAdsRow(proto.Message): number=128, message=gagr_expanded_landing_page_view.ExpandedLandingPageView, ) - extension_feed_item: gagr_extension_feed_item.ExtensionFeedItem = proto.Field( - proto.MESSAGE, - number=85, - message=gagr_extension_feed_item.ExtensionFeedItem, + extension_feed_item: gagr_extension_feed_item.ExtensionFeedItem = ( + proto.Field( + proto.MESSAGE, + number=85, + message=gagr_extension_feed_item.ExtensionFeedItem, + ) ) feed: gagr_feed.Feed = proto.Field( - proto.MESSAGE, number=46, message=gagr_feed.Feed, + proto.MESSAGE, + number=46, + message=gagr_feed.Feed, ) feed_item: gagr_feed_item.FeedItem = proto.Field( - proto.MESSAGE, number=50, message=gagr_feed_item.FeedItem, + proto.MESSAGE, + number=50, + message=gagr_feed_item.FeedItem, ) feed_item_set: gagr_feed_item_set.FeedItemSet = proto.Field( - proto.MESSAGE, number=149, message=gagr_feed_item_set.FeedItemSet, + proto.MESSAGE, + number=149, + message=gagr_feed_item_set.FeedItemSet, ) feed_item_set_link: gagr_feed_item_set_link.FeedItemSetLink = proto.Field( proto.MESSAGE, @@ -1609,44 +1786,64 @@ class GoogleAdsRow(proto.Message): message=gagr_feed_item_set_link.FeedItemSetLink, ) feed_item_target: gagr_feed_item_target.FeedItemTarget = proto.Field( - proto.MESSAGE, number=116, message=gagr_feed_item_target.FeedItemTarget, + proto.MESSAGE, + number=116, + message=gagr_feed_item_target.FeedItemTarget, ) feed_mapping: gagr_feed_mapping.FeedMapping = proto.Field( - proto.MESSAGE, number=58, message=gagr_feed_mapping.FeedMapping, - ) - feed_placeholder_view: gagr_feed_placeholder_view.FeedPlaceholderView = proto.Field( proto.MESSAGE, - number=97, - message=gagr_feed_placeholder_view.FeedPlaceholderView, + number=58, + message=gagr_feed_mapping.FeedMapping, ) - gender_view: gagr_gender_view.GenderView = proto.Field( - proto.MESSAGE, number=40, message=gagr_gender_view.GenderView, + feed_placeholder_view: gagr_feed_placeholder_view.FeedPlaceholderView = ( + proto.Field( + proto.MESSAGE, + number=97, + message=gagr_feed_placeholder_view.FeedPlaceholderView, + ) ) - geo_target_constant: gagr_geo_target_constant.GeoTargetConstant = proto.Field( + gender_view: gagr_gender_view.GenderView = proto.Field( proto.MESSAGE, - number=23, - message=gagr_geo_target_constant.GeoTargetConstant, + number=40, + message=gagr_gender_view.GenderView, ) - geographic_view: gagr_geographic_view.GeographicView = proto.Field( - proto.MESSAGE, number=125, message=gagr_geographic_view.GeographicView, + geo_target_constant: gagr_geo_target_constant.GeoTargetConstant = ( + proto.Field( + proto.MESSAGE, + number=23, + message=gagr_geo_target_constant.GeoTargetConstant, + ) ) - group_placement_view: gagr_group_placement_view.GroupPlacementView = proto.Field( + geographic_view: gagr_geographic_view.GeographicView = proto.Field( proto.MESSAGE, - number=119, - message=gagr_group_placement_view.GroupPlacementView, + number=125, + message=gagr_geographic_view.GeographicView, ) - hotel_group_view: gagr_hotel_group_view.HotelGroupView = proto.Field( - proto.MESSAGE, number=51, message=gagr_hotel_group_view.HotelGroupView, + group_placement_view: gagr_group_placement_view.GroupPlacementView = ( + proto.Field( + proto.MESSAGE, + number=119, + message=gagr_group_placement_view.GroupPlacementView, + ) ) - hotel_performance_view: gagr_hotel_performance_view.HotelPerformanceView = proto.Field( - proto.MESSAGE, - number=71, - message=gagr_hotel_performance_view.HotelPerformanceView, - ) - hotel_reconciliation: gagr_hotel_reconciliation.HotelReconciliation = proto.Field( + hotel_group_view: gagr_hotel_group_view.HotelGroupView = proto.Field( proto.MESSAGE, - number=188, - message=gagr_hotel_reconciliation.HotelReconciliation, + number=51, + message=gagr_hotel_group_view.HotelGroupView, + ) + hotel_performance_view: gagr_hotel_performance_view.HotelPerformanceView = ( + proto.Field( + proto.MESSAGE, + number=71, + message=gagr_hotel_performance_view.HotelPerformanceView, + ) + ) + hotel_reconciliation: gagr_hotel_reconciliation.HotelReconciliation = ( + proto.Field( + proto.MESSAGE, + number=188, + message=gagr_hotel_reconciliation.HotelReconciliation, + ) ) income_range_view: gagr_income_range_view.IncomeRangeView = proto.Field( proto.MESSAGE, @@ -1654,38 +1851,50 @@ class GoogleAdsRow(proto.Message): message=gagr_income_range_view.IncomeRangeView, ) keyword_view: gagr_keyword_view.KeywordView = proto.Field( - proto.MESSAGE, number=21, message=gagr_keyword_view.KeywordView, + proto.MESSAGE, + number=21, + message=gagr_keyword_view.KeywordView, ) keyword_plan: gagr_keyword_plan.KeywordPlan = proto.Field( - proto.MESSAGE, number=32, message=gagr_keyword_plan.KeywordPlan, - ) - keyword_plan_campaign: gagr_keyword_plan_campaign.KeywordPlanCampaign = proto.Field( proto.MESSAGE, - number=33, - message=gagr_keyword_plan_campaign.KeywordPlanCampaign, + number=32, + message=gagr_keyword_plan.KeywordPlan, + ) + keyword_plan_campaign: gagr_keyword_plan_campaign.KeywordPlanCampaign = ( + proto.Field( + proto.MESSAGE, + number=33, + message=gagr_keyword_plan_campaign.KeywordPlanCampaign, + ) ) keyword_plan_campaign_keyword: gagr_keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword = proto.Field( proto.MESSAGE, number=140, message=gagr_keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword, ) - keyword_plan_ad_group: gagr_keyword_plan_ad_group.KeywordPlanAdGroup = proto.Field( - proto.MESSAGE, - number=35, - message=gagr_keyword_plan_ad_group.KeywordPlanAdGroup, + keyword_plan_ad_group: gagr_keyword_plan_ad_group.KeywordPlanAdGroup = ( + proto.Field( + proto.MESSAGE, + number=35, + message=gagr_keyword_plan_ad_group.KeywordPlanAdGroup, + ) ) keyword_plan_ad_group_keyword: gagr_keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword = proto.Field( proto.MESSAGE, number=141, message=gagr_keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword, ) - keyword_theme_constant: gagr_keyword_theme_constant.KeywordThemeConstant = proto.Field( - proto.MESSAGE, - number=163, - message=gagr_keyword_theme_constant.KeywordThemeConstant, + keyword_theme_constant: gagr_keyword_theme_constant.KeywordThemeConstant = ( + proto.Field( + proto.MESSAGE, + number=163, + message=gagr_keyword_theme_constant.KeywordThemeConstant, + ) ) label: gagr_label.Label = proto.Field( - proto.MESSAGE, number=52, message=gagr_label.Label, + proto.MESSAGE, + number=52, + message=gagr_label.Label, ) landing_page_view: gagr_landing_page_view.LandingPageView = proto.Field( proto.MESSAGE, @@ -1698,30 +1907,40 @@ class GoogleAdsRow(proto.Message): message=gagr_language_constant.LanguageConstant, ) location_view: gagr_location_view.LocationView = proto.Field( - proto.MESSAGE, number=123, message=gagr_location_view.LocationView, - ) - managed_placement_view: gagr_managed_placement_view.ManagedPlacementView = proto.Field( proto.MESSAGE, - number=53, - message=gagr_managed_placement_view.ManagedPlacementView, + number=123, + message=gagr_location_view.LocationView, + ) + managed_placement_view: gagr_managed_placement_view.ManagedPlacementView = ( + proto.Field( + proto.MESSAGE, + number=53, + message=gagr_managed_placement_view.ManagedPlacementView, + ) ) media_file: gagr_media_file.MediaFile = proto.Field( - proto.MESSAGE, number=90, message=gagr_media_file.MediaFile, + proto.MESSAGE, + number=90, + message=gagr_media_file.MediaFile, ) mobile_app_category_constant: gagr_mobile_app_category_constant.MobileAppCategoryConstant = proto.Field( proto.MESSAGE, number=87, message=gagr_mobile_app_category_constant.MobileAppCategoryConstant, ) - mobile_device_constant: gagr_mobile_device_constant.MobileDeviceConstant = proto.Field( - proto.MESSAGE, - number=98, - message=gagr_mobile_device_constant.MobileDeviceConstant, + mobile_device_constant: gagr_mobile_device_constant.MobileDeviceConstant = ( + proto.Field( + proto.MESSAGE, + number=98, + message=gagr_mobile_device_constant.MobileDeviceConstant, + ) ) - offline_user_data_job: gagr_offline_user_data_job.OfflineUserDataJob = proto.Field( - proto.MESSAGE, - number=137, - message=gagr_offline_user_data_job.OfflineUserDataJob, + offline_user_data_job: gagr_offline_user_data_job.OfflineUserDataJob = ( + proto.Field( + proto.MESSAGE, + number=137, + message=gagr_offline_user_data_job.OfflineUserDataJob, + ) ) operating_system_version_constant: gagr_operating_system_version_constant.OperatingSystemVersionConstant = proto.Field( proto.MESSAGE, @@ -1733,18 +1952,24 @@ class GoogleAdsRow(proto.Message): number=129, message=gagr_paid_organic_search_term_view.PaidOrganicSearchTermView, ) - qualifying_question: gagr_qualifying_question.QualifyingQuestion = proto.Field( - proto.MESSAGE, - number=202, - message=gagr_qualifying_question.QualifyingQuestion, + qualifying_question: gagr_qualifying_question.QualifyingQuestion = ( + proto.Field( + proto.MESSAGE, + number=202, + message=gagr_qualifying_question.QualifyingQuestion, + ) ) - parental_status_view: gagr_parental_status_view.ParentalStatusView = proto.Field( - proto.MESSAGE, - number=45, - message=gagr_parental_status_view.ParentalStatusView, + parental_status_view: gagr_parental_status_view.ParentalStatusView = ( + proto.Field( + proto.MESSAGE, + number=45, + message=gagr_parental_status_view.ParentalStatusView, + ) ) per_store_view: gagr_per_store_view.PerStoreView = proto.Field( - proto.MESSAGE, number=198, message=gagr_per_store_view.PerStoreView, + proto.MESSAGE, + number=198, + message=gagr_per_store_view.PerStoreView, ) product_bidding_category_constant: gagr_product_bidding_category_constant.ProductBiddingCategoryConstant = proto.Field( proto.MESSAGE, @@ -1757,24 +1982,36 @@ class GoogleAdsRow(proto.Message): message=gagr_product_group_view.ProductGroupView, ) product_link: gagr_product_link.ProductLink = proto.Field( - proto.MESSAGE, number=194, message=gagr_product_link.ProductLink, + proto.MESSAGE, + number=194, + message=gagr_product_link.ProductLink, ) recommendation: gagr_recommendation.Recommendation = proto.Field( - proto.MESSAGE, number=22, message=gagr_recommendation.Recommendation, + proto.MESSAGE, + number=22, + message=gagr_recommendation.Recommendation, ) search_term_view: gagr_search_term_view.SearchTermView = proto.Field( - proto.MESSAGE, number=68, message=gagr_search_term_view.SearchTermView, + proto.MESSAGE, + number=68, + message=gagr_search_term_view.SearchTermView, ) shared_criterion: gagr_shared_criterion.SharedCriterion = proto.Field( - proto.MESSAGE, number=29, message=gagr_shared_criterion.SharedCriterion, + proto.MESSAGE, + number=29, + message=gagr_shared_criterion.SharedCriterion, ) shared_set: gagr_shared_set.SharedSet = proto.Field( - proto.MESSAGE, number=27, message=gagr_shared_set.SharedSet, - ) - smart_campaign_setting: gagr_smart_campaign_setting.SmartCampaignSetting = proto.Field( proto.MESSAGE, - number=167, - message=gagr_smart_campaign_setting.SmartCampaignSetting, + number=27, + message=gagr_shared_set.SharedSet, + ) + smart_campaign_setting: gagr_smart_campaign_setting.SmartCampaignSetting = ( + proto.Field( + proto.MESSAGE, + number=167, + message=gagr_smart_campaign_setting.SmartCampaignSetting, + ) ) shopping_performance_view: gagr_shopping_performance_view.ShoppingPerformanceView = proto.Field( proto.MESSAGE, @@ -1792,7 +2029,9 @@ class GoogleAdsRow(proto.Message): message=gagr_third_party_app_analytics_link.ThirdPartyAppAnalyticsLink, ) topic_view: gagr_topic_view.TopicView = proto.Field( - proto.MESSAGE, number=44, message=gagr_topic_view.TopicView, + proto.MESSAGE, + number=44, + message=gagr_topic_view.TopicView, ) travel_activity_group_view: gagr_travel_activity_group_view.TravelActivityGroupView = proto.Field( proto.MESSAGE, @@ -1805,19 +2044,29 @@ class GoogleAdsRow(proto.Message): message=gagr_travel_activity_performance_view.TravelActivityPerformanceView, ) experiment: gagr_experiment.Experiment = proto.Field( - proto.MESSAGE, number=133, message=gagr_experiment.Experiment, + proto.MESSAGE, + number=133, + message=gagr_experiment.Experiment, ) experiment_arm: gagr_experiment_arm.ExperimentArm = proto.Field( - proto.MESSAGE, number=183, message=gagr_experiment_arm.ExperimentArm, + proto.MESSAGE, + number=183, + message=gagr_experiment_arm.ExperimentArm, ) user_interest: gagr_user_interest.UserInterest = proto.Field( - proto.MESSAGE, number=59, message=gagr_user_interest.UserInterest, + proto.MESSAGE, + number=59, + message=gagr_user_interest.UserInterest, ) life_event: gagr_life_event.LifeEvent = proto.Field( - proto.MESSAGE, number=161, message=gagr_life_event.LifeEvent, + proto.MESSAGE, + number=161, + message=gagr_life_event.LifeEvent, ) user_list: gagr_user_list.UserList = proto.Field( - proto.MESSAGE, number=38, message=gagr_user_list.UserList, + proto.MESSAGE, + number=38, + message=gagr_user_list.UserList, ) user_location_view: gagr_user_location_view.UserLocationView = proto.Field( proto.MESSAGE, @@ -1830,13 +2079,19 @@ class GoogleAdsRow(proto.Message): message=gagr_remarketing_action.RemarketingAction, ) topic_constant: gagr_topic_constant.TopicConstant = proto.Field( - proto.MESSAGE, number=31, message=gagr_topic_constant.TopicConstant, + proto.MESSAGE, + number=31, + message=gagr_topic_constant.TopicConstant, ) video: gagr_video.Video = proto.Field( - proto.MESSAGE, number=39, message=gagr_video.Video, + proto.MESSAGE, + number=39, + message=gagr_video.Video, ) webpage_view: gagr_webpage_view.WebpageView = proto.Field( - proto.MESSAGE, number=162, message=gagr_webpage_view.WebpageView, + proto.MESSAGE, + number=162, + message=gagr_webpage_view.WebpageView, ) lead_form_submission_data: gagr_lead_form_submission_data.LeadFormSubmissionData = proto.Field( proto.MESSAGE, @@ -1844,10 +2099,14 @@ class GoogleAdsRow(proto.Message): message=gagr_lead_form_submission_data.LeadFormSubmissionData, ) metrics: gagc_metrics.Metrics = proto.Field( - proto.MESSAGE, number=4, message=gagc_metrics.Metrics, + proto.MESSAGE, + number=4, + message=gagc_metrics.Metrics, ) segments: gagc_segments.Segments = proto.Field( - proto.MESSAGE, number=102, message=gagc_segments.Segments, + proto.MESSAGE, + number=102, + message=gagc_segments.Segments, ) @@ -1881,16 +2140,21 @@ class MutateGoogleAdsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) mutate_operations: MutableSequence["MutateOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateOperation", + proto.MESSAGE, + number=2, + message="MutateOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -1915,12 +2179,16 @@ class MutateGoogleAdsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) mutate_operation_responses: MutableSequence[ "MutateOperationResponse" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="MutateOperationResponse", + proto.MESSAGE, + number=1, + message="MutateOperationResponse", ) @@ -2257,11 +2525,13 @@ class MutateOperation(proto.Message): oneof="operation", message=ad_group_ad_service.AdGroupAdOperation, ) - ad_group_asset_operation: ad_group_asset_service.AdGroupAssetOperation = proto.Field( - proto.MESSAGE, - number=56, - oneof="operation", - message=ad_group_asset_service.AdGroupAssetOperation, + ad_group_asset_operation: ad_group_asset_service.AdGroupAssetOperation = ( + proto.Field( + proto.MESSAGE, + number=56, + oneof="operation", + message=ad_group_asset_service.AdGroupAssetOperation, + ) ) ad_group_bid_modifier_operation: ad_group_bid_modifier_service.AdGroupBidModifierOperation = proto.Field( proto.MESSAGE, @@ -2299,17 +2569,21 @@ class MutateOperation(proto.Message): oneof="operation", message=ad_group_extension_setting_service.AdGroupExtensionSettingOperation, ) - ad_group_feed_operation: ad_group_feed_service.AdGroupFeedOperation = proto.Field( - proto.MESSAGE, - number=20, - oneof="operation", - message=ad_group_feed_service.AdGroupFeedOperation, - ) - ad_group_label_operation: ad_group_label_service.AdGroupLabelOperation = proto.Field( - proto.MESSAGE, - number=21, - oneof="operation", - message=ad_group_label_service.AdGroupLabelOperation, + ad_group_feed_operation: ad_group_feed_service.AdGroupFeedOperation = ( + proto.Field( + proto.MESSAGE, + number=20, + oneof="operation", + message=ad_group_feed_service.AdGroupFeedOperation, + ) + ) + ad_group_label_operation: ad_group_label_service.AdGroupLabelOperation = ( + proto.Field( + proto.MESSAGE, + number=21, + oneof="operation", + message=ad_group_label_service.AdGroupLabelOperation, + ) ) ad_group_operation: ad_group_service.AdGroupOperation = proto.Field( proto.MESSAGE, @@ -2323,11 +2597,13 @@ class MutateOperation(proto.Message): oneof="operation", message=ad_service.AdOperation, ) - ad_parameter_operation: ad_parameter_service.AdParameterOperation = proto.Field( - proto.MESSAGE, - number=22, - oneof="operation", - message=ad_parameter_service.AdParameterOperation, + ad_parameter_operation: ad_parameter_service.AdParameterOperation = ( + proto.Field( + proto.MESSAGE, + number=22, + oneof="operation", + message=ad_parameter_service.AdParameterOperation, + ) ) asset_operation: asset_service.AssetOperation = proto.Field( proto.MESSAGE, @@ -2353,11 +2629,13 @@ class MutateOperation(proto.Message): oneof="operation", message=asset_group_signal_service.AssetGroupSignalOperation, ) - asset_group_operation: asset_group_service.AssetGroupOperation = proto.Field( - proto.MESSAGE, - number=62, - oneof="operation", - message=asset_group_service.AssetGroupOperation, + asset_group_operation: asset_group_service.AssetGroupOperation = ( + proto.Field( + proto.MESSAGE, + number=62, + oneof="operation", + message=asset_group_service.AssetGroupOperation, + ) ) asset_set_asset_operation: asset_set_asset_service.AssetSetAssetOperation = proto.Field( proto.MESSAGE, @@ -2395,11 +2673,13 @@ class MutateOperation(proto.Message): oneof="operation", message=bidding_strategy_service.BiddingStrategyOperation, ) - campaign_asset_operation: campaign_asset_service.CampaignAssetOperation = proto.Field( - proto.MESSAGE, - number=52, - oneof="operation", - message=campaign_asset_service.CampaignAssetOperation, + campaign_asset_operation: campaign_asset_service.CampaignAssetOperation = ( + proto.Field( + proto.MESSAGE, + number=52, + oneof="operation", + message=campaign_asset_service.CampaignAssetOperation, + ) ) campaign_asset_set_operation: campaign_asset_set_service.CampaignAssetSetOperation = proto.Field( proto.MESSAGE, @@ -2437,11 +2717,13 @@ class MutateOperation(proto.Message): oneof="operation", message=campaign_customizer_service.CampaignCustomizerOperation, ) - campaign_draft_operation: campaign_draft_service.CampaignDraftOperation = proto.Field( - proto.MESSAGE, - number=24, - oneof="operation", - message=campaign_draft_service.CampaignDraftOperation, + campaign_draft_operation: campaign_draft_service.CampaignDraftOperation = ( + proto.Field( + proto.MESSAGE, + number=24, + oneof="operation", + message=campaign_draft_service.CampaignDraftOperation, + ) ) campaign_extension_setting_operation: campaign_extension_setting_service.CampaignExtensionSettingOperation = proto.Field( proto.MESSAGE, @@ -2449,23 +2731,29 @@ class MutateOperation(proto.Message): oneof="operation", message=campaign_extension_setting_service.CampaignExtensionSettingOperation, ) - campaign_feed_operation: campaign_feed_service.CampaignFeedOperation = proto.Field( - proto.MESSAGE, - number=27, - oneof="operation", - message=campaign_feed_service.CampaignFeedOperation, - ) - campaign_group_operation: campaign_group_service.CampaignGroupOperation = proto.Field( - proto.MESSAGE, - number=9, - oneof="operation", - message=campaign_group_service.CampaignGroupOperation, - ) - campaign_label_operation: campaign_label_service.CampaignLabelOperation = proto.Field( - proto.MESSAGE, - number=28, - oneof="operation", - message=campaign_label_service.CampaignLabelOperation, + campaign_feed_operation: campaign_feed_service.CampaignFeedOperation = ( + proto.Field( + proto.MESSAGE, + number=27, + oneof="operation", + message=campaign_feed_service.CampaignFeedOperation, + ) + ) + campaign_group_operation: campaign_group_service.CampaignGroupOperation = ( + proto.Field( + proto.MESSAGE, + number=9, + oneof="operation", + message=campaign_group_service.CampaignGroupOperation, + ) + ) + campaign_label_operation: campaign_label_service.CampaignLabelOperation = ( + proto.Field( + proto.MESSAGE, + number=28, + oneof="operation", + message=campaign_label_service.CampaignLabelOperation, + ) ) campaign_operation: campaign_service.CampaignOperation = proto.Field( proto.MESSAGE, @@ -2515,11 +2803,13 @@ class MutateOperation(proto.Message): oneof="operation", message=custom_conversion_goal_service.CustomConversionGoalOperation, ) - customer_asset_operation: customer_asset_service.CustomerAssetOperation = proto.Field( - proto.MESSAGE, - number=57, - oneof="operation", - message=customer_asset_service.CustomerAssetOperation, + customer_asset_operation: customer_asset_service.CustomerAssetOperation = ( + proto.Field( + proto.MESSAGE, + number=57, + oneof="operation", + message=customer_asset_service.CustomerAssetOperation, + ) ) customer_conversion_goal_operation: customer_conversion_goal_service.CustomerConversionGoalOperation = proto.Field( proto.MESSAGE, @@ -2539,17 +2829,21 @@ class MutateOperation(proto.Message): oneof="operation", message=customer_extension_setting_service.CustomerExtensionSettingOperation, ) - customer_feed_operation: customer_feed_service.CustomerFeedOperation = proto.Field( - proto.MESSAGE, - number=31, - oneof="operation", - message=customer_feed_service.CustomerFeedOperation, - ) - customer_label_operation: customer_label_service.CustomerLabelOperation = proto.Field( - proto.MESSAGE, - number=32, - oneof="operation", - message=customer_label_service.CustomerLabelOperation, + customer_feed_operation: customer_feed_service.CustomerFeedOperation = ( + proto.Field( + proto.MESSAGE, + number=31, + oneof="operation", + message=customer_feed_service.CustomerFeedOperation, + ) + ) + customer_label_operation: customer_label_service.CustomerLabelOperation = ( + proto.Field( + proto.MESSAGE, + number=32, + oneof="operation", + message=customer_label_service.CustomerLabelOperation, + ) ) customer_negative_criterion_operation: customer_negative_criterion_service.CustomerNegativeCriterionOperation = proto.Field( proto.MESSAGE, @@ -2575,11 +2869,13 @@ class MutateOperation(proto.Message): oneof="operation", message=experiment_service.ExperimentOperation, ) - experiment_arm_operation: experiment_arm_service.ExperimentArmOperation = proto.Field( - proto.MESSAGE, - number=83, - oneof="operation", - message=experiment_arm_service.ExperimentArmOperation, + experiment_arm_operation: experiment_arm_service.ExperimentArmOperation = ( + proto.Field( + proto.MESSAGE, + number=83, + oneof="operation", + message=experiment_arm_service.ExperimentArmOperation, + ) ) extension_feed_item_operation: extension_feed_item_service.ExtensionFeedItemOperation = proto.Field( proto.MESSAGE, @@ -2593,11 +2889,13 @@ class MutateOperation(proto.Message): oneof="operation", message=feed_item_service.FeedItemOperation, ) - feed_item_set_operation: feed_item_set_service.FeedItemSetOperation = proto.Field( - proto.MESSAGE, - number=53, - oneof="operation", - message=feed_item_set_service.FeedItemSetOperation, + feed_item_set_operation: feed_item_set_service.FeedItemSetOperation = ( + proto.Field( + proto.MESSAGE, + number=53, + oneof="operation", + message=feed_item_set_service.FeedItemSetOperation, + ) ) feed_item_set_link_operation: feed_item_set_link_service.FeedItemSetLinkOperation = proto.Field( proto.MESSAGE, @@ -2611,11 +2909,13 @@ class MutateOperation(proto.Message): oneof="operation", message=feed_item_target_service.FeedItemTargetOperation, ) - feed_mapping_operation: feed_mapping_service.FeedMappingOperation = proto.Field( - proto.MESSAGE, - number=39, - oneof="operation", - message=feed_mapping_service.FeedMappingOperation, + feed_mapping_operation: feed_mapping_service.FeedMappingOperation = ( + proto.Field( + proto.MESSAGE, + number=39, + oneof="operation", + message=feed_mapping_service.FeedMappingOperation, + ) ) feed_operation: feed_service.FeedOperation = proto.Field( proto.MESSAGE, @@ -2647,11 +2947,13 @@ class MutateOperation(proto.Message): oneof="operation", message=keyword_plan_campaign_service.KeywordPlanCampaignOperation, ) - keyword_plan_operation: keyword_plan_service.KeywordPlanOperation = proto.Field( - proto.MESSAGE, - number=48, - oneof="operation", - message=keyword_plan_service.KeywordPlanOperation, + keyword_plan_operation: keyword_plan_service.KeywordPlanOperation = ( + proto.Field( + proto.MESSAGE, + number=48, + oneof="operation", + message=keyword_plan_service.KeywordPlanOperation, + ) ) label_operation: label_service.LabelOperation = proto.Field( proto.MESSAGE, @@ -3050,11 +3352,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=ad_group_ad_service.MutateAdGroupAdResult, ) - ad_group_asset_result: ad_group_asset_service.MutateAdGroupAssetResult = proto.Field( - proto.MESSAGE, - number=56, - oneof="response", - message=ad_group_asset_service.MutateAdGroupAssetResult, + ad_group_asset_result: ad_group_asset_service.MutateAdGroupAssetResult = ( + proto.Field( + proto.MESSAGE, + number=56, + oneof="response", + message=ad_group_asset_service.MutateAdGroupAssetResult, + ) ) ad_group_bid_modifier_result: ad_group_bid_modifier_service.MutateAdGroupBidModifierResult = proto.Field( proto.MESSAGE, @@ -3092,17 +3396,21 @@ class MutateOperationResponse(proto.Message): oneof="response", message=ad_group_extension_setting_service.MutateAdGroupExtensionSettingResult, ) - ad_group_feed_result: ad_group_feed_service.MutateAdGroupFeedResult = proto.Field( - proto.MESSAGE, - number=20, - oneof="response", - message=ad_group_feed_service.MutateAdGroupFeedResult, - ) - ad_group_label_result: ad_group_label_service.MutateAdGroupLabelResult = proto.Field( - proto.MESSAGE, - number=21, - oneof="response", - message=ad_group_label_service.MutateAdGroupLabelResult, + ad_group_feed_result: ad_group_feed_service.MutateAdGroupFeedResult = ( + proto.Field( + proto.MESSAGE, + number=20, + oneof="response", + message=ad_group_feed_service.MutateAdGroupFeedResult, + ) + ) + ad_group_label_result: ad_group_label_service.MutateAdGroupLabelResult = ( + proto.Field( + proto.MESSAGE, + number=21, + oneof="response", + message=ad_group_label_service.MutateAdGroupLabelResult, + ) ) ad_group_result: ad_group_service.MutateAdGroupResult = proto.Field( proto.MESSAGE, @@ -3110,11 +3418,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=ad_group_service.MutateAdGroupResult, ) - ad_parameter_result: ad_parameter_service.MutateAdParameterResult = proto.Field( - proto.MESSAGE, - number=22, - oneof="response", - message=ad_parameter_service.MutateAdParameterResult, + ad_parameter_result: ad_parameter_service.MutateAdParameterResult = ( + proto.Field( + proto.MESSAGE, + number=22, + oneof="response", + message=ad_parameter_service.MutateAdParameterResult, + ) ) ad_result: ad_service.MutateAdResult = proto.Field( proto.MESSAGE, @@ -3146,11 +3456,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=asset_group_signal_service.MutateAssetGroupSignalResult, ) - asset_group_result: asset_group_service.MutateAssetGroupResult = proto.Field( - proto.MESSAGE, - number=62, - oneof="response", - message=asset_group_service.MutateAssetGroupResult, + asset_group_result: asset_group_service.MutateAssetGroupResult = ( + proto.Field( + proto.MESSAGE, + number=62, + oneof="response", + message=asset_group_service.MutateAssetGroupResult, + ) ) asset_set_asset_result: asset_set_asset_service.MutateAssetSetAssetResult = proto.Field( proto.MESSAGE, @@ -3188,11 +3500,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=bidding_strategy_service.MutateBiddingStrategyResult, ) - campaign_asset_result: campaign_asset_service.MutateCampaignAssetResult = proto.Field( - proto.MESSAGE, - number=52, - oneof="response", - message=campaign_asset_service.MutateCampaignAssetResult, + campaign_asset_result: campaign_asset_service.MutateCampaignAssetResult = ( + proto.Field( + proto.MESSAGE, + number=52, + oneof="response", + message=campaign_asset_service.MutateCampaignAssetResult, + ) ) campaign_asset_set_result: campaign_asset_set_service.MutateCampaignAssetSetResult = proto.Field( proto.MESSAGE, @@ -3230,11 +3544,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=campaign_customizer_service.MutateCampaignCustomizerResult, ) - campaign_draft_result: campaign_draft_service.MutateCampaignDraftResult = proto.Field( - proto.MESSAGE, - number=24, - oneof="response", - message=campaign_draft_service.MutateCampaignDraftResult, + campaign_draft_result: campaign_draft_service.MutateCampaignDraftResult = ( + proto.Field( + proto.MESSAGE, + number=24, + oneof="response", + message=campaign_draft_service.MutateCampaignDraftResult, + ) ) campaign_extension_setting_result: campaign_extension_setting_service.MutateCampaignExtensionSettingResult = proto.Field( proto.MESSAGE, @@ -3242,23 +3558,29 @@ class MutateOperationResponse(proto.Message): oneof="response", message=campaign_extension_setting_service.MutateCampaignExtensionSettingResult, ) - campaign_feed_result: campaign_feed_service.MutateCampaignFeedResult = proto.Field( - proto.MESSAGE, - number=27, - oneof="response", - message=campaign_feed_service.MutateCampaignFeedResult, - ) - campaign_group_result: campaign_group_service.MutateCampaignGroupResult = proto.Field( - proto.MESSAGE, - number=9, - oneof="response", - message=campaign_group_service.MutateCampaignGroupResult, - ) - campaign_label_result: campaign_label_service.MutateCampaignLabelResult = proto.Field( - proto.MESSAGE, - number=28, - oneof="response", - message=campaign_label_service.MutateCampaignLabelResult, + campaign_feed_result: campaign_feed_service.MutateCampaignFeedResult = ( + proto.Field( + proto.MESSAGE, + number=27, + oneof="response", + message=campaign_feed_service.MutateCampaignFeedResult, + ) + ) + campaign_group_result: campaign_group_service.MutateCampaignGroupResult = ( + proto.Field( + proto.MESSAGE, + number=9, + oneof="response", + message=campaign_group_service.MutateCampaignGroupResult, + ) + ) + campaign_label_result: campaign_label_service.MutateCampaignLabelResult = ( + proto.Field( + proto.MESSAGE, + number=28, + oneof="response", + message=campaign_label_service.MutateCampaignLabelResult, + ) ) campaign_result: campaign_service.MutateCampaignResult = proto.Field( proto.MESSAGE, @@ -3308,11 +3630,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=custom_conversion_goal_service.MutateCustomConversionGoalResult, ) - customer_asset_result: customer_asset_service.MutateCustomerAssetResult = proto.Field( - proto.MESSAGE, - number=57, - oneof="response", - message=customer_asset_service.MutateCustomerAssetResult, + customer_asset_result: customer_asset_service.MutateCustomerAssetResult = ( + proto.Field( + proto.MESSAGE, + number=57, + oneof="response", + message=customer_asset_service.MutateCustomerAssetResult, + ) ) customer_conversion_goal_result: customer_conversion_goal_service.MutateCustomerConversionGoalResult = proto.Field( proto.MESSAGE, @@ -3332,17 +3656,21 @@ class MutateOperationResponse(proto.Message): oneof="response", message=customer_extension_setting_service.MutateCustomerExtensionSettingResult, ) - customer_feed_result: customer_feed_service.MutateCustomerFeedResult = proto.Field( - proto.MESSAGE, - number=31, - oneof="response", - message=customer_feed_service.MutateCustomerFeedResult, - ) - customer_label_result: customer_label_service.MutateCustomerLabelResult = proto.Field( - proto.MESSAGE, - number=32, - oneof="response", - message=customer_label_service.MutateCustomerLabelResult, + customer_feed_result: customer_feed_service.MutateCustomerFeedResult = ( + proto.Field( + proto.MESSAGE, + number=31, + oneof="response", + message=customer_feed_service.MutateCustomerFeedResult, + ) + ) + customer_label_result: customer_label_service.MutateCustomerLabelResult = ( + proto.Field( + proto.MESSAGE, + number=32, + oneof="response", + message=customer_label_service.MutateCustomerLabelResult, + ) ) customer_negative_criterion_result: customer_negative_criterion_service.MutateCustomerNegativeCriteriaResult = proto.Field( proto.MESSAGE, @@ -3368,11 +3696,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=experiment_service.MutateExperimentResult, ) - experiment_arm_result: experiment_arm_service.MutateExperimentArmResult = proto.Field( - proto.MESSAGE, - number=82, - oneof="response", - message=experiment_arm_service.MutateExperimentArmResult, + experiment_arm_result: experiment_arm_service.MutateExperimentArmResult = ( + proto.Field( + proto.MESSAGE, + number=82, + oneof="response", + message=experiment_arm_service.MutateExperimentArmResult, + ) ) extension_feed_item_result: extension_feed_item_service.MutateExtensionFeedItemResult = proto.Field( proto.MESSAGE, @@ -3386,11 +3716,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=feed_item_service.MutateFeedItemResult, ) - feed_item_set_result: feed_item_set_service.MutateFeedItemSetResult = proto.Field( - proto.MESSAGE, - number=53, - oneof="response", - message=feed_item_set_service.MutateFeedItemSetResult, + feed_item_set_result: feed_item_set_service.MutateFeedItemSetResult = ( + proto.Field( + proto.MESSAGE, + number=53, + oneof="response", + message=feed_item_set_service.MutateFeedItemSetResult, + ) ) feed_item_set_link_result: feed_item_set_link_service.MutateFeedItemSetLinkResult = proto.Field( proto.MESSAGE, @@ -3404,11 +3736,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=feed_item_target_service.MutateFeedItemTargetResult, ) - feed_mapping_result: feed_mapping_service.MutateFeedMappingResult = proto.Field( - proto.MESSAGE, - number=39, - oneof="response", - message=feed_mapping_service.MutateFeedMappingResult, + feed_mapping_result: feed_mapping_service.MutateFeedMappingResult = ( + proto.Field( + proto.MESSAGE, + number=39, + oneof="response", + message=feed_mapping_service.MutateFeedMappingResult, + ) ) feed_result: feed_service.MutateFeedResult = proto.Field( proto.MESSAGE, @@ -3440,11 +3774,13 @@ class MutateOperationResponse(proto.Message): oneof="response", message=keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordResult, ) - keyword_plan_result: keyword_plan_service.MutateKeywordPlansResult = proto.Field( - proto.MESSAGE, - number=48, - oneof="response", - message=keyword_plan_service.MutateKeywordPlansResult, + keyword_plan_result: keyword_plan_service.MutateKeywordPlansResult = ( + proto.Field( + proto.MESSAGE, + number=48, + oneof="response", + message=keyword_plan_service.MutateKeywordPlansResult, + ) ) label_result: label_service.MutateLabelResult = proto.Field( proto.MESSAGE, diff --git a/google/ads/googleads/v14/services/types/invoice_service.py b/google/ads/googleads/v14/services/types/invoice_service.py index 0320a35cd..29a07c2f9 100644 --- a/google/ads/googleads/v14/services/types/invoice_service.py +++ b/google/ads/googleads/v14/services/types/invoice_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -26,7 +26,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.services", marshal="google.ads.googleads.v14", - manifest={"ListInvoicesRequest", "ListInvoicesResponse",}, + manifest={ + "ListInvoicesRequest", + "ListInvoicesResponse", + }, ) @@ -53,16 +56,21 @@ class ListInvoicesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) billing_setup: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) issue_year: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) issue_month: month_of_year.MonthOfYearEnum.MonthOfYear = proto.Field( - proto.ENUM, number=4, enum=month_of_year.MonthOfYearEnum.MonthOfYear, + proto.ENUM, + number=4, + enum=month_of_year.MonthOfYearEnum.MonthOfYear, ) @@ -77,7 +85,9 @@ class ListInvoicesResponse(proto.Message): """ invoices: MutableSequence[invoice.Invoice] = proto.RepeatedField( - proto.MESSAGE, number=1, message=invoice.Invoice, + proto.MESSAGE, + number=1, + message=invoice.Invoice, ) diff --git a/google/ads/googleads/v14/services/types/keyword_plan_ad_group_keyword_service.py b/google/ads/googleads/v14/services/types/keyword_plan_ad_group_keyword_service.py index b9d9ab6b7..bb51fe424 100644 --- a/google/ads/googleads/v14/services/types/keyword_plan_ad_group_keyword_service.py +++ b/google/ads/googleads/v14/services/types/keyword_plan_ad_group_keyword_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,18 +62,23 @@ class MutateKeywordPlanAdGroupKeywordsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "KeywordPlanAdGroupKeywordOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="KeywordPlanAdGroupKeywordOperation", + proto.MESSAGE, + number=2, + message="KeywordPlanAdGroupKeywordOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -94,14 +99,14 @@ class KeywordPlanAdGroupKeywordOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.KeywordPlanAdGroupKeyword): Create operation: No resource name is - expected for the new Keyword Plan ad group - keyword. + expected for the new Keyword Plan + ad group keyword. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.KeywordPlanAdGroupKeyword): Update operation: The Keyword Plan ad group - keyword is expected to have a valid resource - name. + keyword is expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -114,22 +119,30 @@ class KeywordPlanAdGroupKeywordOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, - ) - create: keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword = proto.Field( proto.MESSAGE, - number=1, - oneof="operation", - message=keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword, + number=4, + message=field_mask_pb2.FieldMask, ) - update: keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword = proto.Field( - proto.MESSAGE, - number=2, - oneof="operation", - message=keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword, + create: keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword, + ) + ) + update: keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="operation", + message=keyword_plan_ad_group_keyword.KeywordPlanAdGroupKeyword, + ) ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -147,7 +160,9 @@ class MutateKeywordPlanAdGroupKeywordsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateKeywordPlanAdGroupKeywordResult" @@ -166,7 +181,8 @@ class MutateKeywordPlanAdGroupKeywordResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/keyword_plan_ad_group_service.py b/google/ads/googleads/v14/services/types/keyword_plan_ad_group_service.py index 58c4f1796..9acf6f080 100644 --- a/google/ads/googleads/v14/services/types/keyword_plan_ad_group_service.py +++ b/google/ads/googleads/v14/services/types/keyword_plan_ad_group_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,18 +59,23 @@ class MutateKeywordPlanAdGroupsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "KeywordPlanAdGroupOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="KeywordPlanAdGroupOperation", + proto.MESSAGE, + number=2, + message="KeywordPlanAdGroupOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -91,12 +96,14 @@ class KeywordPlanAdGroupOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.KeywordPlanAdGroup): Create operation: No resource name is - expected for the new Keyword Plan ad group. + expected for the new Keyword Plan + ad group. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.KeywordPlanAdGroup): Update operation: The Keyword Plan ad group - is expected to have a valid resource name. + is expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -109,7 +116,9 @@ class KeywordPlanAdGroupOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: keyword_plan_ad_group.KeywordPlanAdGroup = proto.Field( proto.MESSAGE, @@ -124,7 +133,9 @@ class KeywordPlanAdGroupOperation(proto.Message): message=keyword_plan_ad_group.KeywordPlanAdGroup, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -144,12 +155,16 @@ class MutateKeywordPlanAdGroupsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateKeywordPlanAdGroupResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateKeywordPlanAdGroupResult", + proto.MESSAGE, + number=2, + message="MutateKeywordPlanAdGroupResult", ) @@ -161,7 +176,8 @@ class MutateKeywordPlanAdGroupResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/keyword_plan_campaign_keyword_service.py b/google/ads/googleads/v14/services/types/keyword_plan_campaign_keyword_service.py index d906742f3..abbd20c1b 100644 --- a/google/ads/googleads/v14/services/types/keyword_plan_campaign_keyword_service.py +++ b/google/ads/googleads/v14/services/types/keyword_plan_campaign_keyword_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,18 +61,23 @@ class MutateKeywordPlanCampaignKeywordsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "KeywordPlanCampaignKeywordOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="KeywordPlanCampaignKeywordOperation", + proto.MESSAGE, + number=2, + message="KeywordPlanCampaignKeywordOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -93,13 +98,14 @@ class KeywordPlanCampaignKeywordOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.KeywordPlanCampaignKeyword): Create operation: No resource name is - expected for the new Keyword Plan campaign - keyword. + expected for the new Keyword Plan + campaign keyword. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.KeywordPlanCampaignKeyword): Update operation: The Keyword Plan campaign - keyword expected to have a valid resource name. + keyword expected to have a + valid resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -112,22 +118,30 @@ class KeywordPlanCampaignKeywordOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, - ) - create: keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword = proto.Field( proto.MESSAGE, - number=1, - oneof="operation", - message=keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword, + number=4, + message=field_mask_pb2.FieldMask, ) - update: keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword = proto.Field( - proto.MESSAGE, - number=2, - oneof="operation", - message=keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword, + create: keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword = ( + proto.Field( + proto.MESSAGE, + number=1, + oneof="operation", + message=keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword, + ) + ) + update: keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="operation", + message=keyword_plan_campaign_keyword.KeywordPlanCampaignKeyword, + ) ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -145,7 +159,9 @@ class MutateKeywordPlanCampaignKeywordsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateKeywordPlanCampaignKeywordResult" @@ -164,7 +180,8 @@ class MutateKeywordPlanCampaignKeywordResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/keyword_plan_campaign_service.py b/google/ads/googleads/v14/services/types/keyword_plan_campaign_service.py index 0f8237ac5..6436c0ab9 100644 --- a/google/ads/googleads/v14/services/types/keyword_plan_campaign_service.py +++ b/google/ads/googleads/v14/services/types/keyword_plan_campaign_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,18 +59,23 @@ class MutateKeywordPlanCampaignsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "KeywordPlanCampaignOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="KeywordPlanCampaignOperation", + proto.MESSAGE, + number=2, + message="KeywordPlanCampaignOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -91,12 +96,14 @@ class KeywordPlanCampaignOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.KeywordPlanCampaign): Create operation: No resource name is - expected for the new Keyword Plan campaign. + expected for the new Keyword Plan + campaign. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.KeywordPlanCampaign): Update operation: The Keyword Plan campaign - is expected to have a valid resource name. + is expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -109,7 +116,9 @@ class KeywordPlanCampaignOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: keyword_plan_campaign.KeywordPlanCampaign = proto.Field( proto.MESSAGE, @@ -124,7 +133,9 @@ class KeywordPlanCampaignOperation(proto.Message): message=keyword_plan_campaign.KeywordPlanCampaign, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -142,12 +153,16 @@ class MutateKeywordPlanCampaignsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateKeywordPlanCampaignResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateKeywordPlanCampaignResult", + proto.MESSAGE, + number=2, + message="MutateKeywordPlanCampaignResult", ) @@ -159,7 +174,8 @@ class MutateKeywordPlanCampaignResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/keyword_plan_idea_service.py b/google/ads/googleads/v14/services/types/keyword_plan_idea_service.py index 449e2f60f..c1c2694aa 100644 --- a/google/ads/googleads/v14/services/types/keyword_plan_idea_service.py +++ b/google/ads/googleads/v14/services/types/keyword_plan_idea_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -140,22 +140,29 @@ class GenerateKeywordIdeasRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) language: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) geo_target_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=15, + proto.STRING, + number=15, ) include_adult_keywords: bool = proto.Field( - proto.BOOL, number=10, + proto.BOOL, + number=10, ) page_token: str = proto.Field( - proto.STRING, number=12, + proto.STRING, + number=12, ) page_size: int = proto.Field( - proto.INT32, number=13, + proto.INT32, + number=13, ) keyword_plan_network: gage_keyword_plan_network.KeywordPlanNetworkEnum.KeywordPlanNetwork = proto.Field( proto.ENUM, @@ -169,27 +176,43 @@ class GenerateKeywordIdeasRequest(proto.Message): number=17, enum=keyword_plan_keyword_annotation.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation, ) - aggregate_metrics: keyword_plan_common.KeywordPlanAggregateMetrics = proto.Field( - proto.MESSAGE, - number=16, - message=keyword_plan_common.KeywordPlanAggregateMetrics, + aggregate_metrics: keyword_plan_common.KeywordPlanAggregateMetrics = ( + proto.Field( + proto.MESSAGE, + number=16, + message=keyword_plan_common.KeywordPlanAggregateMetrics, + ) ) - historical_metrics_options: keyword_plan_common.HistoricalMetricsOptions = proto.Field( - proto.MESSAGE, - number=18, - message=keyword_plan_common.HistoricalMetricsOptions, + historical_metrics_options: keyword_plan_common.HistoricalMetricsOptions = ( + proto.Field( + proto.MESSAGE, + number=18, + message=keyword_plan_common.HistoricalMetricsOptions, + ) ) keyword_and_url_seed: "KeywordAndUrlSeed" = proto.Field( - proto.MESSAGE, number=2, oneof="seed", message="KeywordAndUrlSeed", + proto.MESSAGE, + number=2, + oneof="seed", + message="KeywordAndUrlSeed", ) keyword_seed: "KeywordSeed" = proto.Field( - proto.MESSAGE, number=3, oneof="seed", message="KeywordSeed", + proto.MESSAGE, + number=3, + oneof="seed", + message="KeywordSeed", ) url_seed: "UrlSeed" = proto.Field( - proto.MESSAGE, number=5, oneof="seed", message="UrlSeed", + proto.MESSAGE, + number=5, + oneof="seed", + message="UrlSeed", ) site_seed: "SiteSeed" = proto.Field( - proto.MESSAGE, number=11, oneof="seed", message="SiteSeed", + proto.MESSAGE, + number=11, + oneof="seed", + message="SiteSeed", ) @@ -208,10 +231,13 @@ class KeywordAndUrlSeed(proto.Message): """ url: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) @@ -223,7 +249,8 @@ class KeywordSeed(proto.Message): """ keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -241,7 +268,9 @@ class SiteSeed(proto.Message): """ site: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -258,7 +287,9 @@ class UrlSeed(proto.Message): """ url: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -285,7 +316,9 @@ def raw_page(self): return self results: MutableSequence["GenerateKeywordIdeaResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="GenerateKeywordIdeaResult", + proto.MESSAGE, + number=1, + message="GenerateKeywordIdeaResult", ) aggregate_metric_results: keyword_plan_common.KeywordPlanAggregateMetricResults = proto.Field( proto.MESSAGE, @@ -293,10 +326,12 @@ def raw_page(self): message=keyword_plan_common.KeywordPlanAggregateMetricResults, ) next_page_token: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) total_size: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) @@ -329,18 +364,25 @@ class GenerateKeywordIdeaResult(proto.Message): """ text: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) - keyword_idea_metrics: keyword_plan_common.KeywordPlanHistoricalMetrics = proto.Field( - proto.MESSAGE, - number=3, - message=keyword_plan_common.KeywordPlanHistoricalMetrics, + keyword_idea_metrics: keyword_plan_common.KeywordPlanHistoricalMetrics = ( + proto.Field( + proto.MESSAGE, + number=3, + message=keyword_plan_common.KeywordPlanHistoricalMetrics, + ) ) keyword_annotations: keyword_plan_common.KeywordAnnotations = proto.Field( - proto.MESSAGE, number=6, message=keyword_plan_common.KeywordAnnotations, + proto.MESSAGE, + number=6, + message=keyword_plan_common.KeywordAnnotations, ) close_variants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=7, + proto.STRING, + number=7, ) @@ -387,34 +429,44 @@ class GenerateKeywordHistoricalMetricsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) language: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) include_adult_keywords: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) geo_target_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=6, + proto.STRING, + number=6, ) keyword_plan_network: gage_keyword_plan_network.KeywordPlanNetworkEnum.KeywordPlanNetwork = proto.Field( proto.ENUM, number=7, enum=gage_keyword_plan_network.KeywordPlanNetworkEnum.KeywordPlanNetwork, ) - aggregate_metrics: keyword_plan_common.KeywordPlanAggregateMetrics = proto.Field( - proto.MESSAGE, - number=8, - message=keyword_plan_common.KeywordPlanAggregateMetrics, + aggregate_metrics: keyword_plan_common.KeywordPlanAggregateMetrics = ( + proto.Field( + proto.MESSAGE, + number=8, + message=keyword_plan_common.KeywordPlanAggregateMetrics, + ) ) - historical_metrics_options: keyword_plan_common.HistoricalMetricsOptions = proto.Field( - proto.MESSAGE, - number=3, - message=keyword_plan_common.HistoricalMetricsOptions, + historical_metrics_options: keyword_plan_common.HistoricalMetricsOptions = ( + proto.Field( + proto.MESSAGE, + number=3, + message=keyword_plan_common.HistoricalMetricsOptions, + ) ) @@ -469,15 +521,20 @@ class GenerateKeywordHistoricalMetricsResult(proto.Message): """ text: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) close_variants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=3, + proto.STRING, + number=3, ) - keyword_metrics: keyword_plan_common.KeywordPlanHistoricalMetrics = proto.Field( - proto.MESSAGE, - number=2, - message=keyword_plan_common.KeywordPlanHistoricalMetrics, + keyword_metrics: keyword_plan_common.KeywordPlanHistoricalMetrics = ( + proto.Field( + proto.MESSAGE, + number=2, + message=keyword_plan_common.KeywordPlanHistoricalMetrics, + ) ) @@ -498,13 +555,16 @@ class GenerateAdGroupThemesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) keywords: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) ad_groups: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=3, + proto.STRING, + number=3, ) @@ -523,12 +583,16 @@ class GenerateAdGroupThemesResponse(proto.Message): ad_group_keyword_suggestions: MutableSequence[ "AdGroupKeywordSuggestion" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="AdGroupKeywordSuggestion", + proto.MESSAGE, + number=1, + message="AdGroupKeywordSuggestion", ) unusable_ad_groups: MutableSequence[ "UnusableAdGroup" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="UnusableAdGroup", + proto.MESSAGE, + number=2, + message="UnusableAdGroup", ) @@ -553,10 +617,12 @@ class AdGroupKeywordSuggestion(proto.Message): """ keyword_text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) suggested_keyword_text: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) suggested_match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = proto.Field( proto.ENUM, @@ -564,10 +630,12 @@ class AdGroupKeywordSuggestion(proto.Message): enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, ) suggested_ad_group: str = proto.Field( - proto.STRING, number=4, + proto.STRING, + number=4, ) suggested_campaign: str = proto.Field( - proto.STRING, number=5, + proto.STRING, + number=5, ) @@ -590,10 +658,12 @@ class UnusableAdGroup(proto.Message): """ ad_group: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -628,16 +698,23 @@ class GenerateKeywordForecastMetricsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) currency_code: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) forecast_period: dates.DateRange = proto.Field( - proto.MESSAGE, number=3, message=dates.DateRange, + proto.MESSAGE, + number=3, + message=dates.DateRange, ) campaign: "CampaignToForecast" = proto.Field( - proto.MESSAGE, number=4, message="CampaignToForecast", + proto.MESSAGE, + number=4, + message="CampaignToForecast", ) @@ -711,11 +788,13 @@ class CampaignBiddingStrategy(proto.Message): oneof="bidding_strategy", message="ManualCpcBiddingStrategy", ) - maximize_clicks_bidding_strategy: "MaximizeClicksBiddingStrategy" = proto.Field( - proto.MESSAGE, - number=2, - oneof="bidding_strategy", - message="MaximizeClicksBiddingStrategy", + maximize_clicks_bidding_strategy: "MaximizeClicksBiddingStrategy" = ( + proto.Field( + proto.MESSAGE, + number=2, + oneof="bidding_strategy", + message="MaximizeClicksBiddingStrategy", + ) ) maximize_conversions_bidding_strategy: "MaximizeConversionsBiddingStrategy" = proto.Field( proto.MESSAGE, @@ -725,12 +804,15 @@ class CampaignBiddingStrategy(proto.Message): ) language_constants: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=1, + proto.STRING, + number=1, ) geo_modifiers: MutableSequence[ "CriterionBidModifier" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="CriterionBidModifier", + proto.MESSAGE, + number=2, + message="CriterionBidModifier", ) keyword_plan_network: gage_keyword_plan_network.KeywordPlanNetworkEnum.KeywordPlanNetwork = proto.Field( proto.ENUM, @@ -740,16 +822,24 @@ class CampaignBiddingStrategy(proto.Message): negative_keywords: MutableSequence[ criteria.KeywordInfo ] = proto.RepeatedField( - proto.MESSAGE, number=4, message=criteria.KeywordInfo, + proto.MESSAGE, + number=4, + message=criteria.KeywordInfo, ) bidding_strategy: CampaignBiddingStrategy = proto.Field( - proto.MESSAGE, number=5, message=CampaignBiddingStrategy, + proto.MESSAGE, + number=5, + message=CampaignBiddingStrategy, ) conversion_rate: float = proto.Field( - proto.DOUBLE, number=6, optional=True, + proto.DOUBLE, + number=6, + optional=True, ) ad_groups: MutableSequence["ForecastAdGroup"] = proto.RepeatedField( - proto.MESSAGE, number=7, message="ForecastAdGroup", + proto.MESSAGE, + number=7, + message="ForecastAdGroup", ) @@ -776,15 +866,21 @@ class ForecastAdGroup(proto.Message): """ max_cpc_bid_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) biddable_keywords: MutableSequence["BiddableKeyword"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="BiddableKeyword", + proto.MESSAGE, + number=2, + message="BiddableKeyword", ) negative_keywords: MutableSequence[ criteria.KeywordInfo ] = proto.RepeatedField( - proto.MESSAGE, number=3, message=criteria.KeywordInfo, + proto.MESSAGE, + number=3, + message=criteria.KeywordInfo, ) @@ -808,10 +904,14 @@ class BiddableKeyword(proto.Message): """ keyword: criteria.KeywordInfo = proto.Field( - proto.MESSAGE, number=1, message=criteria.KeywordInfo, + proto.MESSAGE, + number=1, + message=criteria.KeywordInfo, ) max_cpc_bid_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -832,10 +932,13 @@ class CriterionBidModifier(proto.Message): """ geo_target_constant: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) bid_modifier: float = proto.Field( - proto.DOUBLE, number=2, optional=True, + proto.DOUBLE, + number=2, + optional=True, ) @@ -859,10 +962,13 @@ class ManualCpcBiddingStrategy(proto.Message): """ daily_budget_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) max_cpc_bid_micros: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) @@ -884,10 +990,13 @@ class MaximizeClicksBiddingStrategy(proto.Message): """ daily_target_spend_micros: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) max_cpc_bid_ceiling_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) @@ -901,7 +1010,8 @@ class MaximizeConversionsBiddingStrategy(proto.Message): """ daily_target_spend_micros: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) @@ -969,28 +1079,44 @@ class KeywordForecastMetrics(proto.Message): """ impressions: float = proto.Field( - proto.DOUBLE, number=1, optional=True, + proto.DOUBLE, + number=1, + optional=True, ) click_through_rate: float = proto.Field( - proto.DOUBLE, number=2, optional=True, + proto.DOUBLE, + number=2, + optional=True, ) average_cpc_micros: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) clicks: float = proto.Field( - proto.DOUBLE, number=4, optional=True, + proto.DOUBLE, + number=4, + optional=True, ) cost_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) conversions: float = proto.Field( - proto.DOUBLE, number=6, optional=True, + proto.DOUBLE, + number=6, + optional=True, ) conversion_rate: float = proto.Field( - proto.DOUBLE, number=7, optional=True, + proto.DOUBLE, + number=7, + optional=True, ) average_cpa_micros: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) diff --git a/google/ads/googleads/v14/services/types/keyword_plan_service.py b/google/ads/googleads/v14/services/types/keyword_plan_service.py index 0a71d69d2..3ac3aa4df 100644 --- a/google/ads/googleads/v14/services/types/keyword_plan_service.py +++ b/google/ads/googleads/v14/services/types/keyword_plan_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,16 +59,21 @@ class MutateKeywordPlansRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["KeywordPlanOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="KeywordPlanOperation", + proto.MESSAGE, + number=2, + message="KeywordPlanOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -94,7 +99,8 @@ class KeywordPlanOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.KeywordPlan): Update operation: The keyword plan is - expected to have a valid resource name. + expected to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -107,7 +113,9 @@ class KeywordPlanOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: keyword_plan.KeywordPlan = proto.Field( proto.MESSAGE, @@ -122,7 +130,9 @@ class KeywordPlanOperation(proto.Message): message=keyword_plan.KeywordPlan, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -140,10 +150,14 @@ class MutateKeywordPlansResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateKeywordPlansResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateKeywordPlansResult", + proto.MESSAGE, + number=2, + message="MutateKeywordPlansResult", ) @@ -155,7 +169,8 @@ class MutateKeywordPlansResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/keyword_theme_constant_service.py b/google/ads/googleads/v14/services/types/keyword_theme_constant_service.py index 97bb66334..ba531874b 100644 --- a/google/ads/googleads/v14/services/types/keyword_theme_constant_service.py +++ b/google/ads/googleads/v14/services/types/keyword_theme_constant_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,13 +52,16 @@ class SuggestKeywordThemeConstantsRequest(proto.Message): """ query_text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) country_code: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) language_code: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) diff --git a/google/ads/googleads/v14/services/types/label_service.py b/google/ads/googleads/v14/services/types/label_service.py index 54edc04e9..b81cc9b8a 100644 --- a/google/ads/googleads/v14/services/types/label_service.py +++ b/google/ads/googleads/v14/services/types/label_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,16 +66,21 @@ class MutateLabelsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["LabelOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="LabelOperation", + proto.MESSAGE, + number=2, + message="LabelOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -117,16 +122,26 @@ class LabelOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_label.Label = proto.Field( - proto.MESSAGE, number=1, oneof="operation", message=gagr_label.Label, + proto.MESSAGE, + number=1, + oneof="operation", + message=gagr_label.Label, ) update: gagr_label.Label = proto.Field( - proto.MESSAGE, number=2, oneof="operation", message=gagr_label.Label, + proto.MESSAGE, + number=2, + oneof="operation", + message=gagr_label.Label, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -144,10 +159,14 @@ class MutateLabelsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateLabelResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateLabelResult", + proto.MESSAGE, + number=2, + message="MutateLabelResult", ) @@ -163,10 +182,13 @@ class MutateLabelResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) label: gagr_label.Label = proto.Field( - proto.MESSAGE, number=2, message=gagr_label.Label, + proto.MESSAGE, + number=2, + message=gagr_label.Label, ) diff --git a/google/ads/googleads/v14/services/types/media_file_service.py b/google/ads/googleads/v14/services/types/media_file_service.py index 34c0d43db..0f50bc711 100644 --- a/google/ads/googleads/v14/services/types/media_file_service.py +++ b/google/ads/googleads/v14/services/types/media_file_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,16 +67,21 @@ class MutateMediaFilesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["MediaFileOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MediaFileOperation", + proto.MESSAGE, + number=2, + message="MediaFileOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -119,10 +124,14 @@ class MutateMediaFilesResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateMediaFileResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateMediaFileResult", + proto.MESSAGE, + number=2, + message="MutateMediaFileResult", ) @@ -139,10 +148,13 @@ class MutateMediaFileResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) media_file: gagr_media_file.MediaFile = proto.Field( - proto.MESSAGE, number=2, message=gagr_media_file.MediaFile, + proto.MESSAGE, + number=2, + message=gagr_media_file.MediaFile, ) diff --git a/google/ads/googleads/v14/services/types/merchant_center_link_service.py b/google/ads/googleads/v14/services/types/merchant_center_link_service.py index 38a9ec504..71c0e2d50 100644 --- a/google/ads/googleads/v14/services/types/merchant_center_link_service.py +++ b/google/ads/googleads/v14/services/types/merchant_center_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,7 +50,8 @@ class ListMerchantCenterLinksRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -84,7 +85,8 @@ class GetMerchantCenterLinkRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -105,13 +107,17 @@ class MutateMerchantCenterLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operation: "MerchantCenterLinkOperation" = proto.Field( - proto.MESSAGE, number=2, message="MerchantCenterLinkOperation", + proto.MESSAGE, + number=2, + message="MerchantCenterLinkOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -130,7 +136,8 @@ class MerchantCenterLinkOperation(proto.Message): fields are modified in an update. update (google.ads.googleads.v14.resources.types.MerchantCenterLink): Update operation: The merchant center link is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -143,7 +150,9 @@ class MerchantCenterLinkOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=3, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=3, + message=field_mask_pb2.FieldMask, ) update: merchant_center_link.MerchantCenterLink = proto.Field( proto.MESSAGE, @@ -152,7 +161,9 @@ class MerchantCenterLinkOperation(proto.Message): message=merchant_center_link.MerchantCenterLink, ) remove: str = proto.Field( - proto.STRING, number=2, oneof="operation", + proto.STRING, + number=2, + oneof="operation", ) @@ -164,7 +175,9 @@ class MutateMerchantCenterLinkResponse(proto.Message): """ result: "MutateMerchantCenterLinkResult" = proto.Field( - proto.MESSAGE, number=2, message="MutateMerchantCenterLinkResult", + proto.MESSAGE, + number=2, + message="MutateMerchantCenterLinkResult", ) @@ -176,7 +189,8 @@ class MutateMerchantCenterLinkResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/offline_user_data_job_service.py b/google/ads/googleads/v14/services/types/offline_user_data_job_service.py index 2bae07faa..ef6f889b4 100644 --- a/google/ads/googleads/v14/services/types/offline_user_data_job_service.py +++ b/google/ads/googleads/v14/services/types/offline_user_data_job_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,7 +59,8 @@ class CreateOfflineUserDataJobRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) job: offline_user_data_job.OfflineUserDataJob = proto.Field( proto.MESSAGE, @@ -67,10 +68,12 @@ class CreateOfflineUserDataJobRequest(proto.Message): message=offline_user_data_job.OfflineUserDataJob, ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) enable_match_rate_range_preview: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) @@ -84,7 +87,8 @@ class CreateOfflineUserDataJobResponse(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -102,10 +106,12 @@ class RunOfflineUserDataJobRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) validate_only: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -140,21 +146,29 @@ class AddOfflineUserDataJobOperationsRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) enable_partial_failure: bool = proto.Field( - proto.BOOL, number=4, optional=True, + proto.BOOL, + number=4, + optional=True, ) enable_warnings: bool = proto.Field( - proto.BOOL, number=6, optional=True, + proto.BOOL, + number=6, + optional=True, ) operations: MutableSequence[ "OfflineUserDataJobOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=3, message="OfflineUserDataJobOperation", + proto.MESSAGE, + number=3, + message="OfflineUserDataJobOperation", ) validate_only: bool = proto.Field( - proto.BOOL, number=5, + proto.BOOL, + number=5, ) @@ -201,7 +215,9 @@ class OfflineUserDataJobOperation(proto.Message): message=offline_user_data.UserData, ) remove_all: bool = proto.Field( - proto.BOOL, number=3, oneof="operation", + proto.BOOL, + number=3, + oneof="operation", ) @@ -223,10 +239,14 @@ class AddOfflineUserDataJobOperationsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) warning: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) diff --git a/google/ads/googleads/v14/services/types/payments_account_service.py b/google/ads/googleads/v14/services/types/payments_account_service.py index f8e2873d3..604e02421 100644 --- a/google/ads/googleads/v14/services/types/payments_account_service.py +++ b/google/ads/googleads/v14/services/types/payments_account_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +25,10 @@ __protobuf__ = proto.module( package="google.ads.googleads.v14.services", marshal="google.ads.googleads.v14", - manifest={"ListPaymentsAccountsRequest", "ListPaymentsAccountsResponse",}, + manifest={ + "ListPaymentsAccountsRequest", + "ListPaymentsAccountsResponse", + }, ) @@ -40,7 +43,8 @@ class ListPaymentsAccountsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -56,7 +60,9 @@ class ListPaymentsAccountsResponse(proto.Message): payments_accounts: MutableSequence[ payments_account.PaymentsAccount ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=payments_account.PaymentsAccount, + proto.MESSAGE, + number=1, + message=payments_account.PaymentsAccount, ) diff --git a/google/ads/googleads/v14/services/types/product_link_service.py b/google/ads/googleads/v14/services/types/product_link_service.py index b67711405..fd9972956 100644 --- a/google/ads/googleads/v14/services/types/product_link_service.py +++ b/google/ads/googleads/v14/services/types/product_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -48,10 +48,13 @@ class CreateProductLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) product_link: gagr_product_link.ProductLink = proto.Field( - proto.MESSAGE, number=2, message=gagr_product_link.ProductLink, + proto.MESSAGE, + number=2, + message=gagr_product_link.ProductLink, ) @@ -66,7 +69,8 @@ class CreateProductLinkResponse(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -89,13 +93,16 @@ class RemoveProductLinkRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) resource_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) validate_only: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -107,7 +114,8 @@ class RemoveProductLinkResponse(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/reach_plan_service.py b/google/ads/googleads/v14/services/types/reach_plan_service.py index c15a9a692..4809557d8 100644 --- a/google/ads/googleads/v14/services/types/reach_plan_service.py +++ b/google/ads/googleads/v14/services/types/reach_plan_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -80,7 +80,9 @@ class ListPlannableLocationsResponse(proto.Message): plannable_locations: MutableSequence[ "PlannableLocation" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="PlannableLocation", + proto.MESSAGE, + number=1, + message="PlannableLocation", ) @@ -102,7 +104,7 @@ class PlannableLocation(proto.Message): If present, will always be a GeoTargetConstant ID. Additional information such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v14.services.ReachPlanService.ListPlannableLocations] - or [GoogleAdsService.Search/SearchStream][]. + or GoogleAdsService.Search/SearchStream. This field is a member of `oneof`_ ``_parent_country_id``. country_code (str): @@ -113,25 +115,35 @@ class PlannableLocation(proto.Message): location_type (str): The location's type. Location types correspond to target_type returned by searching location type in - [GoogleAdsService.Search/SearchStream][]. + GoogleAdsService.Search/SearchStream. This field is a member of `oneof`_ ``_location_type``. """ id: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) name: str = proto.Field( - proto.STRING, number=5, optional=True, + proto.STRING, + number=5, + optional=True, ) parent_country_id: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) country_code: str = proto.Field( - proto.STRING, number=7, optional=True, + proto.STRING, + number=7, + optional=True, ) location_type: str = proto.Field( - proto.STRING, number=8, optional=True, + proto.STRING, + number=8, + optional=True, ) @@ -145,7 +157,8 @@ class ListPlannableProductsRequest(proto.Message): """ plannable_location_id: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) @@ -158,7 +171,9 @@ class ListPlannableProductsResponse(proto.Message): """ product_metadata: MutableSequence["ProductMetadata"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="ProductMetadata", + proto.MESSAGE, + number=1, + message="ProductMetadata", ) @@ -182,13 +197,18 @@ class ProductMetadata(proto.Message): """ plannable_product_code: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) plannable_product_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) plannable_targeting: "PlannableTargeting" = proto.Field( - proto.MESSAGE, number=2, message="PlannableTargeting", + proto.MESSAGE, + number=2, + message="PlannableTargeting", ) @@ -223,10 +243,14 @@ class PlannableTargeting(proto.Message): enum=reach_plan_age_range.ReachPlanAgeRangeEnum.ReachPlanAgeRange, ) genders: MutableSequence[criteria.GenderInfo] = proto.RepeatedField( - proto.MESSAGE, number=2, message=criteria.GenderInfo, + proto.MESSAGE, + number=2, + message=criteria.GenderInfo, ) devices: MutableSequence[criteria.DeviceInfo] = proto.RepeatedField( - proto.MESSAGE, number=3, message=criteria.DeviceInfo, + proto.MESSAGE, + number=3, + message=criteria.DeviceInfo, ) networks: MutableSequence[ reach_plan_network.ReachPlanNetworkEnum.ReachPlanNetwork @@ -238,7 +262,9 @@ class PlannableTargeting(proto.Message): youtube_select_lineups: MutableSequence[ "YouTubeSelectLineUp" ] = proto.RepeatedField( - proto.MESSAGE, number=5, message="YouTubeSelectLineUp", + proto.MESSAGE, + number=5, + message="YouTubeSelectLineUp", ) @@ -327,22 +353,33 @@ class GenerateReachForecastRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) currency_code: str = proto.Field( - proto.STRING, number=9, optional=True, + proto.STRING, + number=9, + optional=True, ) campaign_duration: "CampaignDuration" = proto.Field( - proto.MESSAGE, number=3, message="CampaignDuration", + proto.MESSAGE, + number=3, + message="CampaignDuration", ) cookie_frequency_cap: int = proto.Field( - proto.INT32, number=10, optional=True, + proto.INT32, + number=10, + optional=True, ) cookie_frequency_cap_setting: "FrequencyCap" = proto.Field( - proto.MESSAGE, number=8, message="FrequencyCap", + proto.MESSAGE, + number=8, + message="FrequencyCap", ) min_effective_frequency: int = proto.Field( - proto.INT32, number=11, optional=True, + proto.INT32, + number=11, + optional=True, ) effective_frequency_limit: "EffectiveFrequencyLimit" = proto.Field( proto.MESSAGE, @@ -351,16 +388,24 @@ class GenerateReachForecastRequest(proto.Message): message="EffectiveFrequencyLimit", ) targeting: "Targeting" = proto.Field( - proto.MESSAGE, number=6, message="Targeting", + proto.MESSAGE, + number=6, + message="Targeting", ) planned_products: MutableSequence["PlannedProduct"] = proto.RepeatedField( - proto.MESSAGE, number=7, message="PlannedProduct", + proto.MESSAGE, + number=7, + message="PlannedProduct", ) forecast_metric_options: "ForecastMetricOptions" = proto.Field( - proto.MESSAGE, number=13, message="ForecastMetricOptions", + proto.MESSAGE, + number=13, + message="ForecastMetricOptions", ) customer_reach_group: str = proto.Field( - proto.STRING, number=14, optional=True, + proto.STRING, + number=14, + optional=True, ) @@ -374,7 +419,8 @@ class EffectiveFrequencyLimit(proto.Message): """ effective_frequency_breakdown_limit: int = proto.Field( - proto.INT32, number=1, + proto.INT32, + number=1, ) @@ -391,7 +437,8 @@ class FrequencyCap(proto.Message): """ impressions: int = proto.Field( - proto.INT32, number=3, + proto.INT32, + number=3, ) time_unit: frequency_cap_time_unit.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit = proto.Field( proto.ENUM, @@ -454,29 +501,42 @@ class Targeting(proto.Message): """ plannable_location_id: str = proto.Field( - proto.STRING, number=6, optional=True, + proto.STRING, + number=6, + optional=True, ) plannable_location_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=8, + proto.STRING, + number=8, ) - age_range: reach_plan_age_range.ReachPlanAgeRangeEnum.ReachPlanAgeRange = proto.Field( - proto.ENUM, - number=2, - enum=reach_plan_age_range.ReachPlanAgeRangeEnum.ReachPlanAgeRange, + age_range: reach_plan_age_range.ReachPlanAgeRangeEnum.ReachPlanAgeRange = ( + proto.Field( + proto.ENUM, + number=2, + enum=reach_plan_age_range.ReachPlanAgeRangeEnum.ReachPlanAgeRange, + ) ) genders: MutableSequence[criteria.GenderInfo] = proto.RepeatedField( - proto.MESSAGE, number=3, message=criteria.GenderInfo, + proto.MESSAGE, + number=3, + message=criteria.GenderInfo, ) devices: MutableSequence[criteria.DeviceInfo] = proto.RepeatedField( - proto.MESSAGE, number=4, message=criteria.DeviceInfo, + proto.MESSAGE, + number=4, + message=criteria.DeviceInfo, ) - network: reach_plan_network.ReachPlanNetworkEnum.ReachPlanNetwork = proto.Field( - proto.ENUM, - number=5, - enum=reach_plan_network.ReachPlanNetworkEnum.ReachPlanNetwork, + network: reach_plan_network.ReachPlanNetworkEnum.ReachPlanNetwork = ( + proto.Field( + proto.ENUM, + number=5, + enum=reach_plan_network.ReachPlanNetworkEnum.ReachPlanNetwork, + ) ) audience_targeting: "AudienceTargeting" = proto.Field( - proto.MESSAGE, number=7, message="AudienceTargeting", + proto.MESSAGE, + number=7, + message="AudienceTargeting", ) @@ -501,10 +561,14 @@ class CampaignDuration(proto.Message): """ duration_in_days: int = proto.Field( - proto.INT32, number=2, optional=True, + proto.INT32, + number=2, + optional=True, ) date_range: dates.DateRange = proto.Field( - proto.MESSAGE, number=3, message=dates.DateRange, + proto.MESSAGE, + number=3, + message=dates.DateRange, ) @@ -534,13 +598,19 @@ class PlannedProduct(proto.Message): """ plannable_product_code: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) budget_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) advanced_product_targeting: "AdvancedProductTargeting" = proto.Field( - proto.MESSAGE, number=5, message="AdvancedProductTargeting", + proto.MESSAGE, + number=5, + message="AdvancedProductTargeting", ) @@ -555,10 +625,14 @@ class GenerateReachForecastResponse(proto.Message): """ on_target_audience_metrics: "OnTargetAudienceMetrics" = proto.Field( - proto.MESSAGE, number=1, message="OnTargetAudienceMetrics", + proto.MESSAGE, + number=1, + message="OnTargetAudienceMetrics", ) reach_curve: "ReachCurve" = proto.Field( - proto.MESSAGE, number=2, message="ReachCurve", + proto.MESSAGE, + number=2, + message="ReachCurve", ) @@ -570,7 +644,9 @@ class ReachCurve(proto.Message): """ reach_forecasts: MutableSequence["ReachForecast"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="ReachForecast", + proto.MESSAGE, + number=1, + message="ReachForecast", ) @@ -588,15 +664,20 @@ class ReachForecast(proto.Message): """ cost_micros: int = proto.Field( - proto.INT64, number=5, + proto.INT64, + number=5, ) forecast: "Forecast" = proto.Field( - proto.MESSAGE, number=2, message="Forecast", + proto.MESSAGE, + number=2, + message="Forecast", ) planned_product_reach_forecasts: MutableSequence[ "PlannedProductReachForecast" ] = proto.RepeatedField( - proto.MESSAGE, number=4, message="PlannedProductReachForecast", + proto.MESSAGE, + number=4, + message="PlannedProductReachForecast", ) @@ -682,36 +763,56 @@ class Forecast(proto.Message): """ on_target_reach: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) total_reach: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) on_target_impressions: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) total_impressions: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) viewable_impressions: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) effective_frequency_breakdowns: MutableSequence[ "EffectiveFrequencyBreakdown" ] = proto.RepeatedField( - proto.MESSAGE, number=10, message="EffectiveFrequencyBreakdown", + proto.MESSAGE, + number=10, + message="EffectiveFrequencyBreakdown", ) on_target_coview_reach: int = proto.Field( - proto.INT64, number=11, optional=True, + proto.INT64, + number=11, + optional=True, ) total_coview_reach: int = proto.Field( - proto.INT64, number=12, optional=True, + proto.INT64, + number=12, + optional=True, ) on_target_coview_impressions: int = proto.Field( - proto.INT64, number=13, optional=True, + proto.INT64, + number=13, + optional=True, ) total_coview_impressions: int = proto.Field( - proto.INT64, number=14, optional=True, + proto.INT64, + number=14, + optional=True, ) @@ -735,13 +836,17 @@ class PlannedProductReachForecast(proto.Message): """ plannable_product_code: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) cost_micros: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) planned_product_forecast: "PlannedProductForecast" = proto.Field( - proto.MESSAGE, number=3, message="PlannedProductForecast", + proto.MESSAGE, + number=3, + message="PlannedProductForecast", ) @@ -806,37 +911,52 @@ class PlannedProductForecast(proto.Message): """ on_target_reach: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) total_reach: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) on_target_impressions: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) total_impressions: int = proto.Field( - proto.INT64, number=4, + proto.INT64, + number=4, ) viewable_impressions: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) on_target_coview_reach: int = proto.Field( - proto.INT64, number=6, optional=True, + proto.INT64, + number=6, + optional=True, ) total_coview_reach: int = proto.Field( - proto.INT64, number=7, optional=True, + proto.INT64, + number=7, + optional=True, ) on_target_coview_impressions: int = proto.Field( - proto.INT64, number=8, optional=True, + proto.INT64, + number=8, + optional=True, ) total_coview_impressions: int = proto.Field( - proto.INT64, number=9, optional=True, + proto.INT64, + number=9, + optional=True, ) class OnTargetAudienceMetrics(proto.Message): r"""Audience metrics for the planned products. These metrics consider the following targeting dimensions: + - Location - PlannableAgeRange - Gender @@ -857,10 +977,14 @@ class OnTargetAudienceMetrics(proto.Message): """ youtube_audience_size: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) census_audience_size: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) @@ -903,19 +1027,26 @@ class EffectiveFrequencyBreakdown(proto.Message): """ effective_frequency: int = proto.Field( - proto.INT32, number=1, + proto.INT32, + number=1, ) on_target_reach: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) total_reach: int = proto.Field( - proto.INT64, number=3, + proto.INT64, + number=3, ) effective_coview_reach: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) on_target_effective_coview_reach: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) @@ -928,7 +1059,8 @@ class ForecastMetricOptions(proto.Message): """ include_coview: bool = proto.Field( - proto.BOOL, number=1, + proto.BOOL, + number=1, ) @@ -943,7 +1075,9 @@ class AudienceTargeting(proto.Message): user_interest: MutableSequence[ criteria.UserInterestInfo ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=criteria.UserInterestInfo, + proto.MESSAGE, + number=1, + message=criteria.UserInterestInfo, ) @@ -974,7 +1108,8 @@ class YouTubeSelectSettings(proto.Message): """ lineup_id: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) @@ -988,10 +1123,12 @@ class YouTubeSelectLineUp(proto.Message): """ lineup_id: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) lineup_name: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) diff --git a/google/ads/googleads/v14/services/types/recommendation_service.py b/google/ads/googleads/v14/services/types/recommendation_service.py index f2a263cc2..3f1fcd40a 100644 --- a/google/ads/googleads/v14/services/types/recommendation_service.py +++ b/google/ads/googleads/v14/services/types/recommendation_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -62,15 +62,19 @@ class ApplyRecommendationRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "ApplyRecommendationOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="ApplyRecommendationOperation", + proto.MESSAGE, + number=2, + message="ApplyRecommendationOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) @@ -209,7 +213,9 @@ class CampaignBudgetParameters(proto.Message): """ new_budget_amount_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) class ForecastingSetTargetRoasParameters(proto.Message): @@ -233,10 +239,14 @@ class ForecastingSetTargetRoasParameters(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=1, optional=True, + proto.DOUBLE, + number=1, + optional=True, ) campaign_budget_amount_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) class TextAdParameters(proto.Message): @@ -249,7 +259,9 @@ class TextAdParameters(proto.Message): """ ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=1, message=gagr_ad.Ad, + proto.MESSAGE, + number=1, + message=gagr_ad.Ad, ) class KeywordParameters(proto.Message): @@ -274,15 +286,21 @@ class KeywordParameters(proto.Message): """ ad_group: str = proto.Field( - proto.STRING, number=4, optional=True, + proto.STRING, + number=4, + optional=True, ) - match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = proto.Field( - proto.ENUM, - number=2, - enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + match_type: keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType = ( + proto.Field( + proto.ENUM, + number=2, + enum=keyword_match_type.KeywordMatchTypeEnum.KeywordMatchType, + ) ) cpc_bid_micros: int = proto.Field( - proto.INT64, number=5, optional=True, + proto.INT64, + number=5, + optional=True, ) class TargetCpaOptInParameters(proto.Message): @@ -303,10 +321,14 @@ class TargetCpaOptInParameters(proto.Message): """ target_cpa_micros: int = proto.Field( - proto.INT64, number=3, optional=True, + proto.INT64, + number=3, + optional=True, ) new_campaign_budget_amount_micros: int = proto.Field( - proto.INT64, number=4, optional=True, + proto.INT64, + number=4, + optional=True, ) class TargetRoasOptInParameters(proto.Message): @@ -331,10 +353,14 @@ class TargetRoasOptInParameters(proto.Message): """ target_roas: float = proto.Field( - proto.DOUBLE, number=1, optional=True, + proto.DOUBLE, + number=1, + optional=True, ) new_campaign_budget_amount_micros: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) class CalloutExtensionParameters(proto.Message): @@ -350,7 +376,9 @@ class CalloutExtensionParameters(proto.Message): callout_extensions: MutableSequence[ extensions.CalloutFeedItem ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=extensions.CalloutFeedItem, + proto.MESSAGE, + number=1, + message=extensions.CalloutFeedItem, ) class CallExtensionParameters(proto.Message): @@ -366,7 +394,9 @@ class CallExtensionParameters(proto.Message): call_extensions: MutableSequence[ extensions.CallFeedItem ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=extensions.CallFeedItem, + proto.MESSAGE, + number=1, + message=extensions.CallFeedItem, ) class SitelinkExtensionParameters(proto.Message): @@ -380,7 +410,9 @@ class SitelinkExtensionParameters(proto.Message): sitelink_extensions: MutableSequence[ extensions.SitelinkFeedItem ] = proto.RepeatedField( - proto.MESSAGE, number=1, message=extensions.SitelinkFeedItem, + proto.MESSAGE, + number=1, + message=extensions.SitelinkFeedItem, ) class CalloutAssetParameters(proto.Message): @@ -440,7 +472,8 @@ class RaiseTargetCpaParameters(proto.Message): """ target_cpa_multiplier: float = proto.Field( - proto.DOUBLE, number=1, + proto.DOUBLE, + number=1, ) class LowerTargetRoasParameters(proto.Message): @@ -454,7 +487,8 @@ class LowerTargetRoasParameters(proto.Message): """ target_roas_multiplier: float = proto.Field( - proto.DOUBLE, number=1, + proto.DOUBLE, + number=1, ) class AdAssetApplyParameters(proto.Message): @@ -479,19 +513,20 @@ class AdAssetApplyParameters(proto.Message): """ class ApplyScope(proto.Enum): - r"""Scope to apply the assets to. - Next ID: 4 - """ + r"""Scope to apply the assets to.""" UNSPECIFIED = 0 UNKNOWN = 1 CUSTOMER = 2 CAMPAIGN = 3 new_assets: MutableSequence[asset.Asset] = proto.RepeatedField( - proto.MESSAGE, number=1, message=asset.Asset, + proto.MESSAGE, + number=1, + message=asset.Asset, ) existing_assets: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=2, + proto.STRING, + number=2, ) scope: "ApplyRecommendationOperation.AdAssetApplyParameters.ApplyScope" = proto.Field( proto.ENUM, @@ -514,7 +549,9 @@ class MoveUnusedBudgetParameters(proto.Message): """ budget_micros_to_move: int = proto.Field( - proto.INT64, number=2, optional=True, + proto.INT64, + number=2, + optional=True, ) class ResponsiveSearchAdAssetParameters(proto.Message): @@ -528,7 +565,9 @@ class ResponsiveSearchAdAssetParameters(proto.Message): """ updated_ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=1, message=gagr_ad.Ad, + proto.MESSAGE, + number=1, + message=gagr_ad.Ad, ) class ResponsiveSearchAdImproveAdStrengthParameters(proto.Message): @@ -542,7 +581,9 @@ class ResponsiveSearchAdImproveAdStrengthParameters(proto.Message): """ updated_ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=1, message=gagr_ad.Ad, + proto.MESSAGE, + number=1, + message=gagr_ad.Ad, ) class ResponsiveSearchAdParameters(proto.Message): @@ -556,7 +597,9 @@ class ResponsiveSearchAdParameters(proto.Message): """ ad: gagr_ad.Ad = proto.Field( - proto.MESSAGE, number=1, message=gagr_ad.Ad, + proto.MESSAGE, + number=1, + message=gagr_ad.Ad, ) class RaiseTargetCpaBidTooLowParameters(proto.Message): @@ -573,7 +616,8 @@ class RaiseTargetCpaBidTooLowParameters(proto.Message): """ target_multiplier: float = proto.Field( - proto.DOUBLE, number=1, + proto.DOUBLE, + number=1, ) class UseBroadMatchKeywordParameters(proto.Message): @@ -591,11 +635,14 @@ class UseBroadMatchKeywordParameters(proto.Message): """ new_budget_amount_micros: int = proto.Field( - proto.INT64, number=1, optional=True, + proto.INT64, + number=1, + optional=True, ) resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign_budget: CampaignBudgetParameters = proto.Field( proto.MESSAGE, @@ -675,17 +722,21 @@ class UseBroadMatchKeywordParameters(proto.Message): oneof="apply_parameters", message=ResponsiveSearchAdImproveAdStrengthParameters, ) - raise_target_cpa_bid_too_low: RaiseTargetCpaBidTooLowParameters = proto.Field( - proto.MESSAGE, - number=15, - oneof="apply_parameters", - message=RaiseTargetCpaBidTooLowParameters, + raise_target_cpa_bid_too_low: RaiseTargetCpaBidTooLowParameters = ( + proto.Field( + proto.MESSAGE, + number=15, + oneof="apply_parameters", + message=RaiseTargetCpaBidTooLowParameters, + ) ) - forecasting_set_target_roas: ForecastingSetTargetRoasParameters = proto.Field( - proto.MESSAGE, - number=16, - oneof="apply_parameters", - message=ForecastingSetTargetRoasParameters, + forecasting_set_target_roas: ForecastingSetTargetRoasParameters = ( + proto.Field( + proto.MESSAGE, + number=16, + oneof="apply_parameters", + message=ForecastingSetTargetRoasParameters, + ) ) callout_asset: CalloutAssetParameters = proto.Field( proto.MESSAGE, @@ -736,10 +787,14 @@ class ApplyRecommendationResponse(proto.Message): """ results: MutableSequence["ApplyRecommendationResult"] = proto.RepeatedField( - proto.MESSAGE, number=1, message="ApplyRecommendationResult", + proto.MESSAGE, + number=1, + message="ApplyRecommendationResult", ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) @@ -751,7 +806,8 @@ class ApplyRecommendationResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -787,19 +843,24 @@ class DismissRecommendationOperation(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ DismissRecommendationOperation ] = proto.RepeatedField( - proto.MESSAGE, number=3, message=DismissRecommendationOperation, + proto.MESSAGE, + number=3, + message=DismissRecommendationOperation, ) partial_failure: bool = proto.Field( - proto.BOOL, number=2, + proto.BOOL, + number=2, ) @@ -827,14 +888,19 @@ class DismissRecommendationResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) results: MutableSequence[DismissRecommendationResult] = proto.RepeatedField( - proto.MESSAGE, number=1, message=DismissRecommendationResult, + proto.MESSAGE, + number=1, + message=DismissRecommendationResult, ) partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=2, message=status_pb2.Status, + proto.MESSAGE, + number=2, + message=status_pb2.Status, ) diff --git a/google/ads/googleads/v14/services/types/remarketing_action_service.py b/google/ads/googleads/v14/services/types/remarketing_action_service.py index f9d298629..a4d539a6e 100644 --- a/google/ads/googleads/v14/services/types/remarketing_action_service.py +++ b/google/ads/googleads/v14/services/types/remarketing_action_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,18 +59,23 @@ class MutateRemarketingActionsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "RemarketingActionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="RemarketingActionOperation", + proto.MESSAGE, + number=2, + message="RemarketingActionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -89,18 +94,22 @@ class RemarketingActionOperation(proto.Message): fields are modified in an update. create (google.ads.googleads.v14.resources.types.RemarketingAction): Create operation: No resource name is - expected for the new remarketing action. + expected for the new remarketing + action. This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.RemarketingAction): Update operation: The remarketing action is - expected to have a valid resource name. + expected to have a valid + resource name. This field is a member of `oneof`_ ``operation``. """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: remarketing_action.RemarketingAction = proto.Field( proto.MESSAGE, @@ -130,12 +139,16 @@ class MutateRemarketingActionsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateRemarketingActionResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateRemarketingActionResult", + proto.MESSAGE, + number=2, + message="MutateRemarketingActionResult", ) @@ -147,7 +160,8 @@ class MutateRemarketingActionResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/shared_criterion_service.py b/google/ads/googleads/v14/services/types/shared_criterion_service.py index d765dbbe4..98def82e4 100644 --- a/google/ads/googleads/v14/services/types/shared_criterion_service.py +++ b/google/ads/googleads/v14/services/types/shared_criterion_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -67,18 +67,23 @@ class MutateSharedCriteriaRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "SharedCriterionOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="SharedCriterionOperation", + proto.MESSAGE, + number=2, + message="SharedCriterionOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -99,7 +104,8 @@ class SharedCriterionOperation(proto.Message): Attributes: create (google.ads.googleads.v14.resources.types.SharedCriterion): Create operation: No resource name is - expected for the new shared criterion. + expected for the new shared + criterion. This field is a member of `oneof`_ ``operation``. remove (str): @@ -118,7 +124,9 @@ class SharedCriterionOperation(proto.Message): message=gagr_shared_criterion.SharedCriterion, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -136,12 +144,16 @@ class MutateSharedCriteriaResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence[ "MutateSharedCriterionResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateSharedCriterionResult", + proto.MESSAGE, + number=2, + message="MutateSharedCriterionResult", ) @@ -157,10 +169,13 @@ class MutateSharedCriterionResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) shared_criterion: gagr_shared_criterion.SharedCriterion = proto.Field( - proto.MESSAGE, number=2, message=gagr_shared_criterion.SharedCriterion, + proto.MESSAGE, + number=2, + message=gagr_shared_criterion.SharedCriterion, ) diff --git a/google/ads/googleads/v14/services/types/shared_set_service.py b/google/ads/googleads/v14/services/types/shared_set_service.py index ad9fbf058..3f3febbee 100644 --- a/google/ads/googleads/v14/services/types/shared_set_service.py +++ b/google/ads/googleads/v14/services/types/shared_set_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,16 +68,21 @@ class MutateSharedSetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["SharedSetOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="SharedSetOperation", + proto.MESSAGE, + number=2, + message="SharedSetOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -106,7 +111,8 @@ class SharedSetOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.SharedSet): Update operation: The shared set is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -119,7 +125,9 @@ class SharedSetOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: gagr_shared_set.SharedSet = proto.Field( proto.MESSAGE, @@ -134,7 +142,9 @@ class SharedSetOperation(proto.Message): message=gagr_shared_set.SharedSet, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -152,10 +162,14 @@ class MutateSharedSetsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateSharedSetResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateSharedSetResult", + proto.MESSAGE, + number=2, + message="MutateSharedSetResult", ) @@ -171,10 +185,13 @@ class MutateSharedSetResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) shared_set: gagr_shared_set.SharedSet = proto.Field( - proto.MESSAGE, number=2, message=gagr_shared_set.SharedSet, + proto.MESSAGE, + number=2, + message=gagr_shared_set.SharedSet, ) diff --git a/google/ads/googleads/v14/services/types/smart_campaign_setting_service.py b/google/ads/googleads/v14/services/types/smart_campaign_setting_service.py index f25f33d5c..07ee593f1 100644 --- a/google/ads/googleads/v14/services/types/smart_campaign_setting_service.py +++ b/google/ads/googleads/v14/services/types/smart_campaign_setting_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -66,7 +66,8 @@ class GetSmartCampaignStatusRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) @@ -116,10 +117,14 @@ class SmartCampaignEligibleDetails(proto.Message): """ last_impression_date_time: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) end_date_time: str = proto.Field( - proto.STRING, number=2, optional=True, + proto.STRING, + number=2, + optional=True, ) @@ -137,7 +142,9 @@ class SmartCampaignPausedDetails(proto.Message): """ paused_date_time: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -155,7 +162,9 @@ class SmartCampaignRemovedDetails(proto.Message): """ removed_date_time: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -173,7 +182,9 @@ class SmartCampaignEndedDetails(proto.Message): """ end_date_time: str = proto.Field( - proto.STRING, number=1, optional=True, + proto.STRING, + number=1, + optional=True, ) @@ -255,7 +266,7 @@ class GetSmartCampaignStatusResponse(proto.Message): class MutateSmartCampaignSettingsRequest(proto.Message): r"""Request message for - [SmartCampaignSettingService.MutateSmartCampaignSetting][]. + [SmartCampaignSettingService.MutateSmartCampaignSettings][google.ads.googleads.v14.services.SmartCampaignSettingService.MutateSmartCampaignSettings]. Attributes: customer_id (str): @@ -280,18 +291,23 @@ class MutateSmartCampaignSettingsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence[ "SmartCampaignSettingOperation" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="SmartCampaignSettingOperation", + proto.MESSAGE, + number=2, + message="SmartCampaignSettingOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) response_content_type: gage_response_content_type.ResponseContentTypeEnum.ResponseContentType = proto.Field( proto.ENUM, @@ -307,7 +323,8 @@ class SmartCampaignSettingOperation(proto.Message): Attributes: update (google.ads.googleads.v14.resources.types.SmartCampaignSetting): Update operation: The Smart campaign setting - must specify a valid resource name. + must specify a valid + resource name. update_mask (google.protobuf.field_mask_pb2.FieldMask): FieldMask that determines which resource fields are modified in an update. @@ -319,7 +336,9 @@ class SmartCampaignSettingOperation(proto.Message): message=gagr_smart_campaign_setting.SmartCampaignSetting, ) update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=2, + message=field_mask_pb2.FieldMask, ) @@ -337,12 +356,16 @@ class MutateSmartCampaignSettingsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=1, message=status_pb2.Status, + proto.MESSAGE, + number=1, + message=status_pb2.Status, ) results: MutableSequence[ "MutateSmartCampaignSettingResult" ] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateSmartCampaignSettingResult", + proto.MESSAGE, + number=2, + message="MutateSmartCampaignSettingResult", ) @@ -358,12 +381,15 @@ class MutateSmartCampaignSettingResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) - smart_campaign_setting: gagr_smart_campaign_setting.SmartCampaignSetting = proto.Field( - proto.MESSAGE, - number=2, - message=gagr_smart_campaign_setting.SmartCampaignSetting, + smart_campaign_setting: gagr_smart_campaign_setting.SmartCampaignSetting = ( + proto.Field( + proto.MESSAGE, + number=2, + message=gagr_smart_campaign_setting.SmartCampaignSetting, + ) ) diff --git a/google/ads/googleads/v14/services/types/smart_campaign_suggest_service.py b/google/ads/googleads/v14/services/types/smart_campaign_suggest_service.py index 115940935..f9bfde14f 100644 --- a/google/ads/googleads/v14/services/types/smart_campaign_suggest_service.py +++ b/google/ads/googleads/v14/services/types/smart_campaign_suggest_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ class SuggestSmartCampaignBudgetOptionsRequest(proto.Message): r"""Request message for - [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. + [SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions]. This message has `oneof`_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. @@ -69,10 +69,13 @@ class SuggestSmartCampaignBudgetOptionsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) campaign: str = proto.Field( - proto.STRING, number=2, oneof="suggestion_data", + proto.STRING, + number=2, + oneof="suggestion_data", ) suggestion_info: "SmartCampaignSuggestionInfo" = proto.Field( proto.MESSAGE, @@ -143,7 +146,9 @@ class LocationList(proto.Message): """ locations: MutableSequence[criteria.LocationInfo] = proto.RepeatedField( - proto.MESSAGE, number=1, message=criteria.LocationInfo, + proto.MESSAGE, + number=1, + message=criteria.LocationInfo, ) class BusinessContext(proto.Message): @@ -154,24 +159,31 @@ class BusinessContext(proto.Message): """ business_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) final_url: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) language_code: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) ad_schedules: MutableSequence[ criteria.AdScheduleInfo ] = proto.RepeatedField( - proto.MESSAGE, number=6, message=criteria.AdScheduleInfo, + proto.MESSAGE, + number=6, + message=criteria.AdScheduleInfo, ) keyword_themes: MutableSequence[ criteria.KeywordThemeInfo ] = proto.RepeatedField( - proto.MESSAGE, number=7, message=criteria.KeywordThemeInfo, + proto.MESSAGE, + number=7, + message=criteria.KeywordThemeInfo, ) business_context: BusinessContext = proto.Field( proto.MESSAGE, @@ -180,10 +192,15 @@ class BusinessContext(proto.Message): message=BusinessContext, ) business_profile_location: str = proto.Field( - proto.STRING, number=9, oneof="business_setting", + proto.STRING, + number=9, + oneof="business_setting", ) location_list: LocationList = proto.Field( - proto.MESSAGE, number=4, oneof="geo_target", message=LocationList, + proto.MESSAGE, + number=4, + oneof="geo_target", + message=LocationList, ) proximity: criteria.ProximityInfo = proto.Field( proto.MESSAGE, @@ -195,7 +212,7 @@ class BusinessContext(proto.Message): class SuggestSmartCampaignBudgetOptionsResponse(proto.Message): r"""Response message for - [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. + [SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions]. Depending on whether the system could suggest the options, either all of the options or none of them might be returned. @@ -226,10 +243,12 @@ class Metrics(proto.Message): """ min_daily_clicks: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) max_daily_clicks: int = proto.Field( - proto.INT64, number=2, + proto.INT64, + number=2, ) class BudgetOption(proto.Message): @@ -247,22 +266,34 @@ class BudgetOption(proto.Message): """ daily_amount_micros: int = proto.Field( - proto.INT64, number=1, + proto.INT64, + number=1, ) - metrics: "SuggestSmartCampaignBudgetOptionsResponse.Metrics" = proto.Field( - proto.MESSAGE, - number=2, - message="SuggestSmartCampaignBudgetOptionsResponse.Metrics", + metrics: "SuggestSmartCampaignBudgetOptionsResponse.Metrics" = ( + proto.Field( + proto.MESSAGE, + number=2, + message="SuggestSmartCampaignBudgetOptionsResponse.Metrics", + ) ) low: BudgetOption = proto.Field( - proto.MESSAGE, number=1, optional=True, message=BudgetOption, + proto.MESSAGE, + number=1, + optional=True, + message=BudgetOption, ) recommended: BudgetOption = proto.Field( - proto.MESSAGE, number=2, optional=True, message=BudgetOption, + proto.MESSAGE, + number=2, + optional=True, + message=BudgetOption, ) high: BudgetOption = proto.Field( - proto.MESSAGE, number=3, optional=True, message=BudgetOption, + proto.MESSAGE, + number=3, + optional=True, + message=BudgetOption, ) @@ -281,10 +312,13 @@ class SuggestSmartCampaignAdRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) suggestion_info: "SmartCampaignSuggestionInfo" = proto.Field( - proto.MESSAGE, number=2, message="SmartCampaignSuggestionInfo", + proto.MESSAGE, + number=2, + message="SmartCampaignSuggestionInfo", ) @@ -299,7 +333,9 @@ class SuggestSmartCampaignAdResponse(proto.Message): """ ad_info: ad_type_infos.SmartCampaignAdInfo = proto.Field( - proto.MESSAGE, number=1, message=ad_type_infos.SmartCampaignAdInfo, + proto.MESSAGE, + number=1, + message=ad_type_infos.SmartCampaignAdInfo, ) @@ -324,10 +360,13 @@ class SuggestKeywordThemesRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) suggestion_info: "SmartCampaignSuggestionInfo" = proto.Field( - proto.MESSAGE, number=2, message="SmartCampaignSuggestionInfo", + proto.MESSAGE, + number=2, + message="SmartCampaignSuggestionInfo", ) @@ -367,11 +406,15 @@ class KeywordTheme(proto.Message): message=gagr_keyword_theme_constant.KeywordThemeConstant, ) free_form_keyword_theme: str = proto.Field( - proto.STRING, number=2, oneof="keyword_theme", + proto.STRING, + number=2, + oneof="keyword_theme", ) keyword_themes: MutableSequence[KeywordTheme] = proto.RepeatedField( - proto.MESSAGE, number=2, message=KeywordTheme, + proto.MESSAGE, + number=2, + message=KeywordTheme, ) diff --git a/google/ads/googleads/v14/services/types/third_party_app_analytics_link_service.py b/google/ads/googleads/v14/services/types/third_party_app_analytics_link_service.py index 1d121150e..18209f7f0 100644 --- a/google/ads/googleads/v14/services/types/third_party_app_analytics_link_service.py +++ b/google/ads/googleads/v14/services/types/third_party_app_analytics_link_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -40,7 +40,8 @@ class RegenerateShareableLinkIdRequest(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/services/types/travel_asset_suggestion_service.py b/google/ads/googleads/v14/services/types/travel_asset_suggestion_service.py index 50be40a26..a77409ccc 100644 --- a/google/ads/googleads/v14/services/types/travel_asset_suggestion_service.py +++ b/google/ads/googleads/v14/services/types/travel_asset_suggestion_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ class SuggestTravelAssetsRequest(proto.Message): r"""Request message for - [TravelSuggestAssetsService.SuggestTravelAssets][]. + [TravelAssetSuggestionService.SuggestTravelAssets][google.ads.googleads.v14.services.TravelAssetSuggestionService.SuggestTravelAssets]. Attributes: customer_id (str): @@ -60,19 +60,22 @@ class SuggestTravelAssetsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) language_option: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) place_ids: MutableSequence[str] = proto.RepeatedField( - proto.STRING, number=4, + proto.STRING, + number=4, ) class SuggestTravelAssetsResponse(proto.Message): r"""Response message for - [TravelSuggestAssetsService.SuggestTravelAssets][]. + [TravelAssetSuggestionService.SuggestTravelAssets][google.ads.googleads.v14.services.TravelAssetSuggestionService.SuggestTravelAssets]. Attributes: hotel_asset_suggestions (MutableSequence[google.ads.googleads.v14.services.types.HotelAssetSuggestion]): @@ -83,7 +86,9 @@ class SuggestTravelAssetsResponse(proto.Message): hotel_asset_suggestions: MutableSequence[ "HotelAssetSuggestion" ] = proto.RepeatedField( - proto.MESSAGE, number=1, message="HotelAssetSuggestion", + proto.MESSAGE, + number=1, + message="HotelAssetSuggestion", ) @@ -109,13 +114,16 @@ class HotelAssetSuggestion(proto.Message): """ place_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) final_url: str = proto.Field( - proto.STRING, number=2, + proto.STRING, + number=2, ) hotel_name: str = proto.Field( - proto.STRING, number=3, + proto.STRING, + number=3, ) call_to_action: call_to_action_type.CallToActionTypeEnum.CallToActionType = proto.Field( proto.ENUM, @@ -123,10 +131,14 @@ class HotelAssetSuggestion(proto.Message): enum=call_to_action_type.CallToActionTypeEnum.CallToActionType, ) text_assets: MutableSequence["HotelTextAsset"] = proto.RepeatedField( - proto.MESSAGE, number=5, message="HotelTextAsset", + proto.MESSAGE, + number=5, + message="HotelTextAsset", ) image_assets: MutableSequence["HotelImageAsset"] = proto.RepeatedField( - proto.MESSAGE, number=6, message="HotelImageAsset", + proto.MESSAGE, + number=6, + message="HotelImageAsset", ) status: hotel_asset_suggestion_status.HotelAssetSuggestionStatusEnum.HotelAssetSuggestionStatus = proto.Field( proto.ENUM, @@ -146,7 +158,8 @@ class HotelTextAsset(proto.Message): """ text: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_field_type: gage_asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( proto.ENUM, @@ -166,7 +179,8 @@ class HotelImageAsset(proto.Message): """ uri: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) asset_field_type: gage_asset_field_type.AssetFieldTypeEnum.AssetFieldType = proto.Field( proto.ENUM, diff --git a/google/ads/googleads/v14/services/types/user_data_service.py b/google/ads/googleads/v14/services/types/user_data_service.py index f3fd4da7f..163ce63cd 100644 --- a/google/ads/googleads/v14/services/types/user_data_service.py +++ b/google/ads/googleads/v14/services/types/user_data_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -53,10 +53,13 @@ class UploadUserDataRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["UserDataOperation"] = proto.RepeatedField( - proto.MESSAGE, number=3, message="UserDataOperation", + proto.MESSAGE, + number=3, + message="UserDataOperation", ) customer_match_user_list_metadata: offline_user_data.CustomerMatchUserListMetadata = proto.Field( proto.MESSAGE, @@ -126,10 +129,14 @@ class UploadUserDataResponse(proto.Message): """ upload_date_time: str = proto.Field( - proto.STRING, number=3, optional=True, + proto.STRING, + number=3, + optional=True, ) received_operations_count: int = proto.Field( - proto.INT32, number=4, optional=True, + proto.INT32, + number=4, + optional=True, ) diff --git a/google/ads/googleads/v14/services/types/user_list_service.py b/google/ads/googleads/v14/services/types/user_list_service.py index e3d99e2d1..e05223ad0 100644 --- a/google/ads/googleads/v14/services/types/user_list_service.py +++ b/google/ads/googleads/v14/services/types/user_list_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,16 +59,21 @@ class MutateUserListsRequest(proto.Message): """ customer_id: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) operations: MutableSequence["UserListOperation"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="UserListOperation", + proto.MESSAGE, + number=2, + message="UserListOperation", ) partial_failure: bool = proto.Field( - proto.BOOL, number=3, + proto.BOOL, + number=3, ) validate_only: bool = proto.Field( - proto.BOOL, number=4, + proto.BOOL, + number=4, ) @@ -92,7 +97,8 @@ class UserListOperation(proto.Message): This field is a member of `oneof`_ ``operation``. update (google.ads.googleads.v14.resources.types.UserList): Update operation: The user list is expected - to have a valid resource name. + to have a valid resource + name. This field is a member of `oneof`_ ``operation``. remove (str): @@ -105,16 +111,26 @@ class UserListOperation(proto.Message): """ update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, number=4, message=field_mask_pb2.FieldMask, + proto.MESSAGE, + number=4, + message=field_mask_pb2.FieldMask, ) create: user_list.UserList = proto.Field( - proto.MESSAGE, number=1, oneof="operation", message=user_list.UserList, + proto.MESSAGE, + number=1, + oneof="operation", + message=user_list.UserList, ) update: user_list.UserList = proto.Field( - proto.MESSAGE, number=2, oneof="operation", message=user_list.UserList, + proto.MESSAGE, + number=2, + oneof="operation", + message=user_list.UserList, ) remove: str = proto.Field( - proto.STRING, number=3, oneof="operation", + proto.STRING, + number=3, + oneof="operation", ) @@ -132,10 +148,14 @@ class MutateUserListsResponse(proto.Message): """ partial_failure_error: status_pb2.Status = proto.Field( - proto.MESSAGE, number=3, message=status_pb2.Status, + proto.MESSAGE, + number=3, + message=status_pb2.Status, ) results: MutableSequence["MutateUserListResult"] = proto.RepeatedField( - proto.MESSAGE, number=2, message="MutateUserListResult", + proto.MESSAGE, + number=2, + message="MutateUserListResult", ) @@ -147,7 +167,8 @@ class MutateUserListResult(proto.Message): """ resource_name: str = proto.Field( - proto.STRING, number=1, + proto.STRING, + number=1, ) diff --git a/google/ads/googleads/v14/types/__init__.py b/google/ads/googleads/v14/types/__init__.py index e8e1c3845..89a37dc92 100644 --- a/google/ads/googleads/v14/types/__init__.py +++ b/google/ads/googleads/v14/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/setup.py b/setup.py index 7a206eed5..59e775e1a 100644 --- a/setup.py +++ b/setup.py @@ -18,14 +18,14 @@ install_requires = [ "google-auth-oauthlib >= 0.3.0, < 2.0.0", - "google-api-core >= 2.8.0, <= 2.11.0", + "google-api-core >= 2.8.0, <= 3.0.0", "googleapis-common-protos >= 1.56.0, < 2.0.0", # NOTE: Source code for grpcio and grpcio-status exist in the same # grpc/grpc monorepo and thus these two dependencies should always # have the same version range. "grpcio >= 1.38.1, < 2.0.0", "grpcio-status >= 1.38.1, < 2.0.0", - "proto-plus >= 1.19.6, < 1.23", + "proto-plus >= 1.19.6, < 2.0.0", "PyYAML >= 5.1, < 7.0", "setuptools >= 40.3.0", "protobuf >= 3.12.0, < 5.0.0dev, !=3.18.*, !=3.19.*", @@ -36,7 +36,7 @@ setup( name="google-ads", - version="21.2.0", + version="21.3.0", author="Google LLC", author_email="googleapis-packages@google.com", classifiers=[